embed methods

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Philip WATTS

    embed methods

    Hi,
    I am trying to use the onMouseover event to trigger the playing of a small
    sound file. I know that I need to embed the file and guess that I need to
    use document.embed( ), but what method can I use to actually trigger the
    playing of the file?

    Many thanks

    Phil


  • Martin Honnen

    #2
    Re: embed methods



    Philip WATTS wrote:
    [color=blue]
    > Hi,
    > I am trying to use the onMouseover event to trigger the playing of a small
    > sound file. I know that I need to embed the file and guess that I need to
    > use document.embed( ), but what method can I use to actually trigger the
    > playing of the file?[/color]

    That depends on the plugin that is used to play the sound file

    --

    Martin Honnen


    Comment

    • George Ziniewicz

      #3
      Re: embed methods

      "Philip WATTS" <PRWATTS@syring a.freeserve.co. uk> wrote in message
      news:bkjojg$l3f $1@newsg1.svr.p ol.co.uk...[color=blue]
      > Hi,
      > I am trying to use the onMouseover event to trigger the playing of a small
      > sound file. I know that I need to embed the file and guess that I need to
      > use document.embed( ), but what method can I use to actually trigger the
      > playing of the file?[/color]

      I don't know if its kosher or optimal, and I only needed it to work in
      IE, but I got it to work, a sound play function:

      //----------------------------------

      function soundPlay(s) {
      document.all.so undID.src=s;
      }

      //----------------------------------



      A sound embedded in the body:

      <body>
      <bgsound ID='soundID' src='' LOOP='1'>
      ..
      ..

      And an event calling it:

      <img id='pic1' src='lion.jpg'
      onMouseDown="so undPlay('lion.w av');"[color=blue]
      >[/color]

      zin
      -- http://www.zintel.com


      Comment

      Working...