#1
  1. No Profile Picture
    Indie Poser Punk
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    Wayne, PA
    Posts
    216
    Rep Power
    15

    DHTML Layers (More than 2?)


    Ok, I'm still getting into the whole DHTML thing. I made Flash piece that I want to kind of pop out of a part of a web page. Similar to what is done on the Amazon.com site. Can I have three layers on a page? Allow me to explain:

    I put the top half of the page in <span = "top"> tag and the bottom half in <span = "bottom">. I want the Flash piece <span = "flash"> to rise from behind <span = "bottom">, but cover <span = "top"> as it rises.

    I am mainly concerned with doing this on IE4 and above. I think it should work, in theory, but I can't even get <span = "flash"> to "appear" underneath any of the other layers.

    Here is the script I'm using (no rising scripting in there yet):

    PHP Code:
    <style type="text/css">
        
    #top {
            
    positionabsolute;
            
    z-index1;
            
    top1px;
            
    left1px; }
        
    #flash {
            
    positionabsolute;
            
    z-index1;
            
    top155px;
            
    left1px; }
        
    #bottom {
            
    positionabsolute;
            
    z-index2;
            
    top151px;
            
    left1px; }
    </
    style
    Thanks for the help!
  2. #2
  3. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Apparently you can't cover a flash movie in html. Similar Situation

    You might be able to fudge a little with the way you design the movie, though. Make the background transparent so you can't see it to start out.
    -james
  4. #3
  5. No Profile Picture
    Indie Poser Punk
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    Wayne, PA
    Posts
    216
    Rep Power
    15
    D'oh! That's what I thought. Thanks for the info! Looks like I'll have to re-do....
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Location
    Barcelona
    Posts
    133
    Rep Power
    13
    Last edited by meddle; December 23rd, 2002 at 01:52 PM.

IMN logo majestic logo threadwatch logo seochat tools logo