View Single Post
  #2 (permalink)  
Old May 5th, 2008, 20:40
CloudedVision's Avatar
CloudedVision CloudedVision is offline
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 942
Blog Entries: 8
Thanks: 2
Thanked 22 Times in 22 Posts
Send a message via AIM to CloudedVision Send a message via MSN to CloudedVision Send a message via Skype™ to CloudedVision
Re: Show/Hide Div + change image=HELP

Little mysterious script here

Code: Select all
el.innerHTML.thisImage = 'images/add.png';
innerHTML will return the HTML contents of an element (a string), so adding .thisImage to a string will return nothing. You want something like this:

Code: Select all
document.getElementById('image_id').src = 'mysrc.gif';
__________________
echo "Take it easy, ".$CloudedVision;
.links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; }
<quote>&quot;I think it's wrong that only one company makes the game Monopoly&quot; - <name>Steven Wright</name></quote>
Reply With Quote