Results 1 to 2 of 2

Thread: Pop-it menu

  1. #1
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pop-it menu

    http://www.dynamicdrive.com/dynamicindex1/popit.htm

    I wonder if anyone knows of a script similar to the pop-it menu at the link offered above that will allow for a link that opens 2 windows at once...such as is achieved with the code below?

    <A HREF="1.htm" onClick="window.open('2.htm', 'newwindow', 'height=500,width=500, toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directiories=no,status=no')")">Both</A>

    Thanks,

    Rman

  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

    With a little care taken to nest double quotes and single quotes in such a way as to not break the script, this script already can do that. Here is an example how:
    Code:
    linkset[0]='<a href="http://dynamicdrive.com">Dynamic Drive</a>'
    linkset[0]+='<hr>' //Optional Separator
    linkset[0]+='<a href="http://www.javascriptkit.com" onClick="window.open(\'http://www.google.com\', \'newwindow\', \'height=500,width=500, toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directiories=no,status=no\')">JavaScript Kit &amp; Google</a>'
    linkset[0]+='<a href="http://www.codingforums.com">Coding Forums</a>'
    linkset[0]+='<a href="http://www.cssdrive.com">CSS Drive</a>'
    linkset[0]+='<a href="http://freewarejava.com">Freewarejava</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
  •