Welcome visitor
* Login
* Register
It is currently May 22nd, 2019, 2:45 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  how to hide two images at the same time
PostPosted: April 24th, 2009, 10:10 pm 

Posts: 24
Hi, im still working on the hide image thing. Now i have the button working for one or the other image, but is it possible to hide both of them at the same time, is there something as a collective name?


Top
 Profile  
 
  Re: how to hide two images at the same time
PostPosted: April 24th, 2009, 10:33 pm 
User avatar

Posts: 137
What you can do is apply more than one action to a single event;

<input type="button" value="hide both" 
onClick="document.getElementById('item1').style.display= 'none';
document.getElementById('item2').style.display= 'none';">


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron