Advertisement
aiste891

Untitled

Mar 8th, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. <script type="text/javascript" src="http://www.snazzyspace.com/moveobj.js"> </script>
  6. <script type="text/javascript">
  7.  
  8. /***********************************************
  9. * Floating image script- By Virtual_Max (http://www.geocities.com/siliconvalley/lakes/8620)
  10. * Modified by Dynamic Drive for various improvements
  11. * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
  12. ***********************************************/
  13.  
  14. //Step 1: Define unique variable names depending on number of flying images (ie:3):
  15. var flyimage1, flyimage2, flyimage3
  16.  
  17. function pagestart(){
  18. //Step 2: Using the same variable names as 1), add or delete more of the below lines (60=width, height=80 of image):
  19. flyimage1=new Chip("flyimage1",100,169);
  20. flyimage2=new Chip("flyimage2",100,169);
  21. flyimage3=new Chip("flyimage3",100,169);
  22.  
  23.  
  24. //Step 3: Using the same variable names as 1), add or delete more of the below lines:
  25. movechip("flyimage1");
  26. movechip("flyimage2");
  27. movechip("flyimage3");
  28.  
  29. }
  30.  
  31. if (window.addEventListener)
  32. window.addEventListener("load", pagestart, false)
  33. else if (window.attachEvent)
  34. window.attachEvent("onload", pagestart)
  35. else if (document.getElementById)
  36. window.onload=pagestart
  37.  
  38. </script>
  39.  
  40.  
  41. <!-- Step 4: Define your flying images. For each image's ID tag, use the same variable names as 1) above -->
  42.  
  43. <DIV ID="flyimage1" STYLE="position:absolute; left: -500px; width:100; height:169;">
  44. <A HREF="http://www.snazzyspace.com/moving-objects.php"><IMG SRC="http://www.snazzyspace.com/movingobjects/screaming-cat.png" BORDER=0></a>
  45. </DIV>
  46.  
  47. <DIV ID="flyimage2" STYLE="position:absolute; left: -500px; width:100; height:169;">
  48. <A HREF="http://www.snazzyspace.com/moving-objects.php"><IMG SRC="http://www.snazzyspace.com/movingobjects/screaming-cat.png" BORDER=0></a>
  49. </DIV>
  50.  
  51. <DIV ID="flyimage3" STYLE="position:absolute; left: -500px; width:100; height:169;">
  52. <A HREF="http://www.snazzyspace.com/moving-objects.php"><IMG SRC="http://www.snazzyspace.com/movingobjects/screaming-cat.png" BORDER=0></a>
  53. </DIV>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement