HTML轮播图片代码,带解释

2020-04-30 科技 73阅读







五图三屏轮播js特效代码<&><br><meta name="Keywords" content="五图三屏轮播js特效代码" &> <br><meta name="description" content="五图三屏轮播js特效代码" &> <br><link href="<a href=" http: target="_blank" rel="nofollow noopener">http://img.chinaz.com/max-templates/passport/styles/topbar.css" type="text/css" rel="Stylesheet" /><br> <br> <link href="/style/style_kj.css" type="text/css" rel="stylesheet" &> <br> <br> <link href="/style/demo.css" type="text/css" rel="stylesheet" &> <br> <br> <script type="text/javascript" src="/style/js/jquery-1.2.pack.js"></script><br /> <br /><script type="text/javascript"><br /> <br />var theme_list_open = false;<br /> <br />$(document).ready(function () {<br /> <br /> function fixHeight() {<br /> <br /> var headerHeight = $("#switcher").height();<br /> <br /> $("#iframe").attr("height", $(window).height()-84 + "px");<br /> <br /> }<br /> <br /> $(window).resize(function () {<br /> <br /> fixHeight();<br /> <br /> }).resize();<br /> <br /> //响应式预览<br /> <br /> $('.icon-monitor').addClass('active');<br /> <br /> $(".icon-mobile-3").click(function () {<br /> <br /> $("#by").css("overflow-y", "auto");<br /> <br /> $('#iframe-wrap').removeClass().addClass('mobile-width-3');<br /> <br /> $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');<br /> <br /> $(this).addClass('active');<br /> <br /> return false;<br /> <br /> });<br />$(".icon-mobile-2").click(function () {<br /> <br /> $("#by").css("overflow-y", "auto");<br /> <br /> $('#iframe-wrap').removeClass().addClass('mobile-width-2');<br /> <br /> $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');<br /> <br /> $(this).addClass('active');<br /> <br /> return false;<br /> <br /> });<br />$(".icon-mobile-1").click(function () {<br /> <br /> $("#by").css("overflow-y", "auto");<br /> <br /> $('#iframe-wrap').removeClass().addClass('mobile-width');<br /> <br /> $('.icon-tablet,.icon-mobile,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');<br /> <br /> $(this).addClass('active');<br /> <br /> return false;<br /> <br /> });<br />$(".icon-tablet").click(function () {<br /> <br /> $("#by").css("overflow-y", "auto");<br /> <br /> $('#iframe-wrap').removeClass().addClass('tablet-width');<br /> <br /> $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');<br /> <br /> $(this).addClass('active');<br /> <br /> return false;<br /> <br /> });<br />$(".icon-monitor").click(function () {<br /> <br /> $("#by").css("overflow-y", "hidden");<br /> <br /> $('#iframe-wrap').removeClass().addClass('full-width');<br /> <br /> $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');<br /> <br /> $(this).addClass('active');<br /> <br /> return false;<br /> <br /> });<br /> <br />});<br /> <br /></script><br /> <br /><script type="text/javascript"><br /> <br />function Responsive($a) {<br /> <br /> if ($a == true) $("#Device").css("opacity", "100");<br /> <br /> if ($a == false) $("#Device").css("opacity", "0");<br /> <br /> $('#iframe-wrap').removeClass().addClass('full-width');<br /> <br /> $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');<br /> <br /> $(this).addClass('active');<br /> <br /> return false;<br /> <br />};<br /> <br /></script><br /> <br /></head><br /> <br /><body id="by" style="overflow-y: hidden" ><br /> <br /><div id="switcher"><br /> <br /> <div class="center"><br /> <br /> <ul><br /> <br /> <li class="logoTop">在线预览!</li><br /> <br /> <div id="Device"><br /> <br /> <li class="device-monitor"><a href="javascript:"><div class="icon-monitor"></div></a></li><br /> <br /> <li class="device-mobile"><a href="javascript:"><div class="icon-tablet"> </div></a></li><br /> <br /> <li class="device-mobile"><a href="javascript:"><div class="icon-mobile-1"> </div></a></li><br /> <br /> <li class="device-mobile-2"><a href="javascript:"><div class="icon-mobile-2"> </div></a></li><br /> <br /> <li class="device-mobile-3"><a href="javascript:"><div class="icon-mobile-3"> </div></a></li><br /> <br /> </div><br /></ul><br /> <br /> <div class="muen_top"><br /> <br /> <a href="/" class="indexactive">首页</a><br /> <br /> <a href="/tupian/" class="l11active" target="_blank">高清图片</a><br /> <br /> <a href="/moban/" class="l12active" target="_blank">模板</a><br /> <br /> <a href="/ppt/" class="l726active" target="_blank">ppt模板</a><br /> <br /> <a href="/tubiao/" class="l49active" target="_blank">图标</a><br /> <br /> <a href="/kuzhan/" class="l713active" target="_blank">酷站</a><br /> <br /> <a href="<a href="http://font.chinaz.com/" target="_blank" rel="nofollow noopener">http://font.chinaz.com/" class="l13active" target="_blank">字体</a><br /> <br /> <a href="/psd/" class="l713active" target="_blank">PSD素材</a><br /> <br /> <a href="/shiliang/" class="l15active" target="_blank">矢量图</a><br /> <br /> <a href="/yinxiao/" class="l713active" target="_blank">音效</a><br /> <br /> <a href="/biaoqing/" class="l560active" target="_blank">表情</a><br /> <br /> <a href="<a href="http://desk.chinaz.com/" target="_blank" rel="nofollow noopener">http://desk.chinaz.com/" class="l713active" target="_blank">壁纸</a><br /> <br /> <a href="/donghua/" class="l653active" target="_blank">动画</a><br /> <br /> <a href="/jiaoben/" target="_blank">脚本</a><br /> <br /> <a href="/zhuanti/" target="_blank">专题</a><br /> <br /> </div><br /> <br /> <div class="tougao"><br /> <br /> <a href="<a href="http://sc.chinaz.com/tougao.html" target="_blank" rel="nofollow noopener">http://sc.chinaz.com/tougao.html" target="_blank">我要投稿</a><br /> <br /> </div><br /> <br /> </div><br /> <br /></div><br /> <br /><div id="iframe-wrap"><br /><iframe id="iframe" src="<a href="http://demo.sc.chinaz.com//Files/DownLoad/webjs1/201604/jiaoben4160/" target="_blank" rel="nofollow noopener">http://demo.sc.chinaz.com//Files/DownLoad/webjs1/201604/jiaoben4160/" frameborder="0" width="100%"> </iframe><br /></div><br /> <br /><div id="footer-notice" class="kj_bottom"><br /> <br /> <div style=" width:980px; margin:0 auto"><br /> <br /> <p class="left cut"><br /> <br /> <span>名称:</span><br /> <br /> <a href="/jiaoben/160419378420.htm" title="点击下载" class="down" target="_blank">五图三屏轮播js特效代码</a><br /> <br /> <span>类型:</span><br /> <br /> <a href="/jiaoben/" title="脚本" target="_blank">脚本</a><br /><span>标签:</span><a href="/tag_jiaoben/js.html" target="_blank">js</a><a href="/tag_jiaoben/JiuGongGe.html" target="_blank">九宫格</a><a href="/tag_jiaoben/TuPianQieHuan.html" target="_blank">图片切换</a><a href="/tag_jiaoben/TuPianLunBo.html" target="_blank">图片轮播</a><br /></p><br /> <br /> <p class="left"><br /> <br /> <span>分享到:</span><br /> <br /> <a title='分享到新浪微博' href="javascript:void(0)" id="fxwb" class="sn">新浪</a><br /> <br /> <a title='分享到腾讯微博' href='javascript:void(0)' onclick=posttoWb() class="tx">腾讯</a><br /> <br /> <a title="分享到QQ空间" href="javascript:window.open('<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" target="_blank" rel="nofollow noopener">http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(document.location.href));void(0)" class="qq">QQ空间</a><br /> <br /> </p><br /> <br /> <div class="clear"></div><br /> <br /> </div><br /> <br /></div><br /><script type="text/javascript"><br />var description = '五图三屏轮播js特效代码: 五图三屏轮播js特效代码是一款ZHIME织蜜内衣丝袜五图三屏图片切换特效。';<br />var sendT = {<br /> <br /> getHeader: function () {<br /> <br /> var g_title = description;<br /> <br /> var re = /<[^<>]*?font[^<>]*?>/gi;<br /> <br /> g_title = g_title.replace(re, "");<br /> <br /> return g_title;<br /> <br /> },<br /> <br /> getFirstImgSrc: function () {<br /> <br /> var allPageTags = document.getElementsByTagName("div");<br /> <br /> for (var i = 0; i < allPageTags.length; i++) {<br /> <br /> if (allPageTags[i].className == 'downtext') {<br /> <br /> if (allPageTags[i].getElementsByTagName("img")[0] && allPageTags[i].getElementsByTagName("img")[0].width > 200) {<br /> <br /> return allPageTags[i].getElementsByTagName("img")[0].src;<br /> <br /> }<br /> <br /> else {<br /> <br /> return null;<br /> <br /> }<br />}<br /> <br /> }<br /> <br /> },<br /> <br /> getContent: function () {<br /> <br /> var allPageTagss = document.getElementsByTagName("div");<br /> <br /> for (var i = 0; i < allPageTagss.length; i++) {<br /> <br /> if (allPageTagss[i].className == 'downtext') {<br /> <br /> return allPageTagss[i].innerHTML;<br /> <br /> }<br /> <br /> }<br /> <br /> }<br /> <br /> }<br />document.getElementById("fxwb").onclick = function () {<br /> <br /> (function (s, d, e, r, l, p, t, z, c) {<br /> <br /> var f = '<a href="http://service.weibo.com/share/share.php?appkey=872996044&" target="_blank" rel="nofollow noopener">http://service.weibo.com/share/share.php?appkey=872996044&', u = z || d.location, p = ['url=', e(u), '&title=', e(sendT.getHeader()), '&source=', e(r), '&sourceUrl=', e(l), '&content=', c || 'gb2312', '&pic=', e(p || '')].join('');<br /> <br /> function a() {<br /> <br /> if (!window.open([f, p].join(''), 'mb', ['toolbar=0,status=0,resizable=1,width=440,height=430,left=', (s.width - 440) / 2, ',top=', (s.height - 430) / 2].join(''))) u.href = [f, p].join('');<br /> <br /> };<br /> <br /> if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0); else a();<br /> <br /> })(screen, document, encodeURIComponent, 'CHINAZ', '<a href="http://sc.chinaz.com/" target="_blank" rel="nofollow noopener">http://sc.chinaz.com/', sendT.getFirstImgSrc(), null, null, null);<br /> <br /> }<br />function posttoWb() {<br /> <br /> var _tt = description;<br /> <br /> var _t = encodeURI(_tt.replace(/\s+$/, ''));<br /> <br /> var _url = encodeURI(window.location);<br /> <br /> var _appkey = encodeURI("258efff116d2466da9b7513cbae7de0b");<br /> <br /> var _site = encodeURI('sc.chinaz.com');<br /> <br /> var _pic = sendT.getFirstImgSrc();<br /> <br /> var _u = '<a href="http://v.t.qq.com/share/share.php?title=" target="_blank" rel="nofollow noopener">http://v.t.qq.com/share/share.php?title=' + _t + '&url=' + _url + '&appkey=' + _appkey + '&site=' + _site + '&pic=' + _pic;<br /> <br /> window.open(_u, '转播到腾讯微博', 'width=700, height=580, top=320, left=180, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no');<br /> <br /> }<br /></script><br /> <br /><script type="text/javascript" src="/js/softinfo.js.aspx?id=534084" defer="defer" charset="UTF-8"></script><br /> <br /><div style="display:none"><br /> <br /><script src="<a href="http://s4.cnzz.com/stat.php?id=300636&web_id=300636" target="_blank" rel="nofollow noopener">http://s4.cnzz.com/stat.php?id=300636&web_id=300636" language="JavaScript"></script><br /> <br /></div><br /> <br /></body><br /> <br /></html> <br />自己修改一下就可以了</script></&>
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com