Fwd: Re: make pop up window stay on top

by Leigh Jennings <leigh(at)houndheaven.com.au>

 Date:  Mon, 15 Dec 2003 11:22:45 +1100
 To:  hgw <hwg-techniques(at)hwg.org>
  todo: View Thread, Original

>Thanks for your reply, R.G.Daniel
>
>Your point (1) I had already done
>point (2) is where I could use a little extra guidance.  Dreamweaver 
>doesnt seem to generate an html page for the popup window... not that I 
>could find anyway.
>
>It inserts into the thumbnails table the following code to call the popup
><a href="javascript:;" 
>onClick="MM_openBrWindow('../path/image.jpg','windowname','width=420,height=320')"><img 
>src="../patg/imagethumb.jpg" width="100" height="75" hspace="15" 
>vspace="15" border="0"></a>
>
>Does the code "onLoad="javascript:self.focus()" go in this page... where? 
>I have tried a few things but couldnt get it working.
>
>The other thing i tried was to add a behavior in dreamweaver after the 
>"onclick" /openbrowser window
>called "onload" / call javascript where i pasted in the string: self.focus()
>I also tried the string: self.focus(windowname)
>
>neither of these worked, they loaded each image into the one popup window 
>but it didnt keep the focus.
>
>Actually I have now posted the unfinished site up for testing
>it is at:
>
>http://www.comcen.com.au/~hheaven/wfs/index.html
>
>the galleries are currently set to open each pic in a new popup till i can 
>fix it.
>
>TIA Leigh
>
>At 02:29 AM 15/12/2003, you wrote:
>>To: Leigh Jennings <leigh(at)houndheaven.com.au>, hgw <hwg-techniques(at)hwg.org>
>>Subject: Re: make pop up window stay on top
>>
>>At 03:09 AM 12/14/2003, Leigh Jennings wrote:
>>What I need to do is make a new (smaller) window which is spawned by 
>>clicking on a thumb, stay on top so when/if the user clicks on another 
>>thumb in the main window they will see it load into the spawned window.
>>Currently I can have a new window spawned for each thumb clicked - Or - 
>>each image will load into the same spawned window BUT it hides on the 
>>task bar after the second thumb is selected.
>>
>>
>>If I understand you correctly, there's two things you need to do to 
>>achieve this:
>>
>>(1) Make sure you target the popup window by name, and use the same name 
>>for each instance of the popup behaviour. This will reuse the new window 
>>if it's already open.
>>
>>(2) In _each_ target window's html page, on the body tag, include a 
>>little javascript tag that says:
>>  "onLoad="javascript:self.focus()"  This will bring the focus back to 
>> the popup when the behaviour loads it.
>>
>>Works for me anyway. Hope this helps.
>
>Leigh Jennings
>Hound Heaven Web Design
>WEB:             http://www.houndheaven.com.au
>EMAIL:  leigh(at)houndheaven.com.au

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA