Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-26-2012, 04:59 AM   PM User | #1
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,177
Thanks: 214
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
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.
durangod is offline   Reply With Quote
Old 09-26-2012, 06:10 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,237
Thanks: 59
Thanked 3,998 Times in 3,967 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
durangod (09-26-2012)
Old 09-26-2012, 09:25 AM   PM User | #3
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,177
Thanks: 214
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
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?
durangod is offline   Reply With Quote
Old 09-26-2012, 09:49 PM   PM User | #4
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,237
Thanks: 59
Thanked 3,998 Times in 3,967 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is offline   Reply With Quote
Old 09-28-2012, 04:29 AM   PM User | #5
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,177
Thanks: 214
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
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.
durangod is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 01:19 PM.


Advertisement
Log in to turn off these ads.