Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript" src="http://www.snazzyspace.com/moveobj.js"> </script>
- <script type="text/javascript">
- /***********************************************
- * Floating image script- By Virtual_Max (http://www.geocities.com/siliconvalley/lakes/8620)
- * Modified by Dynamic Drive for various improvements
- * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
- ***********************************************/
- //Step 1: Define unique variable names depending on number of flying images (ie:3):
- var flyimage1, flyimage2, flyimage3
- function pagestart(){
- //Step 2: Using the same variable names as 1), add or delete more of the below lines (60=width, height=80 of image):
- flyimage1=new Chip("flyimage1",100,169);
- flyimage2=new Chip("flyimage2",100,169);
- flyimage3=new Chip("flyimage3",100,169);
- //Step 3: Using the same variable names as 1), add or delete more of the below lines:
- movechip("flyimage1");
- movechip("flyimage2");
- movechip("flyimage3");
- }
- if (window.addEventListener)
- window.addEventListener("load", pagestart, false)
- else if (window.attachEvent)
- window.attachEvent("onload", pagestart)
- else if (document.getElementById)
- window.onload=pagestart
- </script>
- <!-- Step 4: Define your flying images. For each image's ID tag, use the same variable names as 1) above -->
- <DIV ID="flyimage1" STYLE="position:absolute; left: -500px; width:100; height:169;">
- <A HREF="http://www.snazzyspace.com/moving-objects.php"><IMG SRC="http://www.snazzyspace.com/movingobjects/screaming-cat.png" BORDER=0></a>
- </DIV>
- <DIV ID="flyimage2" STYLE="position:absolute; left: -500px; width:100; height:169;">
- <A HREF="http://www.snazzyspace.com/moving-objects.php"><IMG SRC="http://www.snazzyspace.com/movingobjects/screaming-cat.png" BORDER=0></a>
- </DIV>
- <DIV ID="flyimage3" STYLE="position:absolute; left: -500px; width:100; height:169;">
- <A HREF="http://www.snazzyspace.com/moving-objects.php"><IMG SRC="http://www.snazzyspace.com/movingobjects/screaming-cat.png" BORDER=0></a>
- </DIV>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement