This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have a link which is an image which when clicked opens a new window. I have the link disabled in order to avoid multiple clicks.now my question is how do i change the image for example
By doing this im able to disable the link.So the user cannot click again But how do i replace the on.gif with off.gif in addition to disabling the link In short after i click the on image link once I want the link to b disabled (which im able to by 1 and 2)& also i want the image to change to off.gif.
Please provide me with any example or for the above example.
When changing the src of the image, the download time [from server to browser] comes into picture [ofcourse for the first time or depending on the caching policy set in the browser]. Here i have assumed the image is of considerable size [say more than 20KB and the link speed of the client machine having the browser is approx 256 kbps].
Also when we change src attribute of the image we should also change the width and height attribute of the new image [if new image is not of the same height and width as the previous image displayed else the image will look stretched or shrunken. [ May 30, 2008: Message edited by: karthi keyan ]