SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard
    Join Date
    Apr 2004
    Location
    dublin
    Posts
    2,036
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form Class Issue - Freezes Page

    Hi all,

    When I add the .btn class to my submit button the webpage freezes in IE6.

    Why is this?? Thanks.

    <p><input type="submit" name="submit2" id="submit2" class="btn" value="Submit" /></p>

    Code:
     form input.btn {
     font-weight: bold;
     background-color: #eee;
     color: #102132;
     h: expression(onmouseover=new Function("this.style.cursor='hand';"),
     				  onmouseout=new Function("this.style.color='#102132';"));
     }

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most likely because you are using a proprietary expression. Try using generic CSS instead, and if you need the additional code, try using JavaScript instead.

  3. #3
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Schulz
    Most likely because you are using a proprietary expression. Try using generic CSS instead, and if you need the additional code, try using JavaScript instead.
    CSS expressions are Javascript.

    You don't need the expression, just use { cursor: hand; }. IE is probably choking on the non-existent h property you've declared.


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
  •