javascript question for the programmers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #1

    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.
  • cfU
    Confirmed User
    • Jan 2003
    • 933

    #2
    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?
    Last edited by cfU; 01-11-2005, 07:00 AM.

    Comment

    • arachnO
      Confirmed User
      • Jan 2004
      • 1327

      #3
      <script>
      var ran_number=Math.round(Math.random()) + 1;
      document.write ('<script src=banner' + ran_number + '.js'></script>');
      </script>

      something like this I think...
      All news from Adult Industry: new sites, new galleries, updated sites, PPS days and much more!
      TrafficHolder.com - Buy/Sell Adult Traffic

      Comment

      Working...