Results 1 to 3 of 3

Thread: Anylink drop down menu with a popup page

  1. #1
    Join Date
    Sep 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Anylink drop down menu with a popup page

    Is it possible to add a pop up page with the below code like:-

    <A class="pop" HREF="javascript:void(0)" ONCLICK="open('/???/default.asp','miniwin','scrollbars=1,width=568,height=450')">

    it would be excellent if anyone has a solution to this.

    I have tried placing the above into the link but doesn't want to work.

    Any help useful. Cheers.

  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

    HTML Code:
    <a class="pop" href="/???/default.asp" onclick="window.open(this.href,'miniwin','scrollbars=1,width=568,height=450');return false;">Link Text or Image Tag</a>
    If you are putting this inside of a javascript array, whatever delimiting quotes are used for the array must be escaped in the code:
    Code:
    arrayName[0]='<a class="pop" href="/???/default.asp" onclick="window.open(this.href,\'miniwin\',\'scrollbars=1,width=568,height=450\');return false;">Link Text or Image Tag</a>'
    Last edited by jscheuer1; 09-26-2005 at 06:05 AM.
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    absolutely brilliant. exactly what i was looking for. cheers, much appreciated. that was the icing on the cake for the completion of my website.

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
  •