Here's a way to do a random image load -
Put this in the head of the document -
<script type="text/javascript">
<!--
function displayRandomImage(imageName,array){
document.images[imageName].src=array[new Date().getTime()%array.length];
}
urls=["images/cs1.jpg","images/cs2.jpg","images/cs3.jpg","images/cs4.jpg"]
// load this line with your image names and paths
//-->
</script>
and then put this in the body of the page -
<body onLoad="displayRandomImage('csmember',urls)">
<!-- csmember is the NAME of the image receiving the random changes -->
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"MG41" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
:music;
Using Dreamweaver 2004 MX, I want to insert images on my home page, keep a
library, and then have another image of the same size load in that spot
the
next time. I also have Fireworks 2004, but I'm not very familiar with it.
If anyone can help me with this process, I would very appreciative.
http://www.rochester.edu is a good example of what I'm after.
Any help is appreciated, as always,
MG |