I recently asked a question about using images as buttons using Java Script. The answer I received was referencing me to use CSS instead and it works fine. However, the images I use take about 0.2 seconds to load.
Before I used this code, I had a page loaded with all the images at the beginning, and then a JS script to change the zIndex of the images on certain mouse events, however this overrides the href links and does not work.
With the new code, the whole function works and therefore doses href, but every time the page loads only the first image loads, the other 2 I use under this image when loading when the mouse events are triggered. This means that the buttons flash when the action is completed. How can I change this code to upload images while loading the page?
Code here: http://jsbin.com/casoy/12/edit?html,css,output
I thought I should show the old code like we ..: http://jsbin.com/casoy/13/edit?html,css,js,output
source
share