|   |   |   | ||||
| Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. | 
|    | 
| 
 | |||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
|  | Thread Tools | 
|  11-17-2006, 05:34 PM | #1 | 
| Registered User Join Date: Feb 2006 
					Posts: 48
				 | 
				
				Anyone know how to do a banner rotator javacripst?
			 Like say my banners are: banner1.gif banner2.gif banner3.gif and everytime the page reloads it has a new banner. Anyone know the code to do that? | 
|   |           | 
|  11-17-2006, 05:52 PM | #2 | 
| Confirmed User Join Date: Apr 2004 Location: www.lvpshosting.com 
					Posts: 7,512
				 | go www.hotscript.com and you'll find what you need.... 
				__________________ We are responsible for your hosting ... Enjoy in your life. Shared hosting from $3.95 Europe Linux VPS plans from $11.37 http://www.LVPSHosting.com | 
|   |           | 
|  11-17-2006, 06:01 PM | #3 | 
| Confirmed User Join Date: Apr 2003 Location: Loveland, CO 
					Posts: 5,526
				 | I'm just doing this off-the-cuff without testing, so..... *shrug* Code: <script type="text/JavaScript">
function rotateBanner()
{
   var target = document.images["targetbanner"];
   var banners = array("banner1.gif","banner2.gif","banner3.gif");
   target.src = Math.floor ( Math.random ( ) * banners.length );
}
</script>
<html>
 <body onload="rotateBanner()">
  <img src="clearpix.gif" name="targetBanner"/>
</body>
</html>
				__________________ Your post count means nothing. | 
|   |           | 
|  11-17-2006, 06:19 PM | #4 | 
| Registered User Join Date: Feb 2006 
					Posts: 48
				 | |
|   |           | 
|  11-17-2006, 06:21 PM | #5 | 
| Wall Street Pimp Industry Role:  Join Date: Jun 2003 Location: Phoenix, AZ 
					Posts: 14,345
				 | Google 'rotating banner script' you'll get what you need 
				__________________ Tradeking - my online broker | 4.95 a trade | make real $$ | 
|   |           | 
|  12-17-2006, 03:49 PM | #6 | 
| boots are my religion Join Date: Nov 2005 Location: Heart of europe 
					Posts: 21,765
				 | |
|   |           | 
|  12-17-2006, 03:54 PM | #7 | |
| Confirmed User Industry Role:  Join Date: Oct 2001 Location: Toronto 
					Posts: 7,103
				 | Quote: | |
|   |           |