Forum Moderators: open

Message Too Old, No Replies

is a specific dreamweaver question in bounds?

         

vinnybop

3:05 am on Dec 30, 2003 (gmt 0)

10+ Year Member



Might sound dumb but I can't figure out how to make a link to a pop-up box to post my mission statement...

skibum

3:50 am on Dec 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I understand the question correctly, the goal is to have a text link [to the mission statement] on a page. When someone clicks on that link you want the mission statement to pop up in a new window.

The link code will look like this:

<A HREF="/mission-statement.htm" target="_blank">mission statement</A>

In the DreamWeaver interface, right next to the place to define a link in the properties floating toolbar, it says "target" and it has a drop down menu next to it. With the link highlighted in the design view, select "_blank" from this drop down menu and this should insert the correct code around the link to make it open in a new window.

I'm looking at DW4 so it may be different with the newer MX versions.

vinnybop

4:47 am on Dec 30, 2003 (gmt 0)

10+ Year Member



Yeah, I've actually done that already. The new window that pops up maximizes. I was wondering if I could define the size of the new window somehow to make it float above the original page like a dialogue box.

vinnybop

3:01 am on Dec 30, 2003 (gmt 0)

10+ Year Member



I'm still trying to figure out if this question is in bounds.

All I want to do is make a link to a pop-up box which will explain my site's mission statement. In dreamweaver of course. Can't figure it out from my sams book.

ScottR

4:12 am on Dec 30, 2003 (gmt 0)



Might not be as elegant as you'd like but simply adding target="SomeWindowNameYouChoose" to your anchor tags <a href..."> will pop open a new window. Alternatively, you can add JavaScript to your anchor tag that will open a window of specific dimension with specific properties (i.e. no scrolling, no menus, no status bar, etc.) with the added benefit that you can close said window using script without generating security warnings saying that a script is trying to close your browser window...

The syntax for the latter is <a href="javascript:window.open('[YourURL]','[YourWindowName]','[WindowOption1],[WindowOption2],etc...');"

Common window options are:
width=(in pixels, e.g. 350)
height=(in pixels)
toolbar=(yes/no)
directories=(yes/no)
location=(yes/no)
menubar=(yes/no)
resizeable=(yes/no)
scrollbars=(yes/no)
status=(yes/no)

Many options default to those of the calling window, others must be explicitly set.

To close the window with a link, use <a href="" OnClick="window.close()">Close Window</a>

Hope that helps!

Scott

yowza

4:19 am on Dec 30, 2003 (gmt 0)

10+ Year Member



This "Behavior" is available in Dreamweaver MX.

It is in the "Design" tab under "Behaviors" and "open window".

vinnybop

4:55 am on Dec 30, 2003 (gmt 0)

10+ Year Member



Beautiful. Problem solved. Happy New Year!