playing beep

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

    playing beep

    Is there wa way to make the system beep (ascii 007...bell) via javascript
    (or any other simple notification sound)? Thanks, Ike


  • kaeli

    #2
    Re: playing beep

    In article <ra10c.25119$W7 4.18340@newsrea d1.news.atl.ear thlink.net>,
    rxv@hotmail.com enlightened us with...[color=blue]
    > Is there wa way to make the system beep (ascii 007...bell) via javascript
    > (or any other simple notification sound)? Thanks, Ike
    >
    >
    >[/color]

    Not the system beep, no. Well, you can call Java to do it but that isn't
    cross-browser.

    Real's HowTo : Useful code snippets for Java, JS, PB and more


    --
    --
    ~kaeli~
    A lot of money is tainted - It taint yours and it taint mine.



    Comment

    • Ike

      #3
      Re: playing beep

      Yes, BUT.....java wont beep anymore under XP (most of what I write is in
      java) and you have to jump through some hoops to get there. I think,
      however, since I am trying to get the user's attention, perhaps making a
      div visible for a brief second....may get attention as well.

      ....now I just gotta figure out how to do that! Thanks Ike

      "kaeli" <tiny_one@NOSPA M.comcast.net> wrote in message
      news:MPG.1aad05 75d24028e2989cc 7@nntp.lucent.c om...[color=blue]
      > In article <ra10c.25119$W7 4.18340@newsrea d1.news.atl.ear thlink.net>,
      > rxv@hotmail.com enlightened us with...[color=green]
      > > Is there wa way to make the system beep (ascii 007...bell) via[/color][/color]
      javascript[color=blue][color=green]
      > > (or any other simple notification sound)? Thanks, Ike
      > >
      > >
      > >[/color]
      >
      > Not the system beep, no. Well, you can call Java to do it but that isn't
      > cross-browser.
      >
      > http://www.rgagnon.com/jsdetails/js-0024.html
      >
      > --
      > --
      > ~kaeli~
      > A lot of money is tainted - It taint yours and it taint mine.
      > http://www.ipwebdesign.net/wildAtHeart
      > http://www.ipwebdesign.net/kaelisSpace
      >[/color]


      Comment

      • kaeli

        #4
        Re: playing beep

        In article <qSR0c.16938$aT 1.5598@newsread 1.news.pas.eart hlink.net>,
        rxv@hotmail.com enlightened us with...[color=blue]
        > Yes, BUT.....java wont beep anymore under XP (most of what I write is in
        > java) and you have to jump through some hoops to get there. I think,
        > however, since I am trying to get the user's attention, perhaps making a
        > div visible for a brief second....may get attention as well.
        >[/color]

        Why don't you use an alert then?

        If not, why not just make some text flash briefly?

        --
        --
        ~kaeli~
        Persons disagreeing with facts are always emotional and
        employ faulty reasoning.



        Comment

        • Ike

          #5
          Re: playing beep


          "kaeli" <tiny_one@NOSPA M.comcast.net> wrote in message
          news:MPG.1aae4d b399c7fc7a989cd 0@nntp.lucent.c om...[color=blue]
          > In article <qSR0c.16938$aT 1.5598@newsread 1.news.pas.eart hlink.net>,
          > rxv@hotmail.com enlightened us with...[color=green]
          > > Yes, BUT.....java wont beep anymore under XP (most of what I write is in
          > > java) and you have to jump through some hoops to get there. I think,
          > > however, since I am trying to get the user's attention, perhaps making[/color][/color]
          a[color=blue][color=green]
          > > div visible for a brief second....may get attention as well.
          > >[/color]
          >
          > Why don't you use an alert then?[/color]

          Because, it would require the user to have to closeout the alert dialog.
          What I want to alert the user of is if some user-specified keywords (such
          as his nickname), appear in an inter-office php-based chat, which is
          occuring separately in another div. The user may be doing something in a
          different div, not seeing the chat, unaware someone is trying to contact him
          therein. Yet, I dont want to have to have the user manually closeout
          something like an alert dialog - I dont want to interrupt the user to that
          extent.[color=blue]
          >
          > If not, why not just make some text flash briefly?[/color]

          Yes, that seems like the best idea. How would *you* do that, by putting that
          on a sepearate invisible layer, making it visble with a timer, say? Thanks
          kaeli.
          [color=blue]
          >
          > --
          > --
          > ~kaeli~
          > Persons disagreeing with facts are always emotional and
          > employ faulty reasoning.
          > http://www.ipwebdesign.net/wildAtHeart
          > http://www.ipwebdesign.net/kaelisSpace
          >[/color]


          Comment

          • kaeli

            #6
            Re: playing beep

            In article <Dz01c.15397$yZ 1.12955@newsrea d2.news.pas.ear thlink.net>, > >[color=blue][color=green]
            > > If not, why not just make some text flash briefly?[/color]
            >
            > Yes, that seems like the best idea. How would *you* do that, by putting that
            > on a sepearate invisible layer, making it visble with a timer, say? Thanks
            > kaeli.
            >[/color]

            Well, I don't have to support old browsers for most of my stuff, so I'd
            have a div like so that "flashed" on and off when the function is
            called.

            Tested in IE6/NN6

            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
            <html>
            <head>
            <title>test</title>
            <style type="text/css">
            #myFlashingDiv {
            position: absolute;
            top: 30%;
            left: 30%;
            width: 250px;
            height: 250px;
            visibility: hidden;
            background-color: yellow;
            color: red;
            font-size: large;
            font-weight: bold;
            }
            </style>
            <script type="text/javascript">
            function flashIt()
            {
            setTimeout("fla shOn()",500);
            setTimeout("fla shOff()",1000);
            setTimeout("fla shOn()",1500);
            setTimeout("fla shOff()",2000);
            setTimeout("fla shOn()",2500);
            setTimeout("fla shOff()",3000);
            setTimeout("fla shOn()",3500);
            setTimeout("fla shOff()",4500);
            }
            function flashOn()
            {
            document.getEle mentById("myFla shingDiv").styl e.visibility="v isible";
            }
            function flashOff()
            {
            document.getEle mentById("myFla shingDiv").styl e.visibility="h idden";
            }

            </script>
            </head>

            <body>
            <div id="myFlashingD iv">Alert!</div>
            <p><a href="noscript. html" onClick="flashI t();return false;">Click to
            flash.</a></p>
            </body>
            </html>


            --
            --
            ~kaeli~
            Never say, "Oops!"; always say, "Ah, interesting!"



            Comment

            Working...