Well, yes, a 1 meg file for just a simple sound? Way too big! You should try to make it smaller.
Most ALL audio editors allow you to set the waves per second. Most likely, yours is set to CD quality.
You do not need that for this project. Try to get it down to about 200k… Or send it to me and I can
do it for you. Try setting it to time out at 20 seconds and see if it closes… My guess is the size…
Go to your “C” drive, Windows folder, Media folder and look at the sound file that is named
“Windows Notify Email” and play it. (right-click and select PLAY) It sounds okay but, it is only 165k…
It would load 8 times faster than your file. And, you can set it to loop five times and it should sound good
enough, I would think… There are a lot of sounds there to try, some are huge like yours, but a lot are much
smaller…
If your sound is special, you can just drop it’s quality to drop the size of it. Also, once the beep windows
goes away correctly, it does not matter if it is on top or not as it will go away after the beep. You just need
to get that timing correct. But, there is another way. You can add a “FOCUS” to your code to make the
current page, IE the page that opens the second pages to focus on itself. That puts the other pages behind
the current one. Now, you could add a pointer variable to the URL page and give it focus instead. Did that
make sense? To bring focus to the current page you add “self.focus();” after you open the two pages. To
add focus to your URL page, you would have to keep a pointer to it with code something like:
Replace:
[php]
window.open(’<?PHP echo $link; ?>’);
[/php]
With something like:
[php]
urlWindow=window.open(’<?PHP echo $link; ?>’);
urlWindow.focus();
[/php]
You most likely will have to move the urlWindow.focus() to after you open both pages, so it might have to
go after you open the beep page…
Hope that helps…