Login | Register
Compare Gas & Electricity Prices

Latest Complaints

Latest Reviews/Articles

Latest News & Stories

By: web design tutorial | posted in HTML/CSS, Tutorials, Web Design |
Date: August 5th, 2009

I was wondering the other day why my search button doesn’t have a mouse over effect. It should change the pointer into a hand when you hover over my search box. It is showing only for IE but not in FireFox.

This is what I have before and you can see when the cursor is right over the html input search button and it doesn’t change the cursor.


<input type=”submit” onmouseover=”this.style.cursor=’hand’” id=”searchsubmit” value=”Search” />

Before with no mouse over effect

Here is the solution html code below. You need to change hand to pointer (as per W3C standard). It work both on IE and FireFox.


<input type=”submit” onmouseover=”this.style.cursor=’pointer’” id=”searchsubmit” value=”Search” />

This is how it look now.

Now with no mouse over effect

Do you like this article?

By: web design tutorial
Site:
Info:

Keyframe5 is not responsible for comments provided by external users for the accuracy, authenticity or reliability of the content. Read our Terms of Service.

Comment Pages

There is 1 comment for Mouseover not showing when hover over input button

  1. 13luck says:

    simple css

    input.button {cursor:pointer;}

Keyframe5 is not responsible for comments provided by external users for the accuracy, authenticity or reliability of the content. Read our Terms of Service.

Comment Pages

Post a Comment


Basic HTML tags are allowed: <blockquote> <a href> <strong> <em>
*