web design course - popup windows
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Dreamweaver Training and help » web design course - Pop-up windows

web design course - Pop-up windows

The UK's most regular instructor-led training courses.
Training information: web design course · Dreamweaver training · Adobe dreamweaver training

resolvedResolved · Low Priority · Version Standard

Pop-up windows

Glyn has attended:
Dreamweaver 8 Intermediate course

by - delegate Glyn [1 post] (2006 Nov 22 Wed, 21:17) replyReply

Hi,

if I am putting a hyperlink on a image so that the image opens up full-size when clicked on, how can I get this to open in a pop-up window which is the same size as the larger image, rather than a full browser window?

Thanks,
Glyn.

Dreamweaver CS3 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
CS3 2009 Jan 15 Thu + 16 Fri Bloomsbury 5 book now £495 £495
CS3 2009 Feb 12 Thu + 13 Fri Bloomsbury 8 book now £395 £415
CS3 2009 Mar 12 Thu + 13 Fri Bloomsbury 8 book now £395 £415
CS3 2009 Apr 16 Thu + 17 Fri Bloomsbury 8 book now £395 £415
CS3 2009 May 14 Thu + 15 Fri Bloomsbury 8 book now £395 £415
CS3 2009 Jun 11 Thu + 12 Fri Bloomsbury 8 book now £395 £415
Full Schedule: See all 11 Dreamweaver CS3 course dates.
Bookings currently available until 12th November 2009.

Open Browser Window behaviour

by - trainer Rich platinum contributer[744 posts] (2006 Nov 23 Thu, 09:37) Edited on 2006 Nov 23 Thu, 09:43 replyReply

Hi Glyn,

The most common solution for this is to use the Dreamweaver Open Browser Window behaviour.

If you're not sure what the dimensions of your full-size image are, you can insert it temporarily on your web page, select it and check the properties panel to see the Width and Height. Remember these values or write them down, then remove/delete the image from you page.

A behaviour needs to be attached to an element on the page, not just plain text. So you need to have a smaller version of your image, or a link, or form element (eg. button).

Insert your 'thumbnail' (smaller version) image on the page. You can also type some text, and make sure it's a link by linking to hash (#), but the user will be jumped to the top of the page when they click the link if you do this. Thumbnails look better.

Select the thumbnail image, then go to the behaviours panel in Dreamweaver. If you can't see the behaviours panel, you can select it from Window -> Behaviours. Click the [+] button, and select Open Browser Window from the menu.

In the dialogue box, you can specify which file is to be shown in the new pop-up window. This can be either your larger graphic file, or a HTML file/web page containing your graphic.

Now you can enter the dimensions of the new window. You should add on 20 pixels to the width and height amounts you remembered earlier, as you'll want a bit of padding, and allow for some of the window's components. You'll notice you can also control what elements the new window has. I would recommend allowing your visitors to resize the new pop-up window, and possibly allow them to scroll, too. Other elements such as Location, Navigation Menu and Status bar can be left turned off.

Once you click OK, a new behaviour will appear in the behaviour panel. Ensure the 'event' column is set to OnClick. If you can't find the OnClick event, you may need to increase your event choices by choosing a higher browser version under 'Show Events For...' which at the bottom of this same menu.

You may need to adjust the width and height settings after testing. To do this, ensure the thumbnail is selected, look in the browser window, and double click the behaviour to bring the dialogue box back up.

Also, as a bonus tip, please don't make the mistake of using just one big image file as the source for your thumbnail (smaller) image AND the larger full-size version. Always export an additional smaller file for your thumbnail. This is the whole point of having an enlarge pop-up. Too often, I see images on web sites which have been 'squashed' using WIDTH= and HEIGHT= in the HTML code, instead of resized in a program like Photoshop and exported. This causes web pages to load much slower, and doesn't look as good.

I hope this helps.

Regards, Rich

RE: Open Browser Window behaviour

by - trainer David gold contributer[428 posts] (2006 Nov 23 Thu, 16:26) replyReply

In additional to the bonus tip, one of the main problems for slow loading images is that they have not been optimised for the web. So when you come to save the image whilst using an application such as photoshop, make sure that you use they save for web option as this will actually shrink the file size. This smaller file size means that the image will load much faster than if you just reduce the size of the image.

Remember the smaller the file size the faster it will load.

David


Related articles

· Learn How to Build Complete Websites in Three Days
· Special Image Techniques with Dreamweaver CS3
· Website Design and Dreamweaver
· Powerhouse Tips from Dreamweaver Training
· Macromedia Dreamweaver: An Introduction

Dreamweaver tip:

Creating line breaks

If you want to create a line break hold down Shift+Enter.

View all Dreamweaver hints and tips

Rate this page:
4.0/5 (3 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz