Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: external links

  1. #1
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default external links

    i have a jump menu on my site that contains external links. I need these to load in a new window. At the moment it loads in the same window. Please advice i have included the code below


    <select name="menu1" class="feedback" onChange="MM_jumpMenu('parent',this,1)">
    <option selected>Distributors</option>
    <option value="http://www.fusemusic.com.au/">Australia - Fuse Music</option>
    <option value="http://www.lotusrecords.at/">Austria - Lotus Records</option>
    <option value="http://munichrecords.com/">Benelux - Munich Records</option>
    <option value="http://www.nightday.fr/">France - Night &amp; Day</option>
    <option value="http://www.indigo.de/">Germany - Indigo</option>
    <option>Greece - Penguin</option>
    <option value="http://www.halidon.it/">Italy - Halidon</option>
    <option value="http://www.mytrixmusic.com/">Japan - Mytrix</option>
    <option>Portugal - Megamusica</option>
    <option value="http://www.colectivo.se/">Scandinavia - Colectivo</option>
    <option value="http://www.musikvertrieb.ch/home/home.html">Switzerland - Musikvertrieb</option>
    <option value="http://www.yenidunya.com/Scripts/Default.asp">Turkey - Yeni Dunya</option>
    <option value="http://www.propermusic.com/">UK - Proper</option>
    <option value="aboutus.htm">.................................................................</option>
    </select>

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Can't tell you exactly without seeing the function:
    Code:
    MM_jumpMenu()
    but, the solution will probably involve substituting in that function:
    Code:
    window.open(variableHoldingtheURL)
    for whatever its current navigational statement is.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    not sure what you mean

    i resume this bit needs changing

    onChange="MM_jumpMenu('parent',this,1)

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    onChange="MM_jumpMenu('parent',this,1)

    calls a function. I need to see that function, how it is written.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    what code do you need to see

    do you want me to sedn you the html file
    Last edited by deep_design; 08-12-2005 at 08:52 AM.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Search your document and any files linked to it for:

    function MM_jumpMenu(

    when you find that, get back to me, that and the lines following it are what I need to see. If you don't have that in your file(s):

    PLEASE: Include the URL to your problematic webpage that you want help with.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
    }

    here is the link www.mostrecords.com/aboutus.htm

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
    function MM_jumpMenu(targ,selObj,restore){ 
    window.open(selObj.options[selObj.selectedIndex].value)
    if (restore) selObj.selectedIndex=0;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks you very much mate.


  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by JRS
    Doesn't seem to work for me. The same page link is http://janssenbeauty.com/us/pc/productcompanion.html

    The modified/new page window.open is http://janssenbeauty.com/us/pc/produ...aniontest.html

    Did a copy paste to avoid making any syntax/typo errors, but no go. No new page, no same page, no error

    Please advise.
    It is working here, sort of. Since your files are pdf, they will activate the browser's configured pdf add on (if any and otherwise do whatever the browser is configured to do with pdf and/or unknown file types, which usually is to present the open/save dialogue). Mine is configured to adobe acrobat. So, I get a new window and a launch of acrobat with the pdf displayed once it has downloaded.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •