#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    1
    Rep Power
    0

    Exclamation CSS layers with images?


    Does anyone here know how to create layers with an image?
    Basically, what i want to do is, mouse over a text link and I want the image to appear on specified coords.

    Any help would be greatly appreciated,
    thanks!
  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
    Code:
    <img id='img1' src='...' style="position:absolute;top:50px;left:20px;display:none;'/>
    
    ...
    
    onmouseover='document.getElementById("img1").style.display="block";'
    onmouseout='document.getElementById("img1").style.display="none";'
    You could also toggle visibility between 'visible' and 'hidden'.

IMN logo majestic logo threadwatch logo seochat tools logo