Results 1 to 4 of 4

Thread: boxing-away script (picture instead of background-color)

  1. #1
    Join Date
    Feb 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default boxing-away script (picture instead of background-color)

    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

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    It should work!. Where did you put the <script>.......</script>??..
    It should be right under the <div>s that has the class intro.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Feb 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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...

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    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.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

Bookmarks

Posting Permissions

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