New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Random Background Images...


Post Reply New Thread Subscribe

 
Thread Tools
bobdaspider

 
Member Since: Jun 01, 2008
Posts: 23
bobdaspider is on a distinguished road
Mac Specs: iBook G4

bobdaspider is offline
Does anyone know if the following is possible to setup - if so, how:

Same homepage but there exists the possibility of getting 1 of 3 possible background images incorporated into a page - therefore if user 1 accesses homepage, they may get background image X, user 2 accessing homepage may get say background image Y, or Z or even X...

Thx in advance.

^o^
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
I did something similar (a foreground image) via a server side include that executed a Perl script on the server. I had to stop that as my current host didn't support server side includes. You can quick figure that out via that link and a quick test page.

An alternative might be to create a Javascript with a list of images and to randomly pick one. The limit here is that someone may have turned off Javascript execution. In that case you could set it up to show a fixed image.

CameraTime - Time lapse photography for novice and advanced users.

When asking questions, post the version of your software. You'll receive better answers.

Please post your results to the thread as it is good feedback.
QUOTE Thanks
Thyamine

 
Thyamine's Avatar
 
Member Since: Apr 23, 2007
Location: Coatesville, PA
Posts: 377
Thyamine will become famous soon enough
Mac Specs: MBP 15", 2.33 GHz, 2Gb

Thyamine is offline
I would go with the Javascript solution, as it's pretty easy to manage:

http://www.javascript-page.com/ranimage.html

That's one example. And as xstep said, they may have javascript turned off, but there's not much you can do about that. For the most part people usually don't, and if they do it's just a pic so no big deal.
QUOTE Thanks
bobdaspider

 
Member Since: Jun 01, 2008
Posts: 23
bobdaspider is on a distinguished road
Mac Specs: iBook G4

bobdaspider is offline
Thx for the info guys - for me, Javascript is the way to go - ie. easier for me to understand, so will definitely check out the attached link and have a play... Thx again.

^o^
QUOTE Thanks

Post Reply New Thread Subscribe


« Mac and Windows? | Help with banner for all pages »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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 Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Window background colors out of control ToddG OS X - Operating System 10 07-22-2008 08:26 PM
Images as Background Problem l2ob OS X - Apps and Games 3 03-03-2008 06:24 AM
importing additional images into a project nick_harambee OS X - Apps and Games 0 03-28-2007 05:49 PM
Legal Use of Web Images CarterSmith Web Design and Hosting 3 01-24-2007 05:28 AM
Getting images to show up in Dreamweaver dziner Web Design and Hosting 4 07-22-2004 04:11 PM

All times are GMT -4. The time now is 11:37 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?