![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Stop the Pop Ups!!!
Hey,
Newbie Dreamweaver user here. I'm working my way thru the Classroom in a Book tutorial and I'm on Chapter 8. I followed the instructions that tell me how to use Adobe Behaviors to open a larger photo in a new browser window when I click on a thumbnail. The problem is, when I close the pop up window, it re-opens again. I can't figure out why it would do that. I had to set the preferences in FireFox to allow pop ups so that I could view the page I'd created. Here's the code that DreamWeaver created: <td class="overlay"><a target="">? </a></td> <td class="enlarge" onfocus="MM_openBrWindow('images/group_large.jpg','Group','location=yes,width=82 0,height=550')"><a href="javascript:;" target="">+</a></td> </tr> |
|
|||
|
Re: Stop the Pop Ups!!!
The problem is the onfocus event. Here's what happens: you click the
link, the popup window opens and gets focus. You close the popup and focus returns to the link, which starts the process over again. So, change that event to onclick and all should work fine. -- E. Michael Brandt www.divahtml.com http://www.divahtml.com/products/scr...extensions.php Standards-compliant scripts and Dreamweaver Extensions www.valleywebdesigns.com/vwd_Vdw.asp JustSo PictureWindow JustSo PhotoAlbum, et alia -- |
|
|||
|
Re: Stop the Pop Ups!!!
Classroom in a book tells you to do THAT? Wow....
<td class="enlarge" onfocus="MM_openBrWindow Seems weird to me. It's the reason your popup keeps popping. The table cell still has focus when you close the previously opened popup. I believe it would be much better to have this - <td class="overlay"><a target="">? </a></td> <td class="enlarge"><a href="javascript:;" onclick="MM_openBrWindow('images/group_large.jpg','Group','location=yes,width=820,h eight=550')">+</a></td> </tr> I'm not going to comment on the empty target attribute. Who wrote this? -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "AustinBrad" <webforumsuser@macromedia.com> wrote in message news:fqhoc4$lq6$1@forums.macromedia.com... > Hey, > > Newbie Dreamweaver user here. I'm working my way thru the Classroom in a > Book > tutorial and I'm on Chapter 8. I followed the instructions that tell me > how to > use Adobe Behaviors to open a larger photo in a new browser window when I > click > on a thumbnail. The problem is, when I close the pop up window, it > re-opens > again. > I can't figure out why it would do that. I had to set the preferences in > FireFox to allow pop ups so that I could view the page I'd created. Here's > the > code that DreamWeaver created: > > <td class="overlay"><a target="">? </a></td> > <td class="enlarge" > onfocus="MM_openBrWindow('images/group_large.jpg','Group','location=yes,width=82 > 0,height=550')"><a href="javascript:;" target="">+</a></td> > </tr> > |
|
|||
|
Re: Stop the Pop Ups!!!
Thanks guys! Issues resolved:
1) Classroom in a Book didn't say anything about On Focus vs. On Click. Don't know why it defaulted to On Focus. 2) I applied the behavior to the anchor tag and it defaulted to On Click. Maybe applying the behavior to the table cell defaulted to On Focus? 3) Don't know enough HTML to say anything about the empty Target attribute or other Dreamweaver weirdness. This is the code that Dreamweaver created when I followed the CIB instructions. It seems to do what I want it to do, so I'll go with it. Hope it's not violating any web standards. Thanks for the quick help! Brad |
|
|||
|
Re: Stop the Pop Ups!!!
Good luck. You done good....
-- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "AustinBrad" <webforumsuser@macromedia.com> wrote in message news:fqhvv8$f0$1@forums.macromedia.com... > Thanks guys! Issues resolved: > > 1) Classroom in a Book didn't say anything about On Focus vs. On Click. > Don't > know why it defaulted to On Focus. > > 2) I applied the behavior to the anchor tag and it defaulted to On Click. > Maybe applying the behavior to the table cell defaulted to On Focus? > > 3) Don't know enough HTML to say anything about the empty Target attribute > or > other Dreamweaver weirdness. This is the code that Dreamweaver created > when I > followed the CIB instructions. It seems to do what I want it to do, so > I'll go > with it. Hope it's not violating any web standards. > > Thanks for the quick help! > > Brad > > |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|