var MsgInfoShowHomeDw = 0, MsgInfoShowHomeDh = 0; window.MsgInfoShowHomeD_ = function (w, h, bg) { // function begin MsgInfoShowHomeDw = w; MsgInfoShowHomeDh = h; $('.BlogListHTML').each(function(){ $(this).find('.meMsg_MsgBlk img').each(function(){ if ($(this).parent().is('a')) $(this).unwrap(); }); $(this).find('.meMsg_MsgBlk a').each(function(){ this.href = 'javascript:;'; }); $(this).css('cursor','pointer').click(function(){ iWin.open_('', MsgInfoShowHomeDw, MsgInfoShowHomeDh); $('.iWinBorder').addClass('MsgInfoShowHomeD'); iWin.setContentHTML_($(this).html()); $('.iWinContent .meMsg_MsgContentBlk .meMsg_Content').show(); $('.iWinContent .meMsg_MsgList').show(); var BlkZ = $('.iWinContent .meMsg_MsgBlkZ')[0]; var msgXmlID = BlkZ.id.split('_'); msgXmlID = msgXmlID[1]; var ImgX = $('.iWinContent #meMsg_'+msgXmlID+'_ItemFile_1').html(); var s=new Array(), i=0; s[i++] = '
'; if (ImgX) s[i++] = '
'; s[i++] = '
'; s[i++] = '
'; $(BlkZ).html(s.join('')); $('.iWinContent #meMsg_'+msgXmlID+'_MsgContentBlk').show(); $('.tdMsgInfoShowHomeDBlk').append($('.iWinContent #meMsg_'+msgXmlID+'_MsgContentBlk')[0]); $('.iWinContent .meMsg_MsgListBlk .meMsg_MsgTitle').css('cursor','pointer').click(function(){ var nItem = $(this).find('img')[0].id.split('_'); nItem = nItem[3]; $('#MsgInfoShowHomeDImg').fadeOut(1000,function(){ this.src = $('#meMsg_'+msgXmlID+'_ItemFile_'+nItem).text(); $('#MsgInfoShowHomeDImg').fadeIn(1000); }); var oImg = new Image(); oImg.src = $('#meMsg_'+msgXmlID+'_ItemFile_'+nItem).text(); }); }); }); } // function end