kawaiibuu

Floaties

May 20th, 2013
8,228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. Find <head> tag and paste this after:
  2. <meta name="image:floaties1" content="" />
  3. <meta name="image:floaties2" content="" />
  4. <meta name="image:floaties3" content="" />
  5. <meta name="image:floaties4" content="" />
  6. <meta name="image:floaties5" content="" />
  7.  
  8. Then find <body> and paste this after:
  9. <script type="text/javascript" src="http://samisite.com/extras/HTMLobj-1640/moveobj.js"> </script>
  10. <script type="text/javascript">
  11.  
  12. /***********************************************
  13. * Floating image script- By Virtual_Max (http://www.geocities.com/siliconvalley/lakes/8620)
  14. * Modified by Dynamic Drive for various improvements
  15. * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
  16. * Using CSB or Trellix: use an INSERT HTML box to hold your script and put your js and images into web components (webgem in Trellix). Then you MUST change each gEMDIR to GEMDIR before using code!
  17. ***********************************************/
  18.  
  19. //Step 1: Define unique variable names depending on number of flying images (ie:3):
  20. var flyimage1, flyimage2, flyimage3, flyimage4
  21.  
  22. function pagestart(){
  23. //Step 2: Using the same variable names as 1), add or delete more of the below lines (47=width, height=68 of image):
  24. flyimage1=new Chip("flyimage1",40,62);
  25. flyimage2=new Chip("flyimage2",40,62);
  26. flyimage3=new Chip("flyimage3",40,62);
  27. flyimage4=new Chip("flyimage4",40,62);
  28. flyimage5=new Chip("flyimage5",40,62);
  29. flyimage6=new Chip("flyimage6",40,62);
  30.  
  31.  
  32. //Step 3: Using the same variable names as 1), add or delete more of the below lines:
  33. movechip("flyimage1");
  34. movechip("flyimage2");
  35. movechip("flyimage3");
  36. movechip("flyimage4");
  37. movechip("flyimage5");
  38. movechip("flyimage6");
  39.  
  40. }
  41.  
  42. if (window.addEventListener)
  43. window.addEventListener("load", pagestart, false)
  44. else if (window.attachEvent)
  45. window.attachEvent("onload", pagestart)
  46. else if (document.getElementById)
  47. window.onload=pagestart
  48.  
  49. </script>
  50.  
  51. <!-- Step 4: Define your flying images. For each image's ID tag, use the same variable names as 1) above -->
  52.  
  53.  
  54. <div id="flyimage1" style="position:absolute; left: -500px; width:40; height:62; font-size:10px;">
  55. <img src="{image:floaties1}">
  56. </div>
  57.  
  58. <div id="flyimage2" style="position:absolute; left: -500px; width:40; height:62; font-size:10px;">
  59. <img src="{image:floaties2}">
  60. </div>
  61.  
  62. <div id="flyimage3" style="position:absolute; left: -500px; width:40; height:62; font-size:10px;">
  63. <img src="{image:floaties3}">
  64. </div>
  65.  
  66. <div id="flyimage4" style="position:absolute; left: -500px; width:40; height:62; font-size:10px;">
  67. <img src="{image:floaties4}">
  68. </div>
  69.  
  70. <div id="flyimage5" style="position:absolute; left: -500px; width:40; height:62; font-size:10px;">
  71. <img src="{image:floaties5}">
  72. </div>
Advertisement
Add Comment
Please, Sign In to add comment