Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-10-26 13:44:10

FireFusion
Member
Registered: 2005-05-10
Posts: 698

jQuery click to open (Remora dropdowns)

I’m making my own custom theme based on remora. I’d like to menus to open on click and close on mouse out. I’ve got the open on click working but the close on mouseout isn’t :P

Any idea how i can fix it?

<script type="text/javascript">
<!--
$(document).ready( function() {
				$("#nav li").click( 
					function() { $(this).addClass("sfhover"); }
				);
				$("li.sfhover").mouseout( 
					function() { $(this).removeClass("sfhover"); } 
				);				

			});
// -->
</script>

Last edited by FireFusion (2009-10-26 13:44:22)

Offline

Board footer

Powered by FluxBB