open new window script

Discussion in 'Web Design' started by Shar, Apr 17, 2005.

to remove all ads.
  1. Shar

    Shar New Member

    I have some thumbnails on a web page, and want each one of them to open up in their own window, without the navigation bar on, but also want the window to fit the size of the image perfectly.

    I tried this in dreamweaver using the "open new window" behaviour, but it puts a default margin to the left and top of the photo, not really the effect I want. When I resize the window it just squashes the photo but still has this annoying margin.

    Can anyone help with this please?

    Thank you
  2. [tab]

    [tab] Opera/Firefox on Debian Staff Member

  3. WTM

    WTM New Member

  4. keen2learn

    keen2learn New Member

    hey i quickly checked the links but coudln't quite see what you where after, (although i probably just missed it).

    the problem is not with the popup dialogue box, open the actuallt html file, with the image in (eg.photo1.html) in the 'page properties for that page there are 4 boxes, left margin, top margin, margin width, margin height. althoguh i havent figured out the last two yet, (im still learning) if you enter '0' in to left margin and top margin, this will remove the gap at the top of your pages.
  5. cyberseed

    cyberseed New Member

    Hi, margin width and height are for other explores so its best to set all to 0.
    You can add some code to the Open Window command to set the postion of the new window:


    Note the top=0,left=0,

Share This Page