C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Toggling images


Posted Date: 04 Feb 2007      Total Responses: 0

Posted By: Frenz       Member Level: Silver     Points: 2


Hi,

I'm facing a simple problem and would be great if someone could help me out. I have two images play.jpg and pause.jpg. I also have an <img>, in its onclick im calling a javascript function which will toggle between these images each time the image is clicked. The size of the image is 842 bytes which is the maximum I can compress. The problem is that each time I click the image, the image is downloaded from the server and only then it gets displayed, which means it would take around 2-3 seconds for the image to get displayed. I have also tried putting the image in cache this way:

var Play = new Image();

But this also has done no good. By the way, once the image is being downloaded from the server, why does it download it each time I click the image? Is there any solution to this.


Thanks & Regards,
Frenz




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Post Reply
You must Sign In to post a response.
Next : enabling the usercontrol textbox in aspx page
Previous : Javascript for dropdown List
Return to Discussion Forum
Post New Message
Category: JavaScript

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

UK Conference calling Company

Contact Us    Privacy Policy    Terms Of Use