I don't know if this is the right place to ask this but i'm trying to figure out what is happening and knocking my head on the wall for it.
I'm using jquery to add the "hover" effect in IE6. so this is my html
- <div id="header_glbl" >
- <ul>
- <li class="top_btn_left"><a href="index.php">Κεντρική</a></li>
- <li class="top_btn"><a></a></li>
- <li class="top_btn"><a></a></li>
- <li class="top_btn"><a></a></li>
- <li class="top_btn"><a></a></li>
- <li class="top_btn"><a></a></li>
- <li class="top_btn"><a></a></li>
- <li class="search">
- <form name="search_frm" id="search_frm" method="post" action="">
- <input type="text" id="search_key" name="search_key"/>
- <img src="images/buttons/magnifier.gif" alt="go" />
- </form>
- </li>
- </ul>
- </div>
A simple menu.
So i'm using this js code to add the effect for IE6
- <script type="text/javascript">
- $(function() {
- $('#header_glbl .top_btn_left').hover(function(){
- $(this).addClass('over_left');
- }, function() {
- $(this).removeClass('over_left');
- });
- });
- $(function() {
- $('#header_glbl .top_btn').hover(function(){
- $(this).addClass('over_middle');
- }, function() {
- $(this).removeClass('over_middle');
- });
- });
- </script>
And the css:
- .over_left{
- background: url("images/buttons/btn_left_on.gif") no-repeat 0 0;
- width:120px;
- height:35px;
- cursor: pointer;
- }
- .over_middle{
- background: url("images/buttons/top_middle_on.gif") no-repeat 0 0;
- width:120px;
- height:35px;
- cursor: pointer;
- }
My problem is that the "background: url("images/buttons/top_middle_on.gif") no-repeat 0 0;" property is not been added. The path is defenitely correct and the other properties is beeing added succesfully.
Please if u think this is something you can help me with I whould really appreciate it.
Thanks in advance...