SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist SpaceFrog's Avatar
    Join Date
    Jan 2005
    Location
    Outerspace
    Posts
    511
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Object prototype for css style

    I juste can't get my prototype to work

    here's the main idea:
    Code:
    Object.prototype.getElementStyle=  function(){
    var elementComputedStyle = this.currentStyle || window.getComputedStyle(this, null);
    return elementComputedStyle;
    }
    What's wrong ?

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That will work in Opera and Firefox, but not IE. Reference this thread.


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
  •