Need Help making a Auto Refresher
Results 1 to 3 of 3

Thread: Need Help making a Auto Refresher

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    22

    Question Need Help making a Auto Refresher

    If anyone can help, I need help making a Auto refresher. I need it to be able to go to different URL's everytime it refreshs. The base URL will be the same just the after part will be different. Can anyone help if you have already made one or know where i can get one will be better i am only in my Second Semester of Programming

  2. #2
    Regal Making Handler
    Join Date
    Jun 2002
    Posts
    1,668
    http://www.whitehouse.net/
    Have a look above. hit refresh a few times first. Then have a look at the source.
    What happens if a big asteroid hits the Earth? Judging from realistic simulations involving a sledge hammer and a common laboratory frog, we can assume it will be pretty bad. - Dave Barry

  3. #3
    AO French Antique News Whore
    Join Date
    Aug 2001
    Posts
    2,126
    PHP Code:
    <script language="Javascript">
    &
    lt;!--
    // please keep these lines on when you copy the source
    // made by: Nicolas - [url]http://www.javascript-page.com[/url]

    var currentdate 0
    var core 0

    function StringArray (n) {
      
    this.length n;
      for (var 
    =1<= ni++) {
        
    this[i] = ' '

      
    }
    }

    image = new StringArray(10)
    image[0] = '0.gif'
    image[1] = '1.gif'
    image[2] = '2.gif'
    image[3] = '3.gif'
    image[4] = '4.gif'
    image[5] = '5.gif'
    image[6] = '6.gif'
    image[7] = '7.gif'
    image[8] = '8.gif'
    image[9] = '9.gif'

    var ran 60/image.length

    function ranimage() {
      
    currentdate = new Date()
      
    core currentdate.getSeconds()
      
    core Math.floor(core/ran)
        return(
    image[core])
    }

    document.write("<img src='" +ranimage()+ "'>")

    //-->
    </script&gt
    This script will random image on your website... You have to change a few code to random website...

    Hint : 1.gif, 2.gif should be change for hyerpink and <img src= for <meta refresh
    -Simon \"SDK\"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •