Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > need help with rotating page

need help with rotating page
Thread Tools
Professional Poster
Join Date: May 1999
Location: New York City
Status: Offline
Reply With Quote
Dec 12, 2001, 08:49 PM
 
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
Reply With Quote
Dec 12, 2001, 09:13 PM
 
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
Reply With Quote
Dec 13, 2001, 12:55 AM
 
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
Reply With Quote
Dec 13, 2001, 09:14 AM
 
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
Reply With Quote
Dec 14, 2001, 02:59 PM
 
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
Reply With Quote
Dec 15, 2001, 11:30 PM
 
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.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:42 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2