1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$(function(){
window.onload = function()
{
var $li = $('.titright span');//选项
var $ul = $('.jn');//内容
$li.mouseover(function(){
var $this = $(this);
var $t = $this.index();
$li.removeClass();
$this.addClass('current');
$ul.css('display','none');
$ul.eq($t).css('display','block');
})
}
});