Home General Chat
If you need urgent support, call 999 or go to your nearest A&E. To contact our Crisis Messenger (open 24/7) text THEMIX to 85258.
Options

Random page load script

Former MemberFormer Member Posts: 1,876,323 The Mix Honorary Guru
Let's say someone clicks on a link to example.html. I want this page to reload a random page from an array, say one.html, two.html, three.html etc. Does anyone know of a script that will refresh the page but with a random page from an array of pages I give it?

Comments

  • Options
    Former MemberFormer Member Posts: 1,876,323 The Mix Honorary Guru
    php or javascript?

    Either would do what you say fairly easily to be honest, but the javascript one would be more of a hack, and probably be susceptible to security warnings.
  • Options
    Former MemberFormer Member Posts: 1,876,323 The Mix Honorary Guru
    Aye, I'm not a big fan of javascript but I still haven't worked my around php yet apart from playing around with the blogging and forum software. Do you have a link to a script then pretty please?
Sign In or Register to comment.