GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Anyone know how to do a banner rotator javacripst? (https://gfy.com/showthread.php?t=678459)

Queefcake 11-17-2006 05:34 PM

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?

marko13 11-17-2006 05:52 PM

go www.hotscript.com and you'll find what you need....

psili 11-17-2006 06:01 PM

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>


Queefcake 11-17-2006 06:19 PM

Quote:

Originally Posted by marko13 (Post 11338761)
go hotscript dot com and you'll find what you need....

That place is confusing. Ive never been able to get a script from there that worked.

OG LennyT 11-17-2006 06:21 PM

Google 'rotating banner script'

you'll get what you need

bobby666 12-17-2006 03:49 PM

if you don't waant to google go here:
http://www.javascript-page.com
it's free and a great script

garce 12-17-2006 03:54 PM

Quote:

Originally Posted by bobby666 (Post 11543297)
if you don't waant to google go here:
http://www.javascript-page.com
it's free and a great script

Cool site.


All times are GMT -7. The time now is 06:55 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123