Log In · Register

 
Could someone help fix this random img html?
irockoften
post 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! pinch.gif
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: