Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,979
    Thanks
    120
    Thanked 76 Times in 76 Posts

    Method doesn't work in IE6?

    EDIT: sory for bad caption, cant edit it.

    damn, just noticed:

    Code:
    mDiv.setAttribute('class','mDiv');
    has no effect in IE6.
    Last edited by BubikolRamios; 10-17-2008 at 04:41 PM.

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by BubikolRamios View Post
    EDIT: sory for bad caption, cant edit it.

    damn, just noticed:

    Code:
    mDiv.setAttribute('class','mDiv');
    has no effect in IE6.
    Fortuneately className does.

  • #3
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,979
    Thanks
    120
    Thanked 76 Times in 76 Posts
    u mean like that:

    Code:
    mClickDiv.setAttribute('class','mClickDiv');// for FF
    mClickDiv.setAttribute('className','mClickDiv');//for IE 6.0
    thanks, saved me a cuple of lines of code.

    by the way, ie not understandig that --> the output was devastating (-:
    Last edited by BubikolRamios; 10-17-2008 at 05:35 PM.


  •  

    Posting Permissions

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