The script piece you have here only is the sending piece, not the receiving 
piece.  If you want it
to click when there's a change in the chat window (new message), which is what 
I think you're
asking, this piece isn't going to help.  There's a little blurb here
(http://www.javascripter.net/faq/sound/index.htm) on doing that in javascript.

--- Andrew O'Brien <[EMAIL PROTECTED]> wrote:

> Thanks Daniel, that makes sense.  So my refined question should probably how
> would I get that form post/get command to also generate an HTML command that
> causes a sound to be played. The page refreshes every two minutes so I guess
> I would not want a sound command that executes every time the page is
> refreshed, I'll need to try find a command that gets executed only when the
> form contents are received and posted to the page.  Back to thinking..
> 
> Andy
> 
> On 5/4/07, Daniel Israel <[EMAIL PROTECTED]> wrote:
> >
> >   > I'm just beginning to try to learn PHP scripts, a friend
> > > compiled a script that works well and uses a form post method
> > > to essentially create an IRC type chat scenario. A couple of
> > > my users would like a "beep" or some similar audio sound that
> > > would alert them when a fresh line of text arrives on their
> > > browser/screen.
> > >
> > > Here's an example of what I am dealing with ...
> > >
> > > <?php if($cooked == 1) { ?><p /><form method="post"
> > > action="skccsked.php"><p>Enter your message here <input size="50"
> > > maxlength="200" name="text" /> <input type="submit" value="Post"
> > > /></p></form><?php } else { echo "<p>You must create an info
> > > cookie to post.</p>"; } ?>
> > >
> > > Is there an simple command that I could add to the script
> > > that would play a brief "beep" each time the above is executed ?
> > >
> > > Andy.
> >
> > That's not really a PHP question. PHP is executed on the server, the user
> > will get the browser output you generate. What this means is that you
> > should be looking for a way for the browser to make a sound, not your PHP
> > script. To that end, I believe there is a SOUND tag in HTML and there's
> > probably a way to do something in javascript as well. (can't be more
> > specific, I haven't done it...)
> >
> > -D. Israel
> > [EMAIL PROTECTED] <dan%40ebji.org>
> > http://www.customcodebydan.com
> > AIM: JudoDanIzz
> >
> > (A)bort, (R)etry, (I)nfluence with large hammer.
> >
> >
> >  
> >
> 
> 
> 
> -- 
> Andy K3UK
> Skype Me :  callto://andyobrien73
> www.obriensweb.com
> 
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
> 
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-D. Israel
[EMAIL PROTECTED]
http://www.customcodebydan.com
AIM: JudoDanIzz

Can you name the movie this was in:

'Greater good?' I am your wife! I'm the greatest 'good' you are ever gonna get!


 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

Reply via email to