PDA

View Full Version : Image Swap modification



jundo12
05-25-2015, 12:50 AM
1) Script Title: Image Swap and HTML5 audio effect

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex15/domroll2.htm

3) Describe problem: I realized i could use the image swap function of that script, for swapping between a front facing character image, to a backwards facing character image (for a browser based game). it almost looks like a really fast 3d rotate even though it's just a mouseover image swap. but it swaps sooooooooooo fast, a person could feasibly miss it entirely. is there a way to slow it down? perhaps have it count down 2 seconds after mouse out before swapping back to its original state?

ddadmin
05-25-2015, 01:40 AM
You might try the below modified .js file, which adds a 1 second delay before switching the image back to the original onMouseout. Change 1000 inside the source code to your own, such as 2000 for 2 seconds.

jundo12
05-25-2015, 02:53 AM
thanks! that works great!