Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,380
    Thanks
    263
    Thanked 32 Times in 31 Posts

    window border color

    Hi i use javascript window open method to open a window for my mini chat. What i would like to do is make the border of the window the same color as the theme of my site which is black and red.

    To explain better it is much like this edit box here.


    see this space here (tiny 5px border that surrounds this browser window) it is the same kind of space that surrounds the content of the popup box and i think it is controld by the windows theme the user has selected im not sure.

    The browser window has the same box of course because the popup is essentially a mini browser window.

    Is there a way thru javascript (or other lang) to change that tiny 5px wide border to match mysite black and red.

    Thanks.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,166
    Thanks
    75
    Thanked 4,338 Times in 4,304 Posts
    If the chat window you open is itself an HTML page (and it really should be), then just use CSS to style it the same way you style the main window.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    durangod (09-26-2012)

  • #3
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,380
    Thanks
    263
    Thanked 32 Times in 31 Posts
    yeah maybe i was thinking too deep into it i guess, making it harder than it had to be, i was thinking that to form the window itself that i would have to go one step deeper than css.

    I have opened lots of windows with javascript, and i have formated the background and the internals of the box (html page) But i dont think i have ever seen a window itself formated with css, usually the inside content is done with css, the actual page loaded, but the window itself which is the small border around the edge and the top menu bars and the way windows opens it i always thought was a windows manager deal.

    See here is the deal, i can say background this and border that in css, i do it all the time but the way i style my windows in windows 7, every window on my site or any other site has the same outside border, its a windows deal.

    So if you style your windows to a certain theme they will all have the same border. Its not the html content in side the border that im referring to, its the actual window itself. So that is a windows manager deal right?

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,166
    Thanks
    75
    Thanked 4,338 Times in 4,304 Posts
    Ahhh...yes. I see what you mean. Yes, surely a windows manager "deal", as you say.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #5
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,380
    Thanks
    263
    Thanked 32 Times in 31 Posts
    This is in the right direction however might be alittle overkill for what i need.

    http://jswm.sourceforge.net/


    http://jswm.sourceforge.net/doc/


    But i did look at the demo and clicked some items and the window is nice for sure, very clean.


    Is there something maybe in between window open and this manager that exists. i just want to have a cleaner window presentation.


  •  

    Posting Permissions

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