Hallo.
Wie schaffe ich es einen Newsticker mit einem Link einzubinden?
Hier ist ein Script, das den Newsticker zeigt.
<html>
<head>
</head>
<script language="javascript">
var max = 0;
function textlist() {
max = textlist.arguments.length;
for (i = 0; i<max; i++)
this[i]=textlist.arguments[i];
}
tl = new textlist (
" Thema 1 ",
" Thema 2 ",
" Thema 3 "
);
var x = 0; pos = 0;
var l = tl[0].length;
function textticker() {
document.form1.textfeld.value = tl[x].substring(0,pos)+"";
if(pos++==l) {
pos = 0;
setTimeout("textticker()",500);
x++;
if(x==max) x = 0;
l = tl[x].length;
} else
setTimeout("textticker()",40);
}
</script>
</head>
<body onload="textticker()">
<form name="form1" style="position: absolute; top: 125px; left: 70px;">
<input type="text" name="textfeld" value=" Willkommen " size="65" style="font-weight: bold; color: #CC3300; background-color: #EEEEEE; font-family: Arial,Helvetica,MS Sans Serif; font-size: 11pt; border-style: none; border-width: none;">
</form>
</body>
</html>
Die Frage:
Wie kann ich jedes Thema (Thema1, Thema2 [im Head]) mit einem anderen Link ausstatten?
Danke, H²O