|
@@ -10,13 +10,17 @@ $(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:not(.link)").css({"color":"#252627"});
|
|
|
+ $navLi.find("a:not(.link)").css({"color":"#252627"});
|
|
|
}else{
|
|
|
$navLi.find("a:not(.link)").css({"color":"#fff"});
|
|
|
+ $navLi.find(".link").css({"color":"#000"});
|
|
|
}
|
|
|
$(this).find("a:not(.link)").css({
|
|
|
"color": "#2cb7ca"
|
|
|
});
|
|
|
+ $(this).find(".link").css({
|
|
|
+ "color": "#000"
|
|
|
+ });
|
|
|
$slider.css({
|
|
|
"width": $thisWidth + "px",
|
|
|
left: $thisIndex * $thisWidth + $thisIndex * 20 + "px", //20是,margin偏移
|
|
@@ -51,9 +55,10 @@ 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:not(.link)").css({"color":"#252627"});
|
|
|
+ el.find("a:not(.link)").css({"color":"#252627"});
|
|
|
}else{
|
|
|
el.find("a:not(.link)").css({"color":"#fff"});
|
|
|
+ el.find(".link").css({"color":"#000"});
|
|
|
}
|
|
|
el.eq($index).find("a:not(.link)").css("color", "#2cb7ca");
|
|
|
if(!$index) {
|