Help - Search - Members - Calendar
Full Version: onclick event to change an image to text
HTMLHelp Forums > Programming > Client-side Scripting
johnrochie
Hi all,

I'm very inexperienced with Javascript, but want to use the onclick event to change an image to text. I'm working on a directory type website and want users to have to click on the image of a telephone in order to reveal the telephone number they are looking for. how do i do this?
Also is there a way of tracking how many clicks each person gets?
I'd really appreciate any help you guys can give me on this
kirank
its easy , do one thing
on image onClick() you can write one function , which will show you the telephone number , for that you can use hide show method also

this article will help you ,

and reg. on tracking ones the click event get happen , update the record with + 1 for that you can use database or you can use simple file also means read the lastet record from file (suppose 3) then add the record + 1 ( 4 ) and append on that file

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.