Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 19th, 2007, 1:42 AM   #1
kishou
Programmer
 
Join Date: May 2007
Posts: 52
Rep Power: 2 kishou is on a distinguished road
refresh

ok wahts the code so tht when the person refreshes the page a certain image on tht page changes to a different image?
kishou is offline   Reply With Quote
Old Jun 19th, 2007, 2:55 AM   #2
Ghost
Man Bear Pig Hunter
 
Ghost's Avatar
 
Join Date: Jul 2005
Location: NorCal, USA
Posts: 295
Rep Power: 4 Ghost is on a distinguished road
There are a lot of ways to 'refresh' an image, using javascript, php, asp or.... Might want to ask a better question.
__________________
People who click "images" that end with .exe shouldn't have computers.
Ghost is offline   Reply With Quote
Old Jun 19th, 2007, 9:28 AM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,473
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
You definitely need to elaborate on exactly what it is you are trying to do. If all you are doing is wanting a different picture each time your page loads, look into randomizing functions, arrays, etc... PHP or Javascript would be your best bet.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Jun 25th, 2007, 9:08 AM   #4
cheap freelancer
Newbie
 
Join Date: Jun 2007
Location: askexpert.info
Posts: 4
Rep Power: 0 cheap freelancer is on a distinguished road
have a count , do count++ on refresh and load (image+count).jpg
cheap freelancer is offline   Reply With Quote
Old Jun 25th, 2007, 10:31 AM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
No wonder you're cheap, that's bull crap.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 27th, 2007, 3:17 AM   #6
kishou
Programmer
 
Join Date: May 2007
Posts: 52
Rep Power: 2 kishou is on a distinguished road
Quote:
Originally Posted by DaWei View Post
No wonder you're cheap, that's bull crap.
i dont understand waht you mean?
kishou is offline   Reply With Quote
Old Jun 27th, 2007, 6:46 PM   #7
Fourth
Newbie
 
Join Date: May 2007
Posts: 3
Rep Power: 0 Fourth is an unknown quantity at this point
Quote:
Originally Posted by kishou View Post
i dont understand waht you mean?
they will always get the same stream of images. if you want something truly unique you can use a randomizer in PHP, JS, etc as suggested.
Fourth is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic Refresh of JComboBox Implementation hemanth.balaji Java 3 Dec 24th, 2006 9:49 AM
PHP sessions/ page refresh??? ktsirig PHP 2 Jun 1st, 2006 5:16 PM
Homepage Refresh hoffmandirt Community Announcements and Feedback 4 Apr 18th, 2006 6:04 PM
Force Image Refresh Ghost JavaScript and Client-Side Browser Scripting 3 Dec 2nd, 2005 12:12 PM
Refresh winform HappyTomato C# 1 Jul 18th, 2005 4:40 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:49 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC