Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    750
    Thanks
    138
    Thanked 1 Time in 1 Post

    ASP and <embed> tag

    Hello

    I have recently come across an ASP 'shoutbox' or livehelp' tutorial and I am still trying to work out what is happening in the script.

    When a visitor clicks on 'On line help' it alerts the Webmaster that a visitor want to chat and the Webmaster can see an image notifying him of this. The script in the tutorial has this in it:

    Code:
    Response.Write("<td><img alt=needaction height=18 src=img/needaction.gif width=19></td>")
    A contributor to the discussion around the script tutorial has suggested a sound file instead, as follows:

    Code:
    Response.Write("<td><object type=""application/x-shockwave-flash"" data=""/snd/needaction.swf"" width=""18"" height=""19""><param name=""movie"" value=""/snd/needaction.swf""></object></td>")
    However, this is no longer online, so I can't see/hear what it looks/sounds like, but it gave me the idea of using a sound file to notify the Webmaster that someone wants online assistance, and I was thinking of something like this if I uploaded song.mp3 to my server:

    Code:
    <embed src="song.mp3"></embed>
    What I am unsure about is how do I use the <embed> tags with the tutorial's orginal line above, that is:

    Code:
    Response.Write("<td><img alt=needaction height=18 src=img/needaction.gif width=19></td>")
    Could I just comment that line out?

    Thanks.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,554
    Thanks
    80
    Thanked 4,620 Times in 4,583 Posts
    Response.Write "<embed src=""song.mp3""></embed>"

    I wouldn't recommend putting this in the middle of your <table> and <td>, since it won't be visibile.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    SteveH (05-25-2012)

  • #3
    Regular Coder
    Join Date
    Nov 2005
    Posts
    750
    Thanks
    138
    Thanked 1 Time in 1 Post
    Many thanks Old Pedant, I will try it out.

    Steve


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •