web design course - popup windows
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
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

resolvedResolved · Low Priority · Version Standard

replyReplyWed 22 Nov 2006, 21:17Delegate Glyn said...

Pop-up windows

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.

For upcoming training course dates see: Pricing & availability

replyReplyThu 23 Nov 2006, 09:37 Edited on Thu 23 Nov 2006, 09:43Trainer Rich said...

Open Browser Window behaviour

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

replyReplyThu 23 Nov 2006, 16:26Trainer David said...

RE: Open Browser Window behaviour

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

 

 

Dreamweaver tip:

JumpMenu in new window

When inserting a jumpmenu to a page, the only option available for 'open in' is usually 'main window'. There would be other options available if the page was a frameset.

To change the jumpmenu to open in a new window, change the target parameter of the selectbox in your code to 'window.open()'.

eg.
<select name="menu1" onChange="MM_jumpMenu('window.open()',this,0)">


source:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16166&sliceId=1

View all Dreamweaver hints and tips

forum postWhen you are in print mode how can you get the text to fit to page without messing about with the margins?

» Forum post: Print edit


Rate this page:
2.2/5 (213 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

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

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training