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.
20 lines
688 B
JavaScript
20 lines
688 B
JavaScript
11 months ago
|
$(function(){
|
||
|
//菜单点击
|
||
|
$(".J_menuItem").on('click',function(){
|
||
|
var url = $(this).attr('href');
|
||
|
$("#J_iframe").attr('src',url);
|
||
|
// var this_length = this.parentNode.parentNode.children.length;
|
||
|
// alert(this.parentNode.parentNode.children.length);
|
||
|
/*for(var i=0;i<this_length;i++){
|
||
|
this.parentNode.parentNode.children[i].children[0].style="";
|
||
|
}*/
|
||
|
//for(var i=0;i<$("#side-menu a").length;i++){
|
||
|
// $("#side-menu a")[i].style="";
|
||
|
//}
|
||
|
|
||
|
//this.style.backgroundColor="#1d7dd4";
|
||
|
//this.style.fontWeight="bold";
|
||
|
//this.style.color="#fff";
|
||
|
return false;
|
||
|
});
|
||
|
});
|