Simple Machine Codes
March 29, 2024, 10:27:00 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Hover Over Catagories to View Forums V2

Pages: [1]   Go Down
  Print  
Author Topic: Hover Over Catagories to View Forums V2  (Read 3297 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: July 19, 2007, 09:51:23 am »

This code is like V1...and the names says it all too.  I got give a big thanks to James for helping me with it.

Changes from v1 to v2:
-When you hoverd over a catagory in V1, it showed all the forums in all catagorys and didn't close.  In V2, when you hover over a catagory, it only showes the forums from that catagory taht you are hovering over.  Also, when your not hovering over them, they close.

Quote
<script type="text/javascript">
$(function() {
$("table.forums").addClass("classnme").hide();
//Code Created by Agent Moose with help of James[WWX]
$(".classnme").parent().hover(function(){
$(this).addClass("over");
$(this).children("table.forums").fadeIn("fast");
},function(){
$(this).addClass("out");
$(this).children("table.forums").fadeOut("fast");
});
$(".collapse").hide();
});
</script>

For the green text, that is the speed it shows up.  You can change the speeds to:
slow
normal
fast

Make sure both of them say the same thing.  If you don't, it will just be kinda weird...

EDIT:
Forgot the preview:
Click Here
Report Spam   Logged

Share on Facebook Share on Twitter

Kotton
Newcomers!

Offline Offline

Posts: 1


View Profile
« Reply #1 on: July 22, 2008, 09:57:48 am »

my god agent  Shocked nice code section! many thanks for this resource and this specific code = top notch  Afro
Report Spam   Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy