|
|
|
|
![]() ![]() |
Jul 28 2005, 06:30 AM
Post
#11
|
|
|
Incest is a game the whole family can play. ![]() Group: [MODERATOR] Posts: 1,217 Joined: 11-February 05 From: Heaven Member No.: 3,709 |
QUOTE(sachavdk @ Jul 25 2005, 07:10 PM) Why making it this difficult? Simply: CODE <img src="img.jpg" onMouseOver="this.src='img2.jpg'" onMouseOut="this.src='img.jpg'"> I think thats way easier OK, so what happens when your images aren't found? Does a nice, red cross come up in ie or does the script abort itselft altogether? This script gives you an error message displaying exactly which files cannot be found so you can easily fix the problem, which becomes more and more useful as you add more and more images for the script to change. You don't even have to understand the coding in this script in order to adjust it for your site, just change the first 6 variables at the beginning and copy and paste it and it works. |
|
|
|
Jul 28 2005, 11:39 AM
Post
#12
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 372 Joined: 16-August 04 From: Spain Member No.: 824 |
QUOTE(cmatcmextra @ Jul 21 2005, 07:07 PM) Wait for a few seconds give your browser time to load the image. The change onMouseDown is immediate, the loading isn't. Preloading the images with javascript will solve this issue. Just point your html page to a javascript page where the images are preloaded. once the user clicks the image will change inmediately. http://users.kaski-net.net/~erasmus/ Check the navigation bar of the previous site. It is done with preloading. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 5th September 2008 - 08:42 AM |