Scriptfehler Zufallstext

Der Wahre
Hallo,

bin ein ziemlicher Newbie auf dem Gebiet, habe es aber geschafft ein Script hinzubekommen, das mir bei jedem Seitenaufruf einen Zufallstext ausgibt. Das Ganze sieht so aus:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
      <script language="JavaScript">
<!--
var quotenumber = 16;        //Anzahl der Nachrichten
var randomnumber = Math.random() ;
var rand1 = Math.round( (quotenumber-1) * randomnumber) + 1 ;
quotes = new Array
quotes[1] = "<i><b>Text.</i></b>"
quotes[2] = "<i><b>Tipp: Text.</i></b>"
quotes[3] = "<i><b>Tipp: Text.</i></b>"
quotes[4] = "<i><b>Tipp: Text.</i></b>"
quotes[5] = "<i><b>Tipp: Text.</i></b>"
quotes[6] = "<i><b>Tipp: Text.</i></b>"
quotes[7] = "<i><b>Tipp: Text.</i></b>"
quotes[8] = "<i><b>Tipp: Text.</i></b>"
quotes[9] = "<i><b>Tipp: Text.</i></b>"
quotes[10] = "<i><b>Tipp: Text.</i></b>"
quotes[11] = "<i><b>Tipp: Text.</i></b>"
quotes[12] = "<i><b>Tipp: Text.</i></b>"
quotes[13] = "<i><b>Tipp:Text.</i></b>"
quotes[14] = "<i><b>Tipp: Text.</i></b>"
quotes[15] = "<i><b>Tipp:Text.</i></b>"
quotes[16] = "<i><b>Tipp: Text.</i></b>"
var quote = quotes[rand1]
//-->
</script>
<script language="JavaScript">
<!--
document.write("<b>" + quote + "</b>")
//-->
</script>


usw. halt. Das funktioniert auch einwandfrei. Jetzt gibt es nur ein Problem: Wenn ich in einen Zufallstext einen ganz normalen Link einbaue, dann werden gar keine Texte mehr angezeigt, dann funktioniert das gar nicht mehr. Meine Frage wäre, warum das so ist, eigentlich müsste es doch funktionieren...? Watt?
[kamui]
Zeig mal dein Script mit Links Augenzwinkern
Schweinebacke
auf die Gänsefüßchen achten großes Grinsen (Anführungszeichen)

quotes[1] = "<i><b>Text <a href='http://www.tagesschau.de/'>ARD Tagesschau</a></i></b>"