Results 1 to 4 of 4

Thread: Roll over image link pop up on click?

  1. #1
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Roll over image link pop up on click?

    1) Script Title: rollover image?

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...newwindow2.htm

    3) Describe problem:
    currently making a website for my clan and I have a menu with 7 buttons.
    6 of the buttons link to sites within my site so I don't need windows to pop up
    when I click them. But the one that has a link that goes outside my site, I need it to pop up in a new window, I thought I found a script that did it but it won't display the rollover image when I put my mouse on it. Any suggestions?


    p.s. the script url is not applicable because I could not find one that I needed on here, that's why I posted the question!

  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

    If all you want is a new window or tab, you don't need a script. Just add target="_blank" or target="_new" to your link:

    Code:
    <a href="www.google.com/" target="new">some text or image</a>
    That shouldn't interfere with a rollover unless for some reason your rollover code uses the target attribute, does it?

    If you want more help:

    Please post a link to a page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. #3
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Niiiiiiiiiiice thank you. Is there anyway to make it come up as an adjustable size and no tool bar?
    Last edited by bluraja; 11-07-2011 at 09:24 AM.

  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

    Due to security concerns all browsers restrict what can be left off of a pop up window. And browsers may be set to open all pop ups as new tabs instead. Virtually all browsers in their default pop up blocking setup will allow a pop up that's 'user initiated' as is this one. But most if not all browsers can be set to block these as well.

    That said, give this a shot:

    Code:
    <a href="http://www.forum.com/" onMouseOut="MM_swapImgRestore()" 
    onclick="open(this.href, '_new', 'width=600,height=450,top=150,left=125,resizable'); return false;" 
    onMouseOver="MM_swapImage('m12','','../../../Documents/Unnamed Site 3/m14.jpg',1)">test<img 
    src="../../../Documents/Unnamed Site 3/m13.jpg" name="m12" width="88" height="22" border="0">
    </a>
    - 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
  •