图集1/4

正文 7496字数 1,715,430阅读


首页图片播放gif动图
在线生成合并图片 图片宽度x高度 建议比例 435:245
<style> .p-thumb{ position:relative; width: 192px; height: 108px; overflow:hidden; float:left; } .p-thumb img { width: 100%; height: 100%; } .quick-process { width: 95%; height: 5px; z-index: 10; position: absolute; margin: 5px auto 0; left: 0; right: 0; top: 0; bottom: 0; } .bg-process{ position: absolute; left: 0; top: 0; content: ""; height: 100%; width: 100%; background: #000; filter: alpha(opacity=50); -ms-filter: "alpha(opacity=50)"; opacity: .5; } .rate-process { display: inline-block; position: absolute; left: 0; top: 0; height: 100%; width: 0; background: #FFF; display: block; } .quick-view-layer{display:none;width:100%;height:100%;} .p-thumb .bg { position: absolute; top: auto; bottom: 0; left: 0; width: 100%; height: 46px; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAuCAYAAADp73NqAAAAAXNSR0IArs4c6QAAAC1JREFUCB1jYCAEWJiAKtAIZpAYKxYJsDqwBFgJmjacXDTz0Likm4ewCKyXCQBc7QDuqt9S0QAAAABJRU5ErkJggg==) repeat-x; } .p-thumb a { position: absolute; width: 100%; height: 100%; left: 0; top: 0; text-decoration: none; color: #fff; z-index: 2; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAM1BMVEVHcEwgwf8fwf8ewP8kxf8ewf8hwf8ewP8rzf8fv/8gwf8ewP8ewP8ewP8fwP8ewP8ev/9RwZ8zAAAAEHRSTlMAOEzPFGkk+Ap4XefwtcHb4XOsowAAAFhJREFUGNN90dsSgCAIBFCspLSL+/9fWyNNZbPIG+eFBUREtOCqOUhTtw6tTlzHjmbrErDqo/jpclSNphHYgq971WSamTKMPfsMYpF4eLamfxB2OvXtfccJAmUJw6aLTA0AAAAASUVORK5CYII=) 8px 8px no-repeat; } </style> <div class="p-thumb"> <a href="javascript:void(0)" data-href="#"> <img src="https://out.img.pan.lizhenqiu.com/Fqx-K2N299LjRzxdYoxC6BxgF_Pv" style="display:none;"> <div class="quick-view-layer" style="background:url(https://out.img.pan.lizhenqiu.com/Fqx-K2N299LjRzxdYoxC6BxgF_Pv);background-size:576px;"> <div class="quick-process"> <i class="bg-process"></i> <span class="rate-process"></span> </div> </div> </a> <i class="bg"></i> <img class="quic" src="https://out.img.pan.lizhenqiu.com/ae19105067a753001e919dab9cccc4b3"> </div> <div class="p-thumb" style="margin-left:20px;"> <a href="javascript:void(0)" data-href="#"> <img src="https://out.img.pan.lizhenqiu.com/Fp2-U7lhF2YjqXR0WZAyUdI2_RIc" style="display:none;"> <div class="quick-view-layer" style="background:url(https://out.img.pan.lizhenqiu.com/Fp2-U7lhF2YjqXR0WZAyUdI2_RIc);background-size:576px;"> <div class="quick-process"> <i class="bg-process"></i> <span class="rate-process"></span> </div> </div> </a> <i class="bg"></i> <img class="quic" src="https://out.img.pan.lizhenqiu.com/FlwsHBYbBXFzfIXE6Pt2kWn5KcHT"> </div> <script type="text/javascript"> window.onload = function(){ var oZuolist=document.getElementsByClassName('p-thumb'); for(var i=0;i<oZuolist.length;i++){ oZuolist[i].onmousemove=function(ev){ var imgcss=this.getElementsByClassName("quick-view-layer")['0']; imgcss.style.display='block'; this.getElementsByClassName("quic")['0'].style.display='none'; var pw=24;//每个区块宽度 192/8 var pn=8;//总区块 //console.log(ev.offsetX);//.path['0']['className'] var lwnum=Math.abs((ev.offsetX)/pw); var lw=lwnum/pn;//当前进度% lw=lw || 0.03; this.getElementsByClassName("rate-process")['0'].style.width=lw*100+'%'; var imgpw=Math.ceil(lwnum); var imgpwp=192;//背景每个区块宽度 576/3 if(imgpw<3){ //imgcss.style.backgroundPositionY='0px'; //imgcss.style.backgroundPositionX='-'+imgpw*imgpwp+'px'; imgcss.style.backgroundPosition='-'+imgpw*imgpwp+'px '+'0px'; }else{ imgcss.style.backgroundPosition='-'+(imgpw-3)*imgpwp+'px '+'-108px';; } //注意涉及到这个对象不能使用oZuolist[i],要用this代替 } oZuolist[i].onmouseout=function(ev){ this.getElementsByClassName("quick-view-layer")['0'].style.display='none'; this.getElementsByClassName("quic")['0'].style.display='block'; } } } </script>
Run code
Cut to clipboard



    <link href="//img.alicdn.com/tfs/TB1u5jLkMoQMeJjy0FpXXcTxpXa-200-200.jpg" rel="apple-touch-icon-precomposed" /> <script type="text/javascript"> // 去掉860的栅格 ipad (function(d) { var isMobile = !!((navigator.userAgent.toLowerCase().match(/android/i) || [''])[0]); /*检查移动设备是否为移动设备*/ if (navigator.userAgent.indexOf('iPad') > -1 || isMobile) { var m = d.createElement('meta'); m.setAttribute('name', 'viewport'); m.setAttribute('content', 'width=1210px'); d.head.appendChild(m); d.body.className += ' w1058'; }else{ var b = d.body; var c = b.className || ''; var w = (d.documentElement || b).clientWidth; if(w >= 1830){ c += 'w1740'; }else if( w <= 1830 && w > 1580){ c += 'w1490 '; }else if( w <= 1580 && w > 1292){ c += ' w1202 '; }else if( w <= 1292 ){ c += 'w1058'; } b.className = c; } })(document); var ykQHeader = { ltrim:function(s){ return s.replace( /^(\s*| *)/, "") }, rtrim:function(s){ return s.replace( /(\s*| *)$/, "") }, trim:function(s){ return this.ltrim(this.rtrim(s));}, doSearch: function () { this.form = document.getElementById('qheader_search'); if(!this.form){ return; } this.input = this.form.getElementsByTagName('input')[0]; var q = this.trim(this.input.value), url = '', stat = 'spm=a2hww.11359951.#qheader_search~10'; if (window.logPvid) { stat += '&_rp=' + window.logPvid; } if (q == '') { url = '//www.soku.com?inner' + ('&' + stat); } else { if (this.form.action.indexOf('/q_') === -1) { q = encodeURIComponent(q); url = this.form.action + '/q_' + q + ('?' + stat); } else { url = this.form.action + ('&' + stat); } } window.open(url); this.form.action = '//www.soku.com/search_video'; return false; } } </script>
    Run code
    Cut to clipboard