This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > March 2005 > open popup window





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 open popup window
Pete

2005-03-01, 6:27 pm

In DW you have to cretae hyperlink on the text before you can ask it to
popup a window when clicked.

Therefore the result is you get the popup window but also the papge your on
has to also link somewhere!!.

Is it not possible just to have DM open a popup?


darrel

2005-03-01, 6:27 pm

> Is it not possible just to have DM open a popup?

DW doesn't do anything. The browser does.

You can have the browser open a pop-up by attaching a javascript ONLOAD
event to the BODY tag. However, most modern browsers and pop-up blockers
will block pop-ups triggered in this manner, so it's usually suggested that
if you MUST have a pop-up, that you trigger it from an actual link on the
page.

-Darrel


mattw

2005-03-01, 6:27 pm

You should be able to add and onClick event to whatever you want (e.g., img
tag) and point to whatever function you use to open the pop-up
For example, if you use the Pop-Up Window snippet in DW:
<img src="foo.gif" onClick="popUpWindow(myURL,20,20,200,200);">

Pete

2005-03-01, 6:27 pm


"mattw" <webforumsuser@macromedia.com> wrote in message
news:d028ed$si3$1@forums.macromedia.com...
> You should be able to add and onClick event to whatever you want (e.g.,
> img
> tag) and point to whatever function you use to open the pop-up
> For example, if you use the Pop-Up Window snippet in DW:
> <img src="foo.gif" onClick="popUpWindow(myURL,20,20,200,200);">


Mine is a text based link


Pete

2005-03-01, 6:27 pm


"darrel" <notreal@hotmail.com> wrote in message
news:d0276h$qk9$1@forums.macromedia.com...
>
> DW doesn't do anything. The browser does.
>
> You can have the browser open a pop-up by attaching a javascript ONLOAD
> event to the BODY tag. However, most modern browsers and pop-up blockers
> will block pop-ups triggered in this manner, so it's usually suggested
> that
> if you MUST have a pop-up, that you trigger it from an actual link on the
> page.



im talking about having text called: click here when you click it it opens
a popup window


Gary White

2005-03-01, 6:27 pm

Pete wrote:

>im talking about having text called: click here when you click it it opens
>a popup window



See http://apptools.com/rants/popups.php


Gary
darrel

2005-03-01, 6:27 pm

> im talking about having text called: click here when you click it it
opens
> a popup window


So...what's your question? Highlight the text, make it a link, and attach a
javascript pop-up window script to it.

-Darrel


mattw

2005-03-01, 6:27 pm

<span onClick="popUpWindow(myURL,20,20,200,200);">Click Here</span>
mattw

2005-03-03, 6:44 pm

You should be able to add and onClick event to whatever you want (e.g., img
tag) and point to whatever function you use to open the pop-up
For example, if you use the Pop-Up Window snippet in DW:
<img src="foo.gif" onClick="popUpWindow(myURL,20,20,200,200);">

Gary White

2005-03-03, 6:46 pm

Pete wrote:

>im talking about having text called: click here when you click it it opens
>a popup window



See http://apptools.com/rants/popups.php


Gary
Pete

2005-03-03, 6:46 pm


"darrel" <notreal@hotmail.com> wrote in message
news:d0276h$qk9$1@forums.macromedia.com...
>
> DW doesn't do anything. The browser does.
>
> You can have the browser open a pop-up by attaching a javascript ONLOAD
> event to the BODY tag. However, most modern browsers and pop-up blockers
> will block pop-ups triggered in this manner, so it's usually suggested
> that
> if you MUST have a pop-up, that you trigger it from an actual link on the
> page.



im talking about having text called: click here when you click it it opens
a popup window


mattw

2005-03-03, 6:46 pm

<span onClick="popUpWindow(myURL,20,20,200,200);">Click Here</span>
darrel

2005-03-05, 6:27 pm

> Is it not possible just to have DM open a popup?

DW doesn't do anything. The browser does.

You can have the browser open a pop-up by attaching a javascript ONLOAD
event to the BODY tag. However, most modern browsers and pop-up blockers
will block pop-ups triggered in this manner, so it's usually suggested that
if you MUST have a pop-up, that you trigger it from an actual link on the
page.

-Darrel


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews