Logo changes on refresh

This is a discussion on "Logo changes on refresh" within the Web Page Design section. This forum, and the thread "Logo changes on refresh are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 11th, 2006, 15:07
Reputable Member
Join Date: Oct 2006
Location: United Kingdom
Age: 21
Posts: 238
Blog Entries: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Logo changes on refresh

Hi,

I was just wondering, is it possible to make an image change on a site on refreshing the page??? If so, how would I go about doing this???

Thanks in advance,

Ross
Last Blog Entry: Blog Noughts and Crosses (Nov 14th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 11th, 2006, 16:50
Reputable Member
Join Date: May 2006
Location: Warrington, UK
Posts: 428
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Logo changes on refresh

You could use php to generate a random number everytime the page was loaded, and select the picture depending on what number was thrown up.

Might not be the best way though
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 11th, 2006, 20:13
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Logo changes on refresh

Sounds like a good way to me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 12th, 2006, 02:26
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Logo changes on refresh

Yeah, that sounds like a good way to accomplish it to me as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 12th, 2006, 02:47
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Logo changes on refresh

If you had four logos you wanted to switch between, this code could work for that:

PHP: Select all

<?php
$random_number 
rand(04); 
echo 
'<img src="images/logo-'.$random_number.'.gif" width="200" height="40" title="Logo" />';
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Dec 12th, 2006, 09:12
Reputable Member
Join Date: May 2006
Location: Warrington, UK
Posts: 428
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Logo changes on refresh

Thanks ryan, i was just about to go and figure that out myself lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Dec 12th, 2006, 18:21
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Logo changes on refresh

I shall save that in my little archive of secrets
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Dec 12th, 2006, 20:01
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Logo changes on refresh

hehehe...lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Dec 12th, 2006, 21:30
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Logo changes on refresh

Haha
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Dec 13th, 2006, 09:41
Reputable Member
Join Date: Oct 2006
Location: United Kingdom
Age: 21
Posts: 238
Blog Entries: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Logo changes on refresh

Cheers for that Ryan, it's appreciated.

Thanks also to everyone else.
Last Blog Entry: Blog Noughts and Crosses (Nov 14th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Dec 13th, 2006, 10:48
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Logo changes on refresh

No problem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
logo, refresh

Thread Tools

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop the browser refresh on clicking the webbrowser's refresh button ? camarun20 JavaScript Forum 3 Mar 19th, 2008 00:04
When Refresh go 1 again gncreditcards Web Page Design 2 Jan 30th, 2008 19:24
refresh using javascript SirChinjin JavaScript Forum 0 May 19th, 2007 19:41
Meta refresh WebNinja Web Page Design 2 Nov 22nd, 2006 10:49
How does a page refresh? flox74 Web Page Design 8 May 8th, 2006 19:41


All times are GMT. The time now is 13:16.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved