Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
Making Pop Up Windows in Dreamweaver MX |
Page: 1 | Reply |
Nov 15th 2002 | #78461 Report |
Member since: Aug 28th 2001 Posts: 970 |
I’m currently trying to figure out how I can have it so that someone can click an icon and have a popup icon come up. I’m using Dreamweaver MX. Anyone familiar with creating pop up windows that fit the images proportions? |
Reply with Quote Reply |
Nov 15th 2002 | #78466 Report |
Member since: Mar 20th 2001 Posts: 3367 |
You don't need Dreamweaver for this .. The javascript code for this is : function OpenWindow( url, width, height, options, name ) { var newWin = window.open( url, name, "width=" + width + ",height=" + height + "," + options ); } Replace Page.html, width and height <a href="javascript:void(0);" onClick="OpenWindow('Page.html',width,height,'scrollbars=no,menubar=no,toolbar=no,location=no,status=no,resizable=no'); return false">Link</a> |
Reply with Quote Reply |
Nov 15th 2002 | #78470 Report |
Member since: Jul 10th 2002 Posts: 1706 |
Or you can also use the behaviours found in dreamweaver mx. Just apply a "Open browser window" behaviour to the icon and then set your properties. Works like a charm. You will however need to use javascript to be able to close the window and have the parent page refresh any new information it may be directed to. Otherwise it stays how you left it.
|
Reply with Quote Reply |
Nov 15th 2002 | #78471 Report |
Member since: Aug 28th 2001 Posts: 970 |
Yeah I've tried using that Behavior but I can't seem to get it so that it's set up for on click event or something of that sort. It only seems to want to work with "on mouse over" which isn't what I want. Know how to turn on mouse over off? |
Reply with Quote Reply |
Nov 15th 2002 | #78474 Report |
Member since: Mar 18th 2001 Posts: 6632 |
After you create your behavior, there is a little arrow between "onMouseOver" and "open window". Click on it and choose "onClick". If you don't see it, make sure you have it set to show behaviors for like IE 5 and above or something like that.
|
Reply with Quote Reply |
Nov 15th 2002 | #78535 Report |
Member since: Aug 28th 2001 Posts: 970 |
Awesome, yeah that worked. I cant' seem to be exact with the measurements however. I tell the window to be the size that the image is. When it opens in the browser it's always off centered. I'm always having to adjust it. |
Reply with Quote Reply |
Nov 15th 2002 | #78537 Report |
Member since: Mar 18th 2001 Posts: 6632 |
That's because the browser puts a margin around everything. You have to make an html page to pop-up in the window that has all margins and padding set to 0 for it to fit perfectly in the window. Otherwise you'll always have that border.
|
Reply with Quote Reply |
Nov 15th 2002 | #78548 Report |
Member since: Aug 28th 2001 Posts: 970 |
Ok, it's working the way I want it to now. Thanks for your help. :D |
Reply with Quote Reply |
Nov 19th 2002 | #79128 Report |
Member since: Nov 14th 2001 Posts: 1297 |
right on - very helpful thread. cleared up a few questions for me. I was doing the same stuff last week. - deker rocks. |
Reply with Quote Reply |
Page: 1 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |