Welcome visitor
* Login
* Register
It is currently March 21st, 2019, 11:49 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
  image buttons
PostPosted: June 9th, 2009, 8:01 am 

Posts: 48
simple question, what should i do to use images as buttons?

thanks so much for your answers.


Top
 Profile  
 
  Re: image buttons
PostPosted: June 9th, 2009, 8:48 am 

Posts: 55
There are many kind of "buttons" on html (e.g. objects that can trigger an action when they are clicked). With an image, as well as with any other object, you can use a javascript event called "onClick" and assign an "action" to it.

<img src="file.jpg" onclick="alert('Here you can use any javascript function');" />


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