Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: random page and forward  (Read 13589 times)

0 Members and 1 Guest are viewing this topic.

hilikus

  • Guest
random page and forward
« on: June 24, 2004, 03:58:41 PM »
i would like to add a splash page to my site

i need it to have a frame (or anything like that) at the top that will go to a random html page i have made that has a picture and text.

it then needs to redirect to my main part of my site (another html file.)

if anyone have time to spare, i need some help on making this work.

Joleen

  • Guest
Re: random page and forward
« Reply #1 on: June 25, 2004, 05:53:26 AM »
I usually do my own homework but..

Make your splash page the index.htm.

Look at some of the other threads in Web Design for help on the frame.  It's been discussed.

Redirect from the index to your main or whatever.

You're done.

hilikus

  • Guest
Re: random page and forward
« Reply #2 on: June 25, 2004, 08:32:48 AM »
i know how to do all that. i need to know how to make a random page load in the frame.

Joleen

  • Guest
Re: random page and forward
« Reply #3 on: June 25, 2004, 08:44:41 AM »
I'm going to assume that when you say random you mean from a predefined number of available websites and not truly random like www.xBi3!.html (characters chosen randomly by my fingers).

If that's the case then I'd stard with a javascript array containing your chosen sites then on the onclick= event of your link point to the script and randomly pick one of the array elements.

hilikus

  • Guest
Re: random page and forward
« Reply #4 on: June 25, 2004, 05:08:43 PM »
yes, by random i mean pages i have all ready made and are on my server.

can anyone help me on forwarding to another page, all i have found will open it in a new window. i need one of those things that says you will be redirected in *blank* secs.

Joleen

  • Guest
Re: random page and forward
« Reply #5 on: June 28, 2004, 05:53:49 AM »
Use the javascript and employ a timer.  When the timer runs out redirect.