You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
515 B
JavaScript
23 lines
515 B
JavaScript
/**
|
|
|
|
* 论坛首页切换
|
|
|
|
* @dependencies 依赖jquery
|
|
|
|
*/
|
|
|
|
$(document).ready(function(){
|
|
|
|
var $newCode=$(".gift-con .newCode");/*榜单切换*/
|
|
|
|
var $newtGift=$(".gift-con .newtGift");
|
|
|
|
$newCode.click(function(){
|
|
|
|
$(this).addClass("on");
|
|
|
|
$newtGift.removeClass("on");
|
|
|
|
$("#newCodeList").show();
|
|
|
|
$("#newGiftList").hide();
|
|
|
|
|
|
|
|
});
|
|
|
|
$newtGift.click(function(){
|
|
|
|
$(this).addClass("on");
|
|
|
|
$newCode.removeClass("on");
|
|
|
|
$("#newCodeList").hide();
|
|
|
|
$("#newGiftList").show();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|