Results 1 to 3 of 3

Thread: new window/floater for chat box

  1. #1
    Join Date
    Jul 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default new window/floater for chat box

    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)

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default Yes its possible!

    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
    Code:
     <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.
    Code:
    <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.

  3. #3
    Join Date
    Jul 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks

    Thanks for the help. I got it to work...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •