Hey guys,
I have the following script in my page, and it works fine - giving me a random image when the page is refreshed. However, I was just wondering how you manage to put alt tags in so that when you hold the mouse over the picture it gives the comment box description?
<SCRIPT>
{img=new Array()
img[0]="../../../Images/XFiles/seasonone/pilotepisode/ash.JPG"
img[1]="../../../Images/XFiles/seasonone/pilotepisode/wrstwtch.JPG"
img[2]="../../../Images/XFiles/seasonone/pilotepisode/bmwtn.JPG"
img[3]="../../../Images/XFiles/seasonone/pilotepisode/marks.JPG"
img[4]="../../../Images/XFiles/seasonone/pilotepisode/corpse.JPG"
img[5]="../../../Images/XFiles/seasonone/pilotepisode/device.JPG"
img[6]="../../../Images/XFiles/seasonone/pilotepisode/devicere.JPG"
img[7]="../../../Images/XFiles/seasonone/pilotepisode/graves.JPG"
img[8]="../../../Images/XFiles/seasonone/pilotepisode/swenson.JPG"
img[9]="../../../Images/XFiles/seasonone/pilotepisode/nosebled.JPG"
img[10]="../../../Images/XFiles/seasonone/pilotepisode/exam.JPG"
mrnd = Math.floor(Math.random() * img.length)
document.writeln('<IMG SRC="'+img[mrnd]+'">')}
</SCRIPT>
thanks
Mxx
I have the following script in my page, and it works fine - giving me a random image when the page is refreshed. However, I was just wondering how you manage to put alt tags in so that when you hold the mouse over the picture it gives the comment box description?
<SCRIPT>
{img=new Array()
img[0]="../../../Images/XFiles/seasonone/pilotepisode/ash.JPG"
img[1]="../../../Images/XFiles/seasonone/pilotepisode/wrstwtch.JPG"
img[2]="../../../Images/XFiles/seasonone/pilotepisode/bmwtn.JPG"
img[3]="../../../Images/XFiles/seasonone/pilotepisode/marks.JPG"
img[4]="../../../Images/XFiles/seasonone/pilotepisode/corpse.JPG"
img[5]="../../../Images/XFiles/seasonone/pilotepisode/device.JPG"
img[6]="../../../Images/XFiles/seasonone/pilotepisode/devicere.JPG"
img[7]="../../../Images/XFiles/seasonone/pilotepisode/graves.JPG"
img[8]="../../../Images/XFiles/seasonone/pilotepisode/swenson.JPG"
img[9]="../../../Images/XFiles/seasonone/pilotepisode/nosebled.JPG"
img[10]="../../../Images/XFiles/seasonone/pilotepisode/exam.JPG"
mrnd = Math.floor(Math.random() * img.length)
document.writeln('<IMG SRC="'+img[mrnd]+'">')}
</SCRIPT>
thanks
Mxx
Comment