473,383 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

hover image in button

omerbutt
638 512MB
hi i am trying to make a hover class that would replace the background-image of the button .it is working in Mozilla but not working in IE any suggesstions ,here is the code
Expand|Select|Wrap|Line Numbers
  1. <style type='text/css'>
  2. #input_button{ 
  3.     background-image:url(../images/img_049.gif);
  4.     background-position:center;
  5.     background-repeat:no-repeat;
  6.     border:0px;
  7.     width:40px;
  8.     height:20px; 
  9.     cursor:pointer; 
  10.     background-color:#151515;
  11. }
  12. #input_button:hover{
  13.     background-image:url(../images/img_048.gif);
  14.     width:40px;
  15.     height:20px;
  16. }
  17. </style>
  18. <body>
  19. <tr>
  20.        <td></td>
  21.            <td align="left" valign="middle"><input type="submit" name="Submit" id="input_button" class="input_button text_9_tahoma_white" style="text-align:left;" value="" align="left" />
  22. <input type="reset" name="Reset" id="input_button" class="input_button text_9_tahoma_white" style="text-align:left;" value="" align="left" />
  23.       </td>
  24. </tr>
  25. </body>
  26.  
Mar 11 '09 #1
3 3622
Dormilich
8,658 Expert Mod 8TB
the hover pseudo-class works in IE only on anchor elements.
Mar 11 '09 #2
omerbutt
638 512MB
:( i almost had a doubt well have to change to an image
thanks anyway
regards,
Omer Aslam
Mar 11 '09 #3
Dormilich
8,658 Expert Mod 8TB
you can use javascript to overcome this problem (look for the suckerfish dropdown, the script is explained there)
Mar 11 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Susan Addams | last post by:
The website I'm working on is using a graphic image for the left navigation scheme. Say I've got a button called "home" and one called "home_rollover" where it's a lighter shade Is there a...
12
by: Sander Tekelenburg | last post by:
Trying to make some images disappear on hover (works), and others appear on hover (works not). In tested browsers, this gives the expected result: IMG.disappear {visibility: visible}...
8
by: JLahm | last post by:
I have defined a class for my images called .image that specifies the default border color, width and style. I'd like to be able to have the pseudo elements link, visited and active have one color...
2
by: Elisa | last post by:
I have two images, each with defined CSS hover states. I would like a mouseover on one image to trigger the hover state of the other image. Is this possible using javascript? If so, how? Any...
4
by: Don | last post by:
I have a client page that employs hover buttons. They work just fine in IE. But, when using Netscape, they intermittently won't display. When they don't display, all that shows is a gray box the...
7
by: fredo | last post by:
I've studied Eric Meyer's pure css popups, version two: http://meyerweb.com/eric/css/edge/popups/demo2.html which pops up an image when I roll over a text link. Now I want to pop up a large...
7
by: Cate Archer | last post by:
I want to have a border around an image that changes color when the mouse hovers over it. The following code works perfectly in FireFox but not in Internet Exploiter. The text link changes color...
8
by: Haines Brown | last post by:
I want a hot text string to display an image only when hovered. In the body: .... <a id="link-a" href="#nogo"> <img id="photo" src="..." />hot text </a> ....
4
by: Sigilaea | last post by:
My previous post got squashed because m post is too long. Sorry for that: I have an AJAX page with a CSS menu at the top. My problem is the hover functionality stops working after someone clicks...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.