HighDots Forums  

[question] limiting size of new window

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss [question] limiting size of new window in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
astrocalder1
 
Posts: n/a

Default [question] limiting size of new window - 11-29-2004 , 12:20 PM






i want to have a link that opens in a new page - i know how to do that part
(_blank). but i want the size of the new page to be the size of my jpeg image.
i tried looking at the source for pages that have this, but i couldn't get it
to work.
does anyone know the code, or where to find help on this? thanks.

astrocalder


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: [question] limiting size of new window - 11-29-2004 , 12:23 PM






You cannot do this when linking directly to a JPG image using the _blank
option. You would need to use an extension to achieve what you are seeking,
and the two that are usually recommended at Just So Picture Window and
Picture Window Fever. You can find them on the MM Exchange.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"astrocalder1" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
i want to have a link that opens in a new page - i know how to do that part
(_blank). but i want the size of the new page to be the size of my jpeg
image.
i tried looking at the source for pages that have this, but i couldn't get
it
to work.
does anyone know the code, or where to find help on this? thanks.

astrocalder




Reply With Quote
  #3  
Old   
CMBergin
 
Posts: n/a

Default Re: [question] limiting size of new window - 11-29-2004 , 12:26 PM



You'll have to use the javascript function window.open to open a new window
with options you specify. Keep your original link for users without
javascript so they can at least get to the page.

<a href="yourpage.htm" target="_blank"
onClick="window.open('yourpage.htm','newWindow','w idth=400,height=300');retu
rn false;">Your Link</a>

The DW "Open New Browser Window" behavior will do the same thing, but I
think you'll have to go add "return false" on your own. (That keeps the
link from activating when JS is enabled so those users don't get the link
twice.)

"astrocalder1" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
i want to have a link that opens in a new page - i know how to do that
part
(_blank). but i want the size of the new page to be the size of my jpeg
image.
i tried looking at the source for pages that have this, but i couldn't
get it
to work.
does anyone know the code, or where to find help on this? thanks.

astrocalder




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.