Results 1 to 6 of 6

Thread: anyone please provide me a script to redirect to random pages

  1. #1
    garfish's Avatar
    garfish is offline I'm Not Sure.
    Join Date
    May 2009
    Posts
    848
    Blog Entries
    12
    Thanks
    155
    Thanked 57 Times in 54 Posts

    anyone please provide me a script to redirect to random pages

    anyone please provide me a script to redirect to random pages.
    i'd like my users to view random pages once they click a link please.

  2. #2
    Nutz is offline Newbie Net Builder
    Join Date
    Jun 2010
    Posts
    10
    Thanks
    0
    Thanked 5 Times in 4 Posts
    A true random page?
    Why do you want to make fools of your visitors?

  3. #3
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    maybe he's trying to give his visitors a chance to visit a random page by clicking "visit random page!". as for an actual script, I think it can be done using PHP rand and case functions but I guess you'll have to add the links manually to the script

  4. #4
    Nutz is offline Newbie Net Builder
    Join Date
    Jun 2010
    Posts
    10
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Well, i see Wiki have this function.. But that "random page" is within Wiki. Not throwing the user away from Wiki..

    Maybe his CMS have this option as an plugin.. and the "random page" will be an article on-site.

  5. #5
    Andy101's Avatar
    Andy101 is online now Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,313
    Thanks
    178
    Thanked 309 Times in 236 Posts
    This can be done with Javascript.

    Add an onClick event to the link, randomly select from a list of page links and use window.location to go to the page.

    You could search on "javascript redirect to random page" to find a script.
    Otaku CMS - Import a WordPress blog and manage your site using single-page App technology

  6. #6
    trueschooled's Avatar
    trueschooled is offline Newbie Net Builder
    Join Date
    Jun 2010
    Posts
    48
    Thanks
    0
    Thanked 6 Times in 5 Posts
    Put your pages into a table and use SQL queries to run them.

Similar Threads

  1. Replies: 1
    Last Post: 23 August, 2010, 21:09 PM
  2. [WTS] 2 PR5 pages and 2 PR4 pages link your web,just $3/year
    By linkforsale in forum Links
    Replies: 1
    Last Post: 24 May, 2010, 03:10 AM
  3. Provide me Plz
    By Ms Excel Education in forum Business
    Replies: 2
    Last Post: 21 May, 2010, 19:37 PM
  4. Proxy Templates That Provide Good CTR
    By Will.Spencer in forum Proxy Templates
    Replies: 15
    Last Post: 20 October, 2009, 20:13 PM
  5. Searching for a script.. (Random displayed links)
    By Aquarezz in forum Programming
    Replies: 4
    Last Post: 20 January, 2009, 17:52 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
  •