rotating image slices
i already know how to rotate images (everytime the page is refreshed) using the array function (javascript) , the thing is now i want to know if theres any way possible to have different slices in a header rotate as a whole (3 slices make up one image)
all help is appreciated, thanks!
Greg K posted this at 19:48 — 19th October 2004.
He has: 2,145 posts
Joined: Nov 2003
use the following naming convention (assuming the header is broken up into a left, center and right image):
l_image01.gif
c_image01.gif
r_image01.gif
l_image02.gif
c_image02.gif
r_image02.gif
l_image03.gif
c_image03.gif
r_image03.gif
l_image04.gif
c_image04.gif
r_image04.gif
Then in your code, I assume somewhere from the rotating, you would end up with a variable that contains the chosen image (say "image03.gif"). Now for each of the three images, you just need to prepend the name with "l_", "c_" or "r_".
-Greg
mixshows posted this at 20:16 — 19th October 2004.
They have: 4 posts
Joined: Oct 2004
THANKS DOG! im goin to give this a shot!
mixshows posted this at 15:12 — 22nd October 2004.
They have: 4 posts
Joined: Oct 2004
thanks for the help but the code doesnt quite work for what i need, let me a little more specific , i have a header on a website , the main header picture is cut up into 4 slices, in such a way:
i need to make images 1-4 rotate as a whole so that theres a different girl picture in the header everytime one visits the page, any help is GREATLY appreciated, thanks
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.