 |
 |
need help with rotating page
|
 |
|
 |
|
Professional Poster
Join Date: May 1999
Location: New York City
Status:
Offline
|
|
Hello
U know how apple.com has a rotating page like one for OSX, one for PB etc....when you reload the page or the next time you log on....
where can I get a source code to do that?
is it a java script?
also can one program that through Golive?
thx
sam
|
The rich are cheap. That's how they got rich.
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Mar 2001
Status:
Offline
|
|
normally it is done with CGi or PHP type coding. your server needs SSI (i) and PERL. once you find that out I will tell you more.
I have been working on a CGI and javascript script because i would work on some sites that dont have SSI. It doesnot work as well as it should.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Aug 1999
Location: Calgary, Alberta, Canada
Status:
Offline
|
|
Some sort of CGI script is probably your best bet. But, Apple does use SSI for the rotating banner.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Status:
Offline
|
|
You don't need any server-side language. You can use simple javascript to serve one image vs. another or to pick a random image and do it.
There are a million ways to do it. It depends on what your requirements are:
Do you want to show a specific page to all users?
Do you want to show a specific page to say PC users?
Do you want to show a random page to all users..
And the list goes on and on.. let us know what you really want and we'll tell you.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
A server-side solution is better-suited to this type of task than JavaScript would be, because it can serve the pics even to people who don't have JavaScript for whatever reason.
That said, this isn't particularly difficult. If you have SSI available, then you could even use AppleScript to pick images out of a random folder. The principle is similar to the "pick-a-random-Desktop-picture" scripts for OSX that have been floating around the forums there.
|
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Status:
Offline
|
|
Originally posted by Millennium:
<STRONG>A server-side solution is better-suited to this type of task than JavaScript would be.</STRONG>
Sure, if he is a programmer and knows more about security than he wants to know. Server-side solutions may not work for him. Server-side may not even be an option. Based on the wording of his initial question I'm guessing that he's not a "programmer".
You can probably find some good canned javascript at many developer scripting sites like hotscripts.com or zdnet.com's devhead or something. If not then we can do your homework. Just let us know your requirements.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |