亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

請問如何修改網頁首頁的圖片為全屏,并能進行圖片轉換

<script type=text/javascript>


var t = n = 0, count = $(".content a").size();


$(function(){


var play = ".play";


var playText = ".play .text";


var playNum = ".play .num a";


var playConcent = ".play .content a";



$(playConcent + ":not(:first)").hide();


$(playText).html($(playConcent + ":first").find("img").attr("alt"));


$(playNum + ":first").addClass("on");


$(playText).click(function(){window.open($(playConcent + ":first").attr('href'), "_blank")});


$(playNum).click(function() {


? var i = $(this).text() - 1;


? n = i;


? if (i >= count) return;


? $(playText).html($(playConcent).eq(i).find("img").attr('alt'));


? $(playText).unbind().click(function(){window.open($(playConcent).eq(i).attr('href'), "_blank")})


? $(playConcent).filter(":visible").hide().parent().children().eq(i).fadeIn(1200);


? $(this).removeClass("on").siblings().removeClass("on");


? $(this).removeClass("on2").siblings().removeClass("on2");


? $(this).addClass("on").siblings().addClass("on2");


});


t = setInterval("showAuto()", 5000);


$(play).hover(function(){clearInterval(t)}, function(){t = setInterval("showAuto()", 5000);});


})


function showAuto(){


n = n >= (count - 1) ? 0 : ++n;


$(".num a").eq(n).trigger('click');


}


</script>

<script type=text/javascript>


var t = n = 0, count = $(".content a").size();


$(function(){


var play = ".play";


var playText = ".play .text";


var playNum = ".play .num a";


var playConcent = ".play .content a";



$(playConcent + ":not(:first)").hide();


$(playText).html($(playConcent + ":first").find("img").attr("alt"));


$(playNum + ":first").addClass("on");


$(playText).click(function(){window.open($(playConcent + ":first").attr('href'), "_blank")});


$(playNum).click(function() {


? var i = $(this).text() - 1;


? n = i;


? if (i >= count) return;


? $(playText).html($(playConcent).eq(i).find("img").attr('alt'));


? $(playText).unbind().click(function(){window.open($(playConcent).eq(i).attr('href'), "_blank")})


? $(playConcent).filter(":visible").hide().parent().children().eq(i).fadeIn(1200);


? $(this).removeClass("on").siblings().removeClass("on");


? $(this).removeClass("on2").siblings().removeClass("on2");


? $(this).addClass("on").siblings().addClass("on2");


});


t = setInterval("showAuto()", 5000);


$(play).hover(function(){clearInterval(t)}, function(){t = setInterval("showAuto()", 5000);});


})


function showAuto(){


n = n >= (count - 1) ? 0 : ++n;


$(".num a").eq(n).trigger('click');


}


</script>


正在回答

1 回答

fullpage.js

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
FullPage.js全屏滾動插件
  • 參與學習       43803    人
  • 解答問題       217    個

基于jQuery的全屏滾動效果插件,讓翻頁顯得格外的高端大氣上檔次

進入課程

請問如何修改網頁首頁的圖片為全屏,并能進行圖片轉換

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號