Background color DivWindow

Post Reply
dbrazoli
Posts: 61
Joined: Thu Dec 19, 2013 6:33 pm

Background color DivWindow

Post by dbrazoli » Wed Apr 03, 2019 7:34 am

Jon, I'm in need of your guidance again.
I want to put a background color in DivWindow. It's possible ?
Thankful.
Daniel.

jomitech
Site Admin
Posts: 1954
Joined: Wed Oct 08, 2008 12:23 am

Re: Background color DivWindow

Post by jomitech » Wed Apr 03, 2019 3:11 pm

Yes, you can use CSS to override the background color of the JTDivWindow.
Jon

dbrazoli
Posts: 61
Joined: Thu Dec 19, 2013 6:33 pm

Re: Background color DivWindow

Post by dbrazoli » Wed Apr 03, 2019 3:46 pm

Jon, thank you again for your prompt response.
But I could not color the divwindow background.
I used jquery like this:
$ ('#dvtelalogin'). css ("color", "silver");
or
$ ('#dvtelalogin'). css ("background-color", "silver");

But it changes the color only from the edge, not the background.
Are there any other selectors to set?
Thankful.
Daniel.

jomitech
Site Admin
Posts: 1954
Joined: Wed Oct 08, 2008 12:23 am

Re: Background color DivWindow

Post by jomitech » Wed Apr 03, 2019 5:59 pm

You need to set the actual background object, not just the parent element.

Code: Select all

$('#dvtelalogin span.jtdivwindowcontents').css("background", "silver");
Jon

dbrazoli
Posts: 61
Joined: Thu Dec 19, 2013 6:33 pm

Re: Background color DivWindow

Post by dbrazoli » Fri Apr 05, 2019 8:26 am

Jon, I applied this style in the DivWindow onshow event, $ ('# dvtelalogin span.jtdivwindowcontents'). Css ("background", "silver"), but now changed only the border color of 2 edits.
Also onload, on ready and onpageheader.
I also used the gradient property, at design time the background color is changed to the desired one, but at run time it goes blank.
Is there anything else to be done?
thankful
Daniel.

jomitech
Site Admin
Posts: 1954
Joined: Wed Oct 08, 2008 12:23 am

Re: Background color DivWindow

Post by jomitech » Fri Apr 05, 2019 2:28 pm

What theme are you using?
Jon

dbrazoli
Posts: 61
Joined: Thu Dec 19, 2013 6:33 pm

Re: Background color DivWindow

Post by dbrazoli » Fri Apr 05, 2019 3:23 pm

I use default, blue

jomitech
Site Admin
Posts: 1954
Joined: Wed Oct 08, 2008 12:23 am

Re: Background color DivWindow

Post by jomitech » Fri Apr 05, 2019 7:52 pm

Sorry, use this instead:

Code: Select all

$('#dvtelalogin .jtdivwindowcontentsframe').css("background", "green");
Jon

dbrazoli
Posts: 61
Joined: Thu Dec 19, 2013 6:33 pm

Re: Background color DivWindow

Post by dbrazoli » Fri Apr 12, 2019 6:52 am

Hello, Jon.
Great!
Where could I find a list with these properties?
Thankful.

jomitech
Site Admin
Posts: 1954
Joined: Wed Oct 08, 2008 12:23 am

Re: Background color DivWindow

Post by jomitech » Mon Apr 15, 2019 9:16 am

It's just basic CSS properties, being set using JavaScript. See https://www.w3schools.com/cssref/default.asp
Jon

Post Reply