HighDots Forums  

how do u add "close window"

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss how do u add "close window" in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
oneirocrite
 
Posts: n/a

Default how do u add "close window" - 09-02-2005 , 04:46 PM






i have thumbnails that open in a new window (constrained) and i want to add a
"close this window" button at the bottom. How do i do this? Is there a behavior
that does this thing...i haven't found it...

thanks



Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: how do u add "close window" - 09-02-2005 , 04:51 PM






Are you opening the image directly? If so, then no.

Are you opening a page containing the image? If so then do <a
href="javascript:self.close()">Close</a> on the page.

--
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
==================

"oneirocrite" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
i have thumbnails that open in a new window (constrained) and i want to add
a
"close this window" button at the bottom. How do i do this? Is there a
behavior
that does this thing...i haven't found it...

thanks





Reply With Quote
  #3  
Old   
artist_lace
 
Posts: n/a

Default Re: how do u add "close window" - 09-02-2005 , 05:00 PM



First, you've got the right idea looking in the behaviors. Once you've created
your button you'll need to add the behavior "Call JavaScript." The Call
JavaScript box will pop up and allow you space to type. Here's what you should
type in;

window.close()

There are no spaces between the parentheses or between the words. This should
work for you.


Reply With Quote
  #4  
Old   
ninanguyen
 
Posts: n/a

Default Re: how do u add "close window" - 11-10-2005 , 01:51 AM



I am experiencing similar problem but need further help. I know that to close
the pop up browser this javascript need to be insert in the code view:
<a
href="javascript:self.close()">Close</a> on the page.

But where do I insert it since everybody keep saying to put it on the page
that's pop up. The page I am working with is the thumbnail gallery not the
actual image page. The pop up browser is a image file not a html file anyway so
where would the code go?

This is what I get on the thumbnail to get it to pop up to a large image on
Click:

<a href="javascript:;"
onClick="MM_openBrWindow('../Images/CZBracelet/Charolette/images/CB0104_jpg.jpg'
,'','location=yes,scrollbars=yes,resizable=yes,wid th=400,height=400')"><img
src="../Images/CZBracelet/Charolette/thumbnails/CB0104_jpg.jpg" alt=""
width="100" height="100" border="0"></a></a><br>
CB0104</a>

Thank you,




Reply With Quote
  #5  
Old   
T.Pastrana - 4Level
 
Posts: n/a

Default Re: how do u add "close window" - 11-10-2005 , 02:45 AM



You won't be able to do that if you are browsing to the image for your
popup. Take a look at the JustSo PictureWindow extension
http://www.valleywebdesigns.com/vwd_Vdw.asp or the Open Picture Window Fever
extension http://dreamweaverfever.com/grow/ as they will incorporate the
"closing" by clicking on the image in the popup.


--
Regards,
...Trent Pastrana
www.fourlevel.com





"ninanguyen" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I am experiencing similar problem but need further help. I know that to
close
the pop up browser this javascript need to be insert in the code view:
a
href="javascript:self.close()">Close</a> on the page.

But where do I insert it since everybody keep saying to put it on the page
that's pop up. The page I am working with is the thumbnail gallery not the
actual image page. The pop up browser is a image file not a html file
anyway so
where would the code go?

This is what I get on the thumbnail to get it to pop up to a large image
on
Click:

a href="javascript:;"
onClick="MM_openBrWindow('../Images/CZBracelet/Charolette/images/CB0104_jpg.jpg'
,'','location=yes,scrollbars=yes,resizable=yes,wid th=400,height=400')"><img
src="../Images/CZBracelet/Charolette/thumbnails/CB0104_jpg.jpg" alt=""
width="100" height="100" border="0"></a></a><br
CB0104</a

Thank you,






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.