Log in

View Full Version : new window/floater for chat box



RD_Gringa
07-30-2006, 06:07 PM
I want to make it so that a person visiting my site can make the chat box open in a new window so they can view it while surfing my site or if they would like to keep it open after they have finished with my site. I do not want it to interfere of be a pain. Just to make it so I do not have to place the box on each page. I found if I right click and say open in new frame I can do it on Mozilla but I would like to make a button so the viewer can detatch it from the page and make it seperate. Is this possible?
My site is http://www.colonialzone-dr.com, this is the location of the chat box I want to move around.
(by the way, I love your site, it has helped me much as you can see with my site)

boogyman
07-31-2006, 07:58 AM
yes this is possible.... you are most undoubtably using an iframe for your chat box right? well if you are all you need to do is just make a link somewhere on the page with a link to your chat box something like so
<a href="URL_TO_CHAT" target="_blank">Chat Box</a> ... if you want to get a tiny bit fancy you can make it so that the new page is not the same dimensions as a regular page he / she is viewing... to that you need a tiny bit of javascript.

<a href="#" onclick="window.open('URL_TO_CHAT','_blank','width='WIDTH_OF_CHATBOX',height='HEIGHT_OF_CHATBOX,directories=no,location=no,status=no,menubar=no,toolbar=no,scrollbars=no, resizable=no')">Chatbox</a>


then all you would need to do is just fool around width the right height and width settings to what fits your needs.

RD_Gringa
08-02-2006, 06:46 PM
Thanks for the help. I got it to work...