You just need the script part (in Html/Code view in the HEAD section) and the body onload
- replace his image names w/ the path/imagesnames you have
--
| Jim,
|
| I'm still a bit confused. You said insert this code into my html page. I'm not all that quite sure how to do this in FP2003. In
previous versions of FP or FP Express all you had to do was go to the tools menu and select INSERT=>JAVA SCRIPTS. You are presented
with a box to copy and paste the code. Frontpage places the code in the correct place. I say this because I am not all that good
with raw html. I intend to place this code in my home page and of course with other information. I also see you have a title for
the page. But the page I want to insert the code already has a title. Finally, the images I plan to use for this ad rotator are
already in Frontpage image folder. Are you saying just replace the names you have here with mine. I take it I do not require any
url refrence to the image since they are in FrontPage image folders?
|
| Thank you
| Greg
|
| ----- Jim Buyens wrote: -----
|
| >-----Original Message-----
| >Hi,
|
| Howdy.
|
| >I created layers of photos (6 linked photos) I would
| >like to rotate on my website. I need to know what
| >behavior to use to make the photos rotate. I do not need
| >mouse over. Just plain banner/ad rotator as was
| >available in FP2002. Can this be done with FP2003?
| >Thank you
| >Greg
|
| I presume you want the photos to change based on time.
| FrontPage behaviors really don't support timers but here's
| a page that rotates six pictures, advanding to the next
| every 5000 miliseconds.
|
| <html><head><title>Rotate Pictures</title><script language="JavaScript">
| picNr = 0;
| picName = new Array("bear_cub.jpg",
| "cow.jpg",
| "dog.jpg",
| "cat.jpg",
| "moose.jpg",
| "alligator-1.jpg");
|
| function rotatePics(){
| document.rotating.src = "images/" + picName[picNr];
| if (picNr < picName.length - 1) {
| picNr = picNr + 1;
| }else{ picNr = 0;
| } setTimeout("rotatePics();",5000);
| }
| </script></head><body onLoad="rotatePics();"><img name="rotating" border="0"
| src="images/alligator-1.jpg"></body></html>
|
| Jim Buyens
| Microsoft FrontPage MVP
|
http://www.interlacken.com
| Author of:
| *----------------------------------------------------
| |\---------------------------------------------------
| || Microsoft Office FrontPage 2003 Inside Out
| ||---------------------------------------------------
| || Web Database Development Step by Step .NET Edition
| || Microsoft FrontPage Version 2002 Inside Out
| || Faster Smarter Beginning Programming
| || (All from Microsoft Press)
| |/---------------------------------------------------
| *----------------------------------------------------
|
|