losing css hover with jquery -
CSS hover is working properly until the menu item is clicked. I believe this problem started with this line
$ ("#button li a: not (a." + Target + ")"). CSS ("background-position", "0");
css
#buttons {float: left;} #buttons ul {list-style-type: none; Cursor: pointer; Overflow: hidden; } #Buttons Ul Lee {Height: 195px; Width: 40px; Float: left} #Buttons a {display: block; Height: 192 px; Width: 40px; Border: None; Cursor: Pointer;} # Bootens Ateets: Hover #buttons a.duels: hover, #buttons a.messages: hover {background-position: -40px 0;} #buttons a.settings {background: url (accountsettings.png }} #buttons a.something {background: url} (Accountsomething.png)} #buttons a.messages {background: url (accountmessages.png}} #text {width: 600px; height: 199px; overflow: hidden; float : Left;} div # text div {width: 600px; height: 199px; float: left; margin-left: 20px;}
HTML
Setting CSS inline will take precedence over your stylesheet - so try to toggle a square instead.
I'm not sure what you want to achieve , So the combination of some addClass (), removeClass () or toggleClass () will be the move.
Comments
Post a Comment