stavinski
08-25-2003, 09:39 AM
I have a site that uses image thumbnails, and a user can click the image to bring up a pop up showing the bigger image.
I was wondering if there is a way to capture an event from the pop up saying that it wasn't blocked, just in case the user has some sort of pop up blocker, if it doesnt load then some sort of message could be displayed telling them to turn off the pop up blocker software.
I was contemplating setting a timeout and testing for an onfocus event after like a second or so as the onload event would be activated after the image is loaded, depending on the connection this could vary quite a lot:)
Any suggestions?
Just out of curiosity what is the difference between:
setTimeout() and setInterval() apart from the latter seems to have less support in older browsers?
I was wondering if there is a way to capture an event from the pop up saying that it wasn't blocked, just in case the user has some sort of pop up blocker, if it doesnt load then some sort of message could be displayed telling them to turn off the pop up blocker software.
I was contemplating setting a timeout and testing for an onfocus event after like a second or so as the onload event would be activated after the image is loaded, depending on the connection this could vary quite a lot:)
Any suggestions?
Just out of curiosity what is the difference between:
setTimeout() and setInterval() apart from the latter seems to have less support in older browsers?