SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast Pure L's Avatar
    Join Date
    Oct 2007
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript for fixing an image?

    I would like to use the whole "postition:fixed" bit of css but would also like to fix this image in IE6 too.

    IE6 doesn't support "position:fixed" so I'm thinking javascript is the way to go.

    var = myImage
    myImage = document.getElementById("yellowFoot");
    function showAndFixImage()
    {
    if(myImage == display.image.block)
    {
    myImage == THIS_IMAGE_IS_STUCK_IN_CEMENT
    }
    }

    The bit in red is where some advice would be much appreciated.

    Thanks, all!

    (Also, what's the deal with Safari and the whole "fixed" thing?.....I'm not even sure at the moment....?)

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,718
    Mentioned
    103 Post(s)
    Tagged
    4 Thread(s)
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •