Results 1 to 6 of 6

Thread: Anylink drop down menu- a new window challenge

  1. #1
    Join Date
    Dec 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Anylink drop down menu- a new window challenge

    I am using-
    AnyLink Drop Down Menu Script
    I have my links open to new windows but is there a way to control the size of the new window? I have noticed friends clicking on my links and sometimes their windows are too small to see all of the page. They don't know they can make the window bigger so they just give up.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Have you tried to do the window.open js function with the script?
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post, and also, post in the correct forum (in this case, "DD scripts help"). See this thread for the proper posting format.

  4. #4
    Join Date
    Dec 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for moving my question ddadmin!

    This is the link to the script in question - http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    To thetestingsite, I'm strictly a follow the cut and paste instructions girl. I don't really know where to put a window.open js function.

  5. #5
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    In the script itself, there is the array that defines what shows up in each menu. In that, place the following:

    Code:
    menu1[0]='<a onclick="window.open(this.href, \'newwin\', \'height=220,width=400\'); return false" href="http://www.javascriptkit.com">JavaScript Kit</a>'
    (Please note: only change the above items marked in red.)

    The above code will open the link (javascriptkit.com) in a new window with the height of 220 px and the width of 400 px. Change these values to your liking.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  6. #6
    Join Date
    Dec 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Dear thetestingsite,

    This was an amazingly perfect fix. Thank you so much! I would love to give you my website address so you could see it but I don't know if that is allowed.

    Thanks again! emm

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
  •