Results 1 to 5 of 5

Thread: Searching for a script.. (Random displayed links)

  1. #1
    Aquarezz's Avatar
    Aquarezz is offline Master Net Builder
    Join Date
    Dec 2008
    Location
    Belgium
    Posts
    3,846
    Blog Entries
    4
    Thanks
    683
    Thanked 590 Times in 462 Posts

    Searching for a script.. (Random displayed links)

    Hello,
    I'm searching for a scripts, who randomly displays websites, on OTHER websites...
    So I add all the sites through my site 'A', and can delete them from there too, and when added the code on site 'B,C,D' etc.. they will randomly display...

    I saw something like this many times before.. but never found one to 'offline'..

    Can someone help?

    Greetz
    |Nico Lawsons

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts
    Nic's page isn't responding at the moment, so I'll just post my hacked up version of his code here.

    Code:
    <script language="Javascript" type="text/javascript">
    <!--
    // original content taken from Nic's JavaScript Page with permission
    // lack of these three lines will result in copyright infringment
    // made by: Nic's JavaScript Page - http://www.javascript-page.com
    
    var currentdate = 0;
    var core = 0;
    
    function initArray() {
    
    this.length = initArray.arguments.length;
      for (var i = 0; i < this.length; i++) {
      this[i] = initArray.arguments[i];
      }
    }
    
    link = new initArray(
    "<a href=\"http://www.gsm-security.net\">What is GSM Security?</a>",
    "<a href=\"http://www.sansecurity.com\">What is SAN (Storage Area Network) Security?</a>",
    "<a href=\"http://www.enterprisestoragemanagement.com\">What is storage management?</a>",
    "<a href=\"http://www.entrepreneur-support.com\">Are you starting a small business?</a>",
    "<a href=\"http://www.fortliberty.org\">Are you worried about the future of America?</a>",
    "<a href=\"http://www.famous-quote.net\">Would you like a good quote to brighten your day?</a>",
    "<a href=\"http://www.nuclearnow.org\">What are the pros and cons of nuclear power?</a>"
    );
    
    var currentdate = new Date();
    var core = currentdate.getSeconds() % link.length;
    var ranlink  = link[core];
    
    document.write('' +ranlink+ '');
    
    //-->
    </SCRIPT>
    Not the very important lack of a comma on the last item in the list.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  3. #3
    Aquarezz's Avatar
    Aquarezz is offline Master Net Builder
    Join Date
    Dec 2008
    Location
    Belgium
    Posts
    3,846
    Blog Entries
    4
    Thanks
    683
    Thanked 590 Times in 462 Posts
    Looks good, but how can I change the links on ALL sites, by changing them on ONE site?
    I mean, I want if I change them on site 'A', they are automaticly changed on site 'B,C' etc.. too...

    Greetz
    |Nico Lawsons

  4. #4
    5starpix's Avatar
    5starpix is offline Senior Net Builder
    Join Date
    Dec 2008
    Location
    Montreal, Quebec
    Posts
    1,710
    Blog Entries
    9
    Thanks
    158
    Thanked 227 Times in 164 Posts
    Just upload it to one site, and use that link for all sites. So once you overwrite the file on the main site, they all change.

    like use

    http://www.example.com/links-page.php for all sites

  5. Thanked by:

    Aquarezz (20 January, 2009)

  6. #5
    Aquarezz's Avatar
    Aquarezz is offline Master Net Builder
    Join Date
    Dec 2008
    Location
    Belgium
    Posts
    3,846
    Blog Entries
    4
    Thanks
    683
    Thanked 590 Times in 462 Posts
    Quote Originally Posted by 5starpix View Post
    Just upload it to one site, and use that link for all sites. So once you overwrite the file on the main site, they all change.

    like use

    http://www.example.com/links-page.php for all sites
    Cool, thanks a lot
    *Solved*

    Greetz
    |Nico Lawsons

Similar Threads

  1. Searching Amazon bot?
    By Sami4u in forum Monetizing
    Replies: 9
    Last Post: 27 October, 2010, 15:41 PM
  2. Replies: 5
    Last Post: 2 July, 2010, 08:14 AM
  3. What affiliate script links are they using?
    By thesyndicate in forum Web Design
    Replies: 4
    Last Post: 3 May, 2010, 00:09 AM
  4. Link not displayed in posts..
    By sandeepdude in forum Announcements and Suggestions
    Replies: 4
    Last Post: 24 September, 2009, 10:36 AM
  5. Searching for links in google
    By GameOver in forum Promoting
    Replies: 3
    Last Post: 16 May, 2009, 13:43 PM

Tags for this Thread

Bookmarks

Posting Permissions

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