SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    A little trouble shooting for an IE6 expression

    The expression work perfect. The only problem is the "submit" button in IE6 only. How can I keep what ever is happening to it to stop happening - you'll see? I tried absolutely positioning the submit button within the expression itself - it positioned it but did not stop the problem. Here is the page and the relevant code. Thanks!

    Also is it a good idea to put the (* html) in front of it or do all other browsers by default automatically ignore expressions. Or is this just feeding IE6 and not IE7?

    http://www.littleaboutalot.com/contact.php

    * html .iehover { /* IE6 hover */
    m: expression(this.onmouseover = new Function("this.className = 'iehover-hover';"));
    }
    * html .iehover:hover, * html .iehover-hover{ /* IE6 hover */
    background: #FEFEF8;
    m: expression(this.onmouseout = new Function("this.className = 'iehover';"));
    }

    <form>

    <label for="first name">First Name</label>
    <input id="first name" name="first name" class="iehover"><br>

    <label for="last name">Last Name</label>
    <input id="last name" name="last name" class="iehover"><br>

    <label for="email">Email</label>
    <input id="email" name="email" class="iehover"><br>

    <label for="comments">Comments</label>
    <textarea id="comments" name="comments" class="iehover"></textarea><br>

    <input type="button" value="Submit" class="submit iehover">

    </form>

  2. #2
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use a <button> with an <img> inside. Hover + <input> + css/background images = bad bad bad mix.

  3. #3
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Why is that very bad bad bad?


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
  •