Results 1 to 2 of 2

Thread: need help : Pop-it menu Links to Open Specific Window Size

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

    Angry need help : Pop-it menu Links to Open Specific Window Size

    I would like to Specify the target window size on some of the links but not all
    but, i changed the linke to this...

    linkset[0]='<a href="http://dynamicdrive.com">sample1</a>'
    linkset[0]+='<a href="http://www.javascriptkit.com">sample1 Kit</a>'
    linkset[0]+='<a href="http://www.codingforums.com">Coding Forums</a>'
    linkset[0]+='<a href="http://www.cssdrive.com">Coding Forums/a>'
    linkset[0]+='<a href="http://freewarejava.com">Coding Forums</a>'

    I add that open windo size coding in to the every href ;.like this...

    <a href="http://www.dynamicdrive.com/" target="_blank" onclick="window.open(this.href,this.target,'width=300, height=350, location=1, menubar=1, scrollbars=1, resizable=1, toolbar=1');return false">Dynamic Drive</a>

    but, its not working for me...please can any one tell me how can i give open size window in to the popup menu bar

  2. #2
    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. See this thread for the proper posting format when asking a question.

    It's easier to define a custom open window function first. The result would look something like:

    Code:
    function customwindow(url){
    window.open(url, "", "width: 500px; height: 600px")
    return false
    }
    
    linkset[0]='<a href="http://dynamicdrive.com">Dynamic Drive</a>'
    linkset[0]+='<a href="http://www.javascriptkit.com" onClick="return customwindow(this.href)">JavaScript Kit</a>'

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
  •