Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »General Web Design Forum

Notices

General Web Design Forum Discuss General Web Design Issues


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-12-2007, 08:36 PM
PR Design's Avatar
CSS Wizardry
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 4,625
Default The answer is here!

Ok so the title is hyperbolic at best lol. But this is a question I have seen a few times on this forum and around the interweb. "How do I make random images with each page refresh?". A lot of the time people turn to less reliable JS solutions so I wrote a simple PHP snippet. Most of you will know about this alternative, but for those who don't: Random Cyclic Images with PHP :: CSS Wizardry - The online home of Harry Roberts, freelance front-end developer in West Yorkshire
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #2 (permalink)  
Old 11-12-2007, 09:11 PM
LeadMagnet's Avatar
Mr. Tambourine Man
 
Join Date: Jun 2007
Location: Ireland
Gender: Male
Posts: 1,539
Default

Why is the JS solution less reliable? What happens if your php page is cached and not refreshed every time a user visits it? Then won't your image won't change, but it would if you were using javascript.
__________________
Subtlety is my middle name... and first and last in case you didn't get the point.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 11-12-2007, 09:13 PM
PR Design's Avatar
CSS Wizardry
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 4,625
Default

Yes, but if JS is disabled there will be no image whatsoever. Oh and every JS version I've seen uses way more code.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 12-12-2007, 12:09 AM
Mack's Avatar
I own the flash design thread.
 
Join Date: May 2007
Location: RI, USA
Gender: Male
Posts: 1,253
Default

Php Vs Js

Fight!

DO it with Flash !
lol
__________________
"If at first you don't succeed, try again. Then quit. No use being a damn fool about it."
Mike McKenzie - Online Portfolio
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 12-12-2007, 07:59 AM
...Gav's Avatar
norks!
 
Join Date: Oct 2007
Gender: Male
Posts: 399
Default

Yet another fantastic snippet from CSS Wizardry

I practically live on this site lol

Good work Harry
__________________
ghdesign studio coming soon!
ghdesigns | ghphotography | ghillustrations
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 12-12-2007, 08:02 AM
PR Design's Avatar
CSS Wizardry
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 4,625
Default

Quote:
Originally Posted by ...Gav View Post
I practically live on this site lol
Really?! lol. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 12-12-2007, 10:17 AM
Toon's Avatar
Netvibes is an Addiction™
 
Join Date: Jan 2007
Location: Sheffield, UK
Gender: Male
Posts: 17,979
Default

Quote:
Originally Posted by Mack View Post
Php Vs Js

Fight!
Google Fight : Make this fight with googleFight PHP VS Javascript

Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #8 (permalink)  
Old 12-12-2007, 11:36 AM
Kelly Creative's Avatar
You are safe now little Titty-Logic
 
Join Date: Jan 2007
Location: On The Edge
Gender: Female
Posts: 3,148
Default

Google Fight : Make this fight with googleFight kelly creative VS ianm
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #9 (permalink)  
Old 12-12-2007, 02:08 PM
PR Design's Avatar
CSS Wizardry
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 4,625
Default

Haha, Google Fight, quality.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #10 (permalink)  
Old 12-12-2007, 10:38 PM
flick's Avatar
official g33k ®
 
Join Date: Aug 2007
Location: Manchester
Gender: Female
Posts: 2,075
Default

haha, that's awesome. i could spend a LOT of time thinking up fights :D
__________________
-- my new favourite g33k site: http://parsed.org --
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question for who ever can answer it e.alexander Photography Forum 20 27-02-2008 05:10 AM
Image use? - (searched archives for an answer) A Posse Ad Esse Graphic Design and Web Design Help 15 08-11-2007 11:37 AM
Please answer my surveey :) PR Design Graphic Design and Web Design Help 7 07-10-2007 08:56 PM
is anything worn under a kilt? the answer! strev Off Topic 2 19-09-2007 06:54 PM


All times are GMT. The time now is 03:57 PM.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0