Advertisement
Guest User

Floaties for Tumblr

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