|
is there something wrong in this code? im trying to put that on my index.php but it doesnt work and the error is in this lines, any1 has any idea?
echo '<center>
<script language='javascript' type='text/javascript'>
<!--var
thePics = new Array()
thePics[1] = 'http://clan-d2k.net/siteimages/images/random/1.jpg'
thePics[2] = 'http://clan-d2k.net/siteimages/images/random/2.jpg'
thePics[3] = 'http://clan-d2k.net/siteimages/images/random/3.jpg'
thePics[4] = 'http://clan-d2k.net/siteimages/images/random/4.jpg'
thePics[5] = 'http://clan-d2k.net/siteimages/images/random/5.jpg'
thePics[6] = 'http://clan-d2k.net/siteimages/images/random/6.jpg'
thePics[7] = 'http://clan-d2k.net/siteimages/images/random/7.jpg'
thePics[8] = 'http://clan-d2k.net/siteimages/images/random/8.jpg'
thePics[9] = 'http://clan-d2k.net/siteimages/images/random/9.jpg'
thePics[10] = 'http://clan-d2k.net/siteimages/images/random/10.jpg'
thePics[11] = 'http://clan-d2k.net/siteimages/images/random/11.jpg'
thePics[12] = 'http://clan-d2k.net/siteimages/images/random/12.jpg'
var rn = Math.floor(Math.random() * thePics.length)
if (rn == 0)
{rn = 1}
document.write('<img src= '+thePics[rn]+' border="0">')
//-->
</script>
</center>';
Thank you so much.
|