var n, img, imgb, title, cont, url, aTag, aEnd, src, html = new Array(); var inc_msg_JsShowImg_D4_js_67648_N = 0; var inc_msg_JsShowImg_D4_js_67648_ShowN = 0; var inc_msg_JsShowImg_D4_js_67648_TimeOut; if (typeof(JsShowImg_beforeInit_)=='function') JsShowImg_beforeInit_(67648); n = 0; while (n <= 100) { n++; if ($('#meMsg_67648_MsgListBlk .meMsg_MsgTitle_'+n).css('display')=='none') continue; if (img = $('#meMsg_67648_ItemImg_'+n)[0]) { inc_msg_JsShowImg_D4_js_67648_N = n; title = $('#meMsg_67648_ItemTitle_'+n); title = (title.length) ? ''+title.html()+'' : ''; cont = $('#meMsg_67648_ItemContent_'+n); cont = (cont.length) ? '
'+cont.html()+'
' : ''; if (url = $('#meMsg_67648_ItemURL_'+n)[0]) { aTag = ''; aEnd= ''; url.href = 'javascript:void(0);'; url.target = ''; } else { aTag = ''; aEnd = ''; } if (src = $('#meMsg_67648_ItemFile_'+n)[0]) src = src.innerHTML; else src = img.src; //=== bc = ''; if (src.indexOf('#')>=0) { src = src.split('#'); bc = src[2]; src = src[0]; } //=== if (/\.avi|\.mp4/.test(src)) imgb = ''; else if (jsvJsShowImgPosition_67648=='cover') { ns_setCSS_('.imgJsShowImgCover { background-size:cover; background-position:top center; }\r\n'); imgb = ''; } else imgb = ''; $(img).attr('n', n); img.className = 'b0'; $(img).click(function(){JsShowImg_67648_show_($(this).attr('n'), 2);}); if (jsvJsShowImgPosition_67648=='cover') { if (!html.length) html[0] = '
'+aTag+imgb+title+cont+aEnd+'
'; html[n] = ''; } else { if (!html.length) html[0] = '
'+aTag+imgb+title+cont+aEnd+'
'; html[n] = ''; } } else break; } if (typeof(jsvJsShowImgPosition_67648)=='undefined' || jsvJsShowImgPosition_67648=='---') $('#meMsg_67648_MsgBlkZ').css({position:'relative'}); else if (jsvJsShowImgPosition_67648=='bg' || jsvJsShowImgPosition_67648=='cover') { $('#meMsg_67648_MsgBlkZ').css({position:'fixed', zIndex:-1, left:0, top:0, width:'100%', height:'100%'}); $('body').css({background:'transparent'}); } else if (jsvJsShowImgPosition_67648=='bgz') { $('#meMsg_67648_MsgBlkZ').css({position:'relative'}); $('#meMsg_67648_MsgBlkZ').wrap('
'); $('#meMsg_67648_MsgBlkBgZ').css({position:'absolute', zIndex:-1, left:0, width:'100%', height:'auto'}); $('body').css({background:'transparent'}); } $('#meMsg_67648_MsgBlkZ').html(html.join('')); $('#meMsg_67648_MsgMain').addClass('JsShowImg'); $('.divJsShowImgB').css({width:'100%'}); $(document).ready(function(){ setTimeout(function(){ $('#meMsg_67648_MsgListBlk').fadeIn(); var jsvJsShowImgPosD = 0; if (typeof(jsvJsShowImgPosD_67648)!='undefined') if (jsvJsShowImgPosD_67648!='') jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_67648); if (typeof(jsvJsShowImgPos_67648)!='undefined') switch(jsvJsShowImgPos_67648) { case 'hide': $('#meMsg_67648_MsgList').hide(); break; case 'hideimg': $('#meMsg_67648_MsgListBlk').hide(); break; case 'left': case 'right': $('#meMsg_67648_MsgList').addClass(jsvJsShowImgPos_67648).css('float', ((jsvJsShowImgPos_67648=='right')?'left':'right')); $('#meMsg_67648_MsgBlkZ').css('float', jsvJsShowImgPos_67648); break; case 'bindbottomwin': JsShowImg_67648_bindbottomwin_(); $(window).scroll(function(){ JsShowImg_67648_bindbottomwin_(); }).resize(function(){ JsShowImg_67648_bindbottomwin_(); }); setTimeout('JsShowImg_67648_bindbottomwin_()', 2000); break; case 'bindbottom': var h = $('#meMsg_67648_MsgList').outerHeight()+jsvJsShowImgPosD; $('#meMsg_67648_MsgListBlk').addClass('bindbottom').css({position:'relative',top:-h,height:0,boxSizing:'border-box'}).show(); break; case 'bindleft': $(window).resize(function(){ $('#meMsg_67648_MsgList').addClass('bindleft').css({position:'absolute'}); var p = $('#meMsg_67648_MsgBlkZ').offset(); p.left = p.left + jsvJsShowImgPosD; var h = $('#meMsg_67648_MsgBlkZ').outerHeight(); $('#meMsg_67648_MsgList').css(p).outerHeight(h); }); $(window).resize(); break; case 'bindright': $(window).resize(function(){ $('#meMsg_67648_MsgList').addClass('bindright').css({position:'absolute'}); var p = $('#meMsg_67648_MsgBlkZ').offset(); var h = $('#meMsg_67648_MsgBlkZ').outerHeight(); var w = $('#meMsg_67648_MsgList').outerWidth(); p.left = p.left + $('#meMsg_67648_MsgBlkZ').outerWidth() - w - jsvJsShowImgPosD; $('#meMsg_67648_MsgList').css(p).outerHeight(h); }); $(window).resize(); break; case 'bindleftc': $(window).resize(function(){ $('#meMsg_67648_MsgList').addClass('bindleftc').css({position:'absolute'}); var p = $('#meMsg_67648_MsgBlkZ').offset(); p.left = p.left + jsvJsShowImgPosD; var h0 = $('#meMsg_67648_MsgBlkZ').height(); var h = $('#meMsg_67648_MsgList').height(); p.top = p.top + (h0 - h)/2; $('#meMsg_67648_MsgList').css(p); }); $(window).resize(); break; case 'bindrightc': $(window).resize(function(){ $('#meMsg_67648_MsgList').addClass('bindrightc').css({position:'absolute'}); var p = $('#meMsg_67648_MsgBlkZ').offset(); var h0 = $('#meMsg_67648_MsgBlkZ').height(); var h = $('#meMsg_67648_MsgList').height(); var w = $('#meMsg_67648_MsgList').outerWidth(); p.left = p.left + $('#meMsg_67648_MsgBlkZ').outerWidth() - w - jsvJsShowImgPosD; p.top = p.top + (h0 - h)/2; $('#meMsg_67648_MsgList').css(p); }); $(window).resize(); break; default: break; } if (typeof(JsShowImg_done_)=='function') JsShowImg_done_('67648'); }, 500); }); window.JsShowImg_67648_bindbottomwin_ = function () { // function begin var jsvJsShowImgPosD = 0; if (typeof(jsvJsShowImgPosD_67648)!='undefined') if (jsvJsShowImgPosD_67648!='') jsvJsShowImgPosD = parseInt(jsvJsShowImgPosD_67648); $('#meMsg_67648_MsgListBlk').addClass('bindbottomwin').css({position:'absolute'}); var p = $('#div_67648_x').offset(); var w = $('#div_67648_x').outerWidth(); var h = $('#meMsg_67648_MsgListBlk').outerHeight(); p.top = p.top + $('#div_67648_1').outerHeight() - h - jsvJsShowImgPosD; var top1 = $(window).height() + $(window).scrollTop() - $('#meMsg_67648_MsgListBlk').outerHeight() - jsvJsShowImgPosD; if (top1 < p.top) p.top = top1; if (imgb = $('#meMsg_67648_ItemFile_'+inc_msg_JsShowImg_D4_js_67648_ShowN)[0]) imgb = imgb.innerHTML; else imgb = ''; if (!/\.mp4/.test(imgb)) $('#meMsg_67648_MsgListBlk').css(p).outerWidth(w); } // function end window.JsShowImg_67648_show_ = function (n, sec2) { // function begin var m = 0, imgb; if (!sec2) sec2 = 1; if (inc_msg_JsShowImg_D4_js_67648_TimeOut) clearTimeout(inc_msg_JsShowImg_D4_js_67648_TimeOut); if (inc_msg_JsShowImg_D4_js_67648_ShowN) { $('#div_67648_0').html($('#div_67648_'+inc_msg_JsShowImg_D4_js_67648_ShowN).html()).show(); $('#div_67648_0').find('.meMsg_ItemTitle, .meMsg_ItemContent').hide(); $('#div_67648_x').html($('#div_67648_'+n).html()); $('#div_67648_'+inc_msg_JsShowImg_D4_js_67648_ShowN).hide(); $('#div_67648_'+n).fadeIn(500, function(){ $('#div_67648_0').hide(); }); $('body').removeClass($('#div_67648_'+inc_msg_JsShowImg_D4_js_67648_ShowN).attr('bodyclass')).addClass($('#div_67648_'+n).attr('bodyclass')); } else { $('#div_67648_'+n).show(); $('body').addClass($('#div_67648_'+n).attr('bodyclass')); } inc_msg_JsShowImg_D4_js_67648_ShowN = n; for (m=1; m<=inc_msg_JsShowImg_D4_js_67648_N; m++) if (img = $('#meMsg_67648_ItemImg_'+m)[0]) img.className = (m==n) ? 'b1' : 'b0'; var sec = parseInt(jsvJsShowImgSec_67648); if ($('#div_67648_'+n+' video source').length) { src = $('#div_67648_'+n+' video source')[0].src.split('#'); if (src[2]) eval(src[2]); } inc_msg_JsShowImg_D4_js_67648_TimeOut = setTimeout('JsShowImg_67648_roll_()', sec*sec2*1000); } // function end window.JsShowImg_67648_roll_ = function () { // function begin var n = inc_msg_JsShowImg_D4_js_67648_ShowN; n++; if (n > inc_msg_JsShowImg_D4_js_67648_N) n = 1; JsShowImg_67648_show_(n); } // function end JsShowImg_67648_show_(1); window.JsShowImg_67648_rollNext_ = function () { // function begin JsShowImg_67648_roll_(); } // function end window.JsShowImg_67648_rollPrev_ = function () { // function begin var n = inc_msg_JsShowImg_D4_js_67648_ShowN; n--; if (n == 0) n = inc_msg_JsShowImg_D4_js_67648_N; JsShowImg_67648_show_(n); } // function end window.JsShowImg_rollNext_ = function () { // function begin JsShowImg_67648_rollNext_(); } // function end window.JsShowImg_rollPrev_ = function () { // function begin JsShowImg_67648_rollPrev_(); } // function end