Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-26-2005, 02:14 AM
  #1
RickyP
Myrmidon (Level 12)
 
RickyP's Avatar
 
Join Date: Aug 2004
Location: Columbia, MO
Posts: 187
iTrader: (0)
RickyP is on a distinguished road
refresh an image?

http://computersense.org/

as you can see there are two image boxes that when you refresh your page the image changes...

i want to set it up so that when you click on the text below the image, it refreshes JUST THAT IMAGE.

any way i can do this?
RickyP is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-28-2005, 10:36 PM
  #2
RetroGamer1991
Soldier (Level 11)
 
Join Date: Sep 2001
Posts: 147
iTrader: (0)
RetroGamer1991 is on a distinguished road
give that image a ID such as ID="refreshthisimage"

then in javascript, change that image
Code:
document.getElementById('refreshthisimage').src= "myimage.jpg"
You can put

onclick="changemyimagefunction();"

in your A tag

RetroGamer1991 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
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
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 08:21 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.