![]() |
![]() |
![]() |
||||
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 |
![]() |
#1 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,372
|
javascript question for the programmers
i have banners.js which has my teen solo sites in it and i have banners2.js which has all other sites reality sites and so on. i just wanted to seperated the 2. is there any way i can put them on a site but load them randomly?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2003
Posts: 933
|
Could do a random counter and then depending on the value
do a document.write("<SCRIPT TYPE="text/javascript" ............. to which banners you want on the page, no? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Cyprus
Posts: 1,327
|
<script>
var ran_number=Math.round(Math.random()) + 1; document.write ('<script src=banner' + ran_number + '.js'></script>'); </script> something like this I think... |
![]() |
![]() ![]() ![]() ![]() ![]() |