themind
09-16-2005, 02:51 AM
I would like a script that prompts an alert after visitors click to view a large video file (the "Play PDM Montage Clip" link) at:
www.pdmdigital.com/slideshows.htm
The script that I wrote looks like this:
function loadtime()
{window.alert("Please be patient as this clip is a large file. Thanks, PDM")
setTimeout("loadtime()", 1500)
}
There are a few problems. First, for some reason the function is called when you click on the "Photo Montages/Slideshows" link from any of the four pages, not just the 'Play' link where the function is called from the onClick event handler.
Second, it keeps popping up repeatedly. The reason I attempted to put in a timeout is so that Windows Media Player (or whatever media player) would pop up first and begin buffering, THEN the alert would pop up and say please be patient. Any and all help is truly appreciated, thanks much for reading this, theMind-
www.pdmdigital.com/slideshows.htm
The script that I wrote looks like this:
function loadtime()
{window.alert("Please be patient as this clip is a large file. Thanks, PDM")
setTimeout("loadtime()", 1500)
}
There are a few problems. First, for some reason the function is called when you click on the "Photo Montages/Slideshows" link from any of the four pages, not just the 'Play' link where the function is called from the onClick event handler.
Second, it keeps popping up repeatedly. The reason I attempted to put in a timeout is so that Windows Media Player (or whatever media player) would pop up first and begin buffering, THEN the alert would pop up and say please be patient. Any and all help is truly appreciated, thanks much for reading this, theMind-