SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Oct 2001
    Location
    Cleveland, Ohio
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question two links with one click

    I am looking to have two links open with just one click.

    I have a link to a Windows Media Player audio stream pop-up player, and need a window with a message to open up when the visitor clicks the listen link.

    I have looked all over the internet and can't find anything, but it seems like it can be done with javascript. Unfortunately, I am not familiar with the language. Is there a way to do this?

    Any help would be appreciated.

    Thank You!

  2. #2
    webality...dunno what it means bcp_2005's Avatar
    Join Date
    Jun 2002
    Location
    Huntsville Alabama
    Posts
    394
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright this should do it for you. Put this snippet between the opening and closing <head> tags:

    <script>
    function dualPop() {
    window.open('url to audio');
    window.open('url to message');
    }
    </script>

    Now, here's how you would structure your link:

    <a href="#" onClick="dualPop()">Open Windows</a>

    Let me know if you have any questions.
    [ metabahn ] : changing the course of the web.

  3. #3
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You might find this thread useful:
    http://www.sitepointforums.com/showt...hreadid=130480
    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!

  4. #4
    SitePoint Member
    Join Date
    Oct 2001
    Location
    Cleveland, Ohio
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help. It works Great!


Bookmarks

Posting Permissions

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