View Full Version : Background for Movable Windows


fudgesicle
06-18-2003, 03:24 PM
http://dhtmlcentral.com/script/script16_demo.html
http://dhtmlcentral.com/script/script.asp?id=16

I am using the movable windows script from the above URL... does anyone know if I can put an image instead of a color for the background of the windows?

I tried replacing

oWin.bgcolor=
oWin.bgcoloron=

in the head script with

oWin.background=
oWin.backgroundon=

but the background image doesn't show up and it just changes both of the red/blue boxes to blue. (by red/blue boxes, I mean the ones that switch on and off with their colors to red and blue.)

If anyone could help me, I would greatly appreciate it. Thanks!

MaGiCSuN
06-18-2003, 05:46 PM
<style type="text/css">
.clWin{position:absolute; z-index:2; visibility:hidden; overflow:hidden; background-color:blue}
.clWindow{position:absolute; background-color:blue; overflow:hidden; z-index:15; width:200}
.clWinHead{position:absolute; width:200; top:0; font-family:arial,arial,helvetica; font-size:11px; font-weight:bold; color:white; background-color:transparent}
.clText{position:absolute; z-index:50; font-family:arial,helvetica; font-size:11px; background-color:transparent}
.clWinResize{position:absolute; z-index:30; width:30; height:30; clip:rect(0,30,30,0); background-image:url(resize.gif); layer-background-image:url(resize.gif)}
.clLogo{position:absolute}
.clUp{position:absolute; width:12; height:12; z-index:60;}
.clDown{position:absolute; width:12; height:12; z-index:60;}
.clWinButtons{position:absolute; font-family:arial,helvetica; font-size:12px}
</style>

what happens if you add background-image:url(URLHERE.gif) to the clWin code? that's all i can think of really....

Love,
Mirna

fudgesicle
06-20-2003, 07:40 PM
That didn't work, but adding it to the clWindow code did. Thanks for your help!