Latest Scrolling Blimp Code
UPDATE: FOR LATEST BLIMP SCROLL EFFECTS EXAMPLES CHECK OUT
http://www.bjrnet.com/ronpaulblimps
-------------------------
OK guys, I've made some changes that allow the latest clean blimp transparent images (from ronpaulblimp.com) to be used and to randomly use the portside or starboard images. In otherwords, sometimes the blimp will scroll left to right (Revolution) or right to left (Who is.). I've set up my site for 60% "Who is Ron Paul" and 40% "Revolution". Also, notice the change in the graphic image names
Example:
http://www.bjrnet.com
(Reload the page a few times until you see both left to right and right to left blimps.)
Here we go:
First you need the main Javascript file at
http://www.bjrnet.com/js/dw_float.js .
Now in the HEAD (notice the new random function call):
<style type="text/css">#floatDiv {position:absolute; visibility:hidden;left:0;top:0;z-index:200;}</style>
<script src="/js/dw_float.js" type="text/javascript"language="javascript"></script>
<script type="text/javascript" language="javascript">var ronpaul=(100*Math.random());</script>
Now in the HTML where you want the blimp to scroll from:
<script type="text/javascript" language="javascript">
if(ronpaul<60)document.write("<div id='floatDiv'><a href='http://www.ronpaul2008.com' target='_blank'><img src='/images/politics/BlimpPort.gif' width='280' height='95' border='0' alt='Join the Revolution - Support Ron Paul' title='Join the Revolution - Support Ron Paul'></a></div>");
else document.write("<div id='floatDiv'><a href='http://www.ronpaul2008.com' target='_blank'><img src='/images/politics/BlimpStarboard.gif' width='280' height='95' border='0' alt='Join the Revolution - Support Ron Paul' title='Join the Revolution - Support Ron Paul'></a></div>");
</script>
And finally at the end of the file to prevent the blimp from scrolling until the page is fully loaded:
<script type="text/javascript" language="javascript">
/* This code is from Dynamic Web Coding at
http://www.dyn-web.com/ Copyright 2003 by Sharon Paine See Terms of Use at
http://www.dyn-web.com/bus/terms.html */
// arguments: id, left, top, direction, speed (pixels per loop), delay for restart or null
if(ronpaul<60)new floatObject("floatDiv", 1200, 40, "left", 1, null);
else new floatObject("floatDiv", -70, 40, "right", 1, null);
</script>
And finally, don't forget that the image locations above are shown as relative. If you want to use the images you need to copy them to your server or point to
http://ronpaulideas.com/Files/BlimpPort.gif and
http://ronpaulideas.com/Files/BlimpStarboard.gif.
Let me know if see any errors or problems.
Enjoy!
Michael Dalton
Blackjack Review Network
http://www.BJRnet.com
http://www.mypokerbonuscodes.com