PDA

View Full Version : boxing-away script (picture instead of background-color)



cynouk
02-28-2008, 10:50 AM
1) Script Title: boxing-away

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex3/awaybox.htm

3) Describe problem:
hello everyone.
i am very new in coding an have a problem with the boxing-away-skript.

original the skript shows boxes in colors define in the style:

<style>
<!--
.intro{
position:absolute;
left:0;
top:0;
layer-background-color:green;
background-color:green;
border:0.1px solid green;
z-index:10;
}
-->
</style>

now i would like to load in the boxes a pic, but its not working...
i tryed:

<!--
.intro{
position:absolute;
left:0;
top:0;
background-image: url(http://www.exemple.de/example.gif);
layer-background-image: url(http://www.exemple.de/example.gif);
border:0.1px solid green;
z-index:10;
}
-->
</style>

but its not working...
any idee?

thanks for any help:)

rangana
02-28-2008, 11:18 AM
It should work!. Where did you put the <script>.......</script>??..
It should be right under the <div>s that has the class intro. :D

cynouk
02-28-2008, 11:45 AM
i put it right after the body, like it says in step 2:

"Step 2: Finally, insert the below right after the <body> tags, before anything else:"

but what happens is that the boxes are empty...
when i change it back like the original code, it works perfect,
but as soon as i change it to
"background-image"
and
"layer-background-image"
it shows the outline of the boxes but inside is nothing.
actually u can see the site under it...

rangana
02-29-2008, 12:21 AM
Could you provide a link to your page??..
I had given the background-image and layer-background-image a try and it works fine for me.