This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > July 2005 > pop-up window width creation
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
pop-up window width creation
|
|
| thor-zilla-speilberg 2005-07-10, 7:17 pm |
| Using Dreamweaver 3 - or MX - how do you control the width of a pop-up window?
I know this is a very rudimentary issue, but I just can't seem to figure out
how to do it. If need be a, a sample of one of my pages needing this is at:
http://www.runt.com/*/Illust1.htm
I've learned how to do this on some sites using javascript directly, but I
just can't seem to figure out where it goes in the html on my page. Would it be
on the page to be opened (as the link above), or on the initial page where the
link is located, before opening?
Thank you in advance for the help.
Cheers,
David
| |
| oscarcharlie 2005-07-10, 7:17 pm |
| Select your image and then go to the Tag Inspector - behaviours panel. Click
on the 'plus' sign and that will bring up a list of behaviours. Click on 'Open
Browser Window'. It will then bring up a box asking you which URL to display
and the width of the required window. Click browse to locate your selected
image. You can also decide whether you require resize handles, a menu bar etc.
You will most likely want to change the 'onbeforeUnload' instruction to
'onClick'.
Hope this helps and I'm not stating the obvious.
M
| |
| oscarcharlie 2005-07-10, 7:17 pm |
| Oops, sorry - that is how you do it in MX2004 and it may not be the same for MX or 3. Sorry if it doesn't work.
| |
| Murray *TMM* 2005-07-10, 7:17 pm |
| It is the same.
--
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
==================
"oscarcharlie" <webforumsuser@macromedia.com> wrote in message
news:dar1r6$385$1@forums.macromedia.com...
> Oops, sorry - that is how you do it in MX2004 and it may not be the same
> for MX or 3. Sorry if it doesn't work.
| |
| thor-zilla-speilberg 2005-07-10, 7:20 pm |
| Actually, that seems to work nicely but it raises a new problem: now 2 windows
pop-up. First the new one created using the tag function that you explained,
and second, what looks like the original one created using the image roll-over
window with the wider width. What is the best way to remedy this? Lastly, I
know some browsers give people the option of clicking off pop-up ads. Will this
be a concern to my site?
| |
| Murray *TMM* 2005-07-10, 7:20 pm |
| Show me your markup for that link and I'll show you how to fix it.
User initiated pop-ups are usually not a problem.
--
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
==================
"thor-zilla-speilberg" <webforumsuser@macromedia.com> wrote in message
news:dar95h$c0r$1@forums.macromedia.com...
> Actually, that seems to work nicely but it raises a new problem: now 2
> windows
> pop-up. First the new one created using the tag function that you
> explained,
> and second, what looks like the original one created using the image
> roll-over
> window with the wider width. What is the best way to remedy this? Lastly,
> I
> know some browsers give people the option of clicking off pop-up ads. Will
> this
> be a concern to my site?
>
| |
|
|
| Murray *TMM* 2005-07-10, 7:22 pm |
| If you look at the markup, you will see that you actually have TWO links to
that popup -
<a href="*/BrandingCC.htm" target="_blank"
onClick="MM_openBrWindow('*/BrandingCC.htm','','status=yes,scrollbars=yes,resizable=yes,width=575')"
onMouseOver="MM_swapImage('Image52','','*/Branding2_r06_c02.jpg',1)"
onMouseOut="MM_swapImgRestore()"><img src="*/Branding_r06_c02.jpg"
name="Image52" width="126" height="121" border="0"></a>
The first is the old one (what's that */ there for?) before you used the OBW
behavior, and the second is the OBW behavior. You can fix this easily by
changing this -
onClick="MM_openBrWindow('*/BrandingCC.htm','','status=yes,scrollbars=yes,resizable=yes,width=575')"
to this -
onClick="MM_openBrWindow('*/BrandingCC.htm','','status=yes,scrollbars=yes,resizable=yes,width=575');
return false;"
The return false is a javsacript based way to disable any further action in
that link, i.e., the link itself.
Now your link will work even with javascript disabled, since in that case,
the OBW will fail, but now the link will work.
Make a corresponding change to each of your pop up links.....
And tell me why you have used that "*/" pathing?
--
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
==================
"thor-zilla-speilberg" <webforumsuser@macromedia.com> wrote in message
news:darbmn$evj$1@forums.macromedia.com...
> Go here please:
>
> http://www.runt.com/Brandingtest.htm
| |
| thor-zilla-speilberg 2005-07-10, 7:22 pm |
| Thanks Murray! That really did the trick.
As for the pathing, I created that "*" folder early on when I was stumbling
through learning Dreamweaver. Now its already part of my site plan and I
figured if I tried to change it, the links would all be broken and I'd be f'd.
I gues if I change the name through Dreamweaver, it will fix all the links
effected.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|