in reply to Reaped: SOUND

Clicking a link does happen on the browser-side - and perl can't be used there (at least no version that I know of ;) So Sinister is right.

But I doubt that you can start a sound when clicking on a link. Playing a sound is a page-specific thing that is just done while a page is displayed - not when it changes. To say it in other words: If you really want to do it that way the user will have to wait until your sound stopped before the next page will be loaded. I don't think that this is very userfriendly, so try to avoid it.

Conclusion: This in nothing perl-related - get yourself a good JavaScript documentation.
--
use signature; signature(" So long\nAlfie");

Replies are listed 'Best First'.
Re: Re: SOUND
by isotope (Deacon) on May 07, 2001 at 20:37 UTC
    But I doubt that you can start a sound when clicking on a link.

    Sure you can :) You just specify a JavaScript function as the OnSubmit action for the form, or as the HREF of the link. The function first launches the sound in a new window, then submits the form or returns the location for the link. Of course, by the time the sound loads and then the plugin to handle it loads and starts playing, the form may already be fully submitted...

    --isotope
    http://www.skylab.org/~isotope/