Results 1 to 3 of 3

Thread: linked windows size in script

  1. #1
    Join Date
    Feb 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default linked windows size in script

    1) Script Title:
    News Bar script
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamicindex2/newsbar.htm
    3) Describe problem:
    actually it is not a problem but I want some modification to links, I want the new window which will be opened when link is clicked to open a new small window ( i.e. 200 x 200 ) not a full size new window

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

    Default

    Find this in the script:

    Code:
    function goURL(){
     location.href=msg_url[count];
    }
    And change the part in red to the following:

    Code:
    window.open(msg_url[count], 'newwin', 'height=200,width=200, resizable, scrollbars=yes');
    Not tested, but should work.

    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

  3. #3
    Join Date
    Feb 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Tks, it is great, I spent 7 days lQQking for a solution, really Thank you

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
  •