Good, but O9 doesn't support mp3 (last I experimented). WAV files only, please! :P
Jeff --- In svg-developers@yahoogroups.com, "Jim Ley" <[EMAIL PROTECTED]> wrote: > > > "Jeff Schiller" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >Shouldn't you be putting this in a try,catch block? :P > > He meant it when he said he was a cook! > > > <?xml version="1.0"?> > > <svg xmlns="http://www.w3.org/2000/svg" width="4em" height="4em" > > viewBox="0 0 100 100"> > > <rect x="25" y="25" width="50" height="50" onclick="singIt()"/> > > <script type="text/ecmascript"> <![CDATA[ > try { > > var sound = new Audio("some.mp3"); > } catch(e) { > sound=null > } > > function singIt() { > try { > > sound.play(); > } catch (e) {} > > } > > ]]></script> > > </svg> > > Jim. > ------------------------ Yahoo! Groups Sponsor --------------------~--> You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/