|
@@ -10,11 +10,11 @@ $(function () {
|
|
|
//当前宽度
|
|
|
$thisIndex = $(this).index();
|
|
|
if((typeof(myPageNavIsNormal)!="undefined"&&myPageNavIsNormal==true)||$href.indexOf("supsearch")>-1||$href.indexOf("bidsearchforent")>-1||$href.indexOf("promotional/topics")>-1||$href.indexOf("list")>-1||$href.indexOf("article/content")>-1||$href.indexOf("article/bdprivate")>-1||$href.indexOf("article/mailprivate")>-1||$href.indexOf("article/bdcontent")>-1||$href.indexOf("/jypc/toPushView")>-1||$href.indexOf("/jyblog")>-1||$href.indexOf("/dataExport")>-1||$href.indexOf("/front/dataService.html")>-1||$href.indexOf("/front/course")>-1||$href.indexOf("/front/dataexport")>-1){
|
|
|
- $navLi.find("a").css({"color":"#252627"});
|
|
|
+ $navLi.find("a:not(.link)").css({"color":"#252627"});
|
|
|
}else{
|
|
|
- $navLi.find("a").css({"color":"#fff"});
|
|
|
+ $navLi.find("a:not(.link)").css({"color":"#fff"});
|
|
|
}
|
|
|
- $(this).find("a").css({
|
|
|
+ $(this).find("a:not(.link)").css({
|
|
|
"color": "#2cb7ca"
|
|
|
});
|
|
|
$slider.css({
|
|
@@ -35,9 +35,6 @@ $(function () {
|
|
|
$(".public-nav .items").css("display","none");
|
|
|
});
|
|
|
|
|
|
- $(".public-nav .items span").on("click",function(){
|
|
|
- window.location.href=$(this).attr("attrhref");
|
|
|
- })
|
|
|
});
|
|
|
//
|
|
|
function selcetIndexNav(number) {
|
|
@@ -54,11 +51,11 @@ function seclectNavLi(el, $index) {
|
|
|
/*获取当前这个元素的css*/
|
|
|
var $thisCss = el.eq($index).width();
|
|
|
if((typeof(myPageNavIsNormal)!="undefined"&&myPageNavIsNormal==true)||$href.indexOf("supsearch")>-1||$href.indexOf("bidsearchforent")>-1||$href.indexOf("promotional/topics")>-1||$href.indexOf("list")>-1||$href.indexOf("article/content")>-1||$href.indexOf("article/bdprivate")>-1||$href.indexOf("article/mailprivate")>-1||$href.indexOf("article/bdcontent")>-1||$href.indexOf("/jyblog")>-1||$href.indexOf("/dataExport")>-1||$href.indexOf("/front/dataService.html")>-1||$href.indexOf("/front/course")>-1||$href.indexOf("/front/dataexport")>-1){
|
|
|
- el.find("a").css({"color":"#252627"});
|
|
|
+ el.find("a:not(.link)").css({"color":"#252627"});
|
|
|
}else{
|
|
|
- el.find("a").css({"color":"#fff"});
|
|
|
+ el.find("a:not(.link)").css({"color":"#fff"});
|
|
|
}
|
|
|
- el.eq($index).find("a").css("color", "#2cb7ca");
|
|
|
+ el.eq($index).find("a:not(.link)").css("color", "#2cb7ca");
|
|
|
if(!$index) {
|
|
|
$index = 0;
|
|
|
} else {
|