Could someone help fix this random img html? |
Could someone help fix this random img html? |
Jan 19 2005, 02:29 AM
Post
#1
|
|
|
Senior Member ![]() ![]() ![]() Group: Member Posts: 30 Joined: Jan 2005 Member No: 86,594 |
I've used this code before and had no problem, but now it's just not working. I've hosted the pics on both xanga and another site but it's just not working.
<!-- begin code provided by createblog.com --> <script type='text/javascript'> var image = new Array(); // change this to reflect your set of banners image[0] = ‘http://i.xanga.com/Irockoften/website%20banner%201%20(stars%20and%20moon).JPG’; image[1] = ‘http://i.xanga.com/Irockoften/website%20banner%202%20(stars).JPG’; image[2] = ‘http://i.xanga.com/Irockoften/website%20banner%203%20(block%20letters).JPG'; image[3] = ‘http://i.xanga.com/Irockoften/website%20banner%204%20(retro%20block%20letters).JPG’; image[4] = ‘http://i.xanga.com/Irockoften/website%20banner%205%20(black%20and%20white).JPG’; image[5] = ‘http://i.xanga.com/Irockoften/website%20banner%206%20(green%20saturns).JPG’; image[6] = ‘http://i.xanga.com/Irockoften/website%20banner%207%20(olive).JPG’; image[7] = ‘http://i.xanga.com/Irockoften/website%20banner%208%20(red%20and%20green).JPG’; var index = Math.floor(Math.random() * image.length); document.write('<img src='+ image[index] +'>'); </script> <!-- end code provided by createblog.com --> help! |
|
|
|
irockoften Could someone help fix this random img html? Jan 19 2005, 02:29 AM
mystical Try
<script language="JavaScript"... Jan 19 2005, 03:35 AM
irockoften awesome thanks man Jan 19 2005, 12:12 PM
avalon* QUOTE(irockoften @ Jan 19 2005, 12:12 PM)awes... Jan 19 2005, 12:16 PM![]() ![]() |