Advertisement
themekid

tumblr floaties

May 11th, 2016
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. <script type="text/javascript" src="http://static.tumblr.com/i5s2zks/89Po71f5r/moveobj.js"> </script>
  2. <script type="text/javascript">
  3.  
  4. /***********************************************
  5. * Floating image script- By Virtual_Max (http://www.geocities.com/siliconvalley/lakes/8620)
  6. * Modified by Dynamic Drive for various improvements
  7. * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
  8. * 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!
  9. ***********************************************/
  10.  
  11. //Step 1: Define unique variable names depending on number of flying images (ie:3):
  12. var flyimage1, flyimage2, flyimage3, flyimage4, flyimage5
  13.  
  14. function pagestart(){
  15. //Step 2: Using the same variable names as 1), add or delete more of the below lines (47=width, height=68 of image):
  16. flyimage1=new Chip("flyimage1",40,62);
  17. flyimage2=new Chip("flyimage2",40,62);
  18. flyimage3=new Chip("flyimage3",40,62);
  19. flyimage4=new Chip("flyimage4",40,62);
  20. flyimage5=new Chip("flyimage5",40,62);
  21.  
  22.  
  23. //Step 3: Using the same variable names as 1), add or delete more of the below lines:
  24. movechip("flyimage1");
  25. movechip("flyimage2");
  26. movechip("flyimage3");
  27. movechip("flyimage4");
  28. movechip("flyimage5");
  29.  
  30. }
  31.  
  32. if (window.addEventListener)
  33. window.addEventListener("load", pagestart, false)
  34. else if (window.attachEvent)
  35. window.attachEvent("onload", pagestart)
  36. else if (document.getElementById)
  37. window.onload=pagestart
  38.  
  39. </script>
  40.  
  41. <!-- Step 4: Define your flying images. For each image's ID tag, use the same variable names as 1) above -->
  42.  
  43.  
  44. <div id="flyimage1" style="position:absolute; left: -500px; width:40; height:62; font-size:10px;">
  45. <img src="URL">
  46. </div>
  47.  
  48. <div id="flyimage2" style="position:absolute; left: -500px; width:40; height:62; font-size:10px;">
  49. <img src="URL">
  50. </div>
  51.  
  52. <div id="flyimage3" style="position:absolute; left: -500px; width:40; height:62; font-size:10px;">
  53. <img src="URL">
  54. </div>
  55.  
  56. <div id="flyimage4" style="position:absolute; left: -500px; width:40; height:62; font-size:10px;">
  57. <img src="URL">
  58. </div>
  59.  
  60. <div id="flyimage5" style="position:absolute; left: -500px; width:40; height:62; font-size:10px;">
  61. <img src="URL">
  62. </div>
  63.  
  64. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement