Click to See Complete Forum and Search --> : Making pages display randomly


Tusserte
05-12-2006, 06:59 PM
I currently know enough code to make pages display randomly in an iframe. I was wondering if it was possible to make the content to change only daily instead of every time the page refreshes. I also don't want it to be scheduled (changing every day of the week or of the month, etc). Is this possible? Also, is it possible to make a page that randomly displays another page (an instant redirection instead of an iframe)? Thanks!

CrazyMerlin
05-14-2006, 02:56 AM
when you say enough code...what scripting language do you refer to?

you could write a simple php script that opens a file and writes inside it the address of a page picked at random from an array of pages.

you main page could check this file, using php, and then redirect to that address.

you could set up a crontab to run the php script that changes the file, and have the crontab run daily at any time you wish.

doing that would mean the page gets changed randomly each 24 hours.

Tusserte
05-15-2006, 05:54 PM
You know, I don't understand PHP, ASP, and most Javascript. I was referring to randomly displaying iframes. Is it possible to do this with HTML or Javascript?

pcthug
05-16-2006, 02:24 AM
Javascript may be able to do such but not pure HTML

Tusserte
05-16-2006, 05:05 PM
Is there a link or tutorial that can help me?

Tusserte
05-21-2006, 04:33 PM
Anyone?