盗用sina的爱问投诉代码实现网页对话框。

None.gif < html >
None.gif
< head >
None.gif    
< title > 请教 爱问知识人 </ title >
None.gif    
< meta  http-equiv ="Content-Type"  content ="text/html; charset=gb2312" >    
None.gif
None.gif    
< script  language ="javascript"  src ="open/dialog.js" ></ script >
None.gif   
None.gif
</ head >
None.gif
< body >
None.gif    
< class ="c6nul"  onclick ="openWindow('window.htm', '470', '350', '举报');return false;"
None.gif        href
="http://iask.sina.com.cn/b/5223115.html#" > 举报 </ a >
None.gif
</ body >
None.gif
</ html >
None.gif
None.gif
None.gif

 

None.gif < input  type ="button"  value =" 取 消 "  onClick ="new parent.dialog().reset();" >
None.gif
None.gif

 

None.gif var  auto_close_hand;
None.gif
var  auto_close_hand1;
None.gif
var  auto_close_hand2;
None.gif
var  is_opera_d   =  (navigator.userAgent.toLowerCase().indexOf('opera')  !=   - 1 );
None.gifString.prototype.trim 
=   function ()
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif 
return this.replace(/(^| ]*)|([ | ]*$)/g, "");
ExpandedBlockEnd.gif}

None.gif
None.gif
function  $(s)
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif 
if(document.getElementById)
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
return eval('document.getElementById("' + s + '")');
ExpandedSubBlockEnd.gif }

InBlock.gif 
else
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
return eval('document.all.' + s);
ExpandedSubBlockEnd.gif }

ExpandedBlockEnd.gif}

None.gif
function  $$(s)
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif 
return document.frames?document.frames[s]:$(s).contentWindow;
ExpandedBlockEnd.gif}

None.gif
function  $c(s)
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif 
return document.createElement(s);
ExpandedBlockEnd.gif}

None.gif
function  swap(s,a,b,c)
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif $(s)[a]
=$(s)[a]==b?c:b;
ExpandedBlockEnd.gif}

None.gif
function  exist(s)
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif 
return $(s)!=null;
ExpandedBlockEnd.gif}

None.gif
function  dw(s)
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif document.write(s);
ExpandedBlockEnd.gif}

None.gif
function  hide(s)
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif $(s).style.display
=$(s).style.display=="none"?"":"none";
ExpandedBlockEnd.gif}

None.gif
function  isNull(_sVal)
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif 
return (_sVal == "" || _sVal == null || _sVal == "undefined");
ExpandedBlockEnd.gif}

None.gif
function  removeNode(s)
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif 
if(exist(s))
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  $(s).innerHTML 
= '';
InBlock.gif  $(s).removeNode
?$(s).removeNode():$(s).parentNode.removeChild($(s));
ExpandedSubBlockEnd.gif }

ExpandedBlockEnd.gif}

None.gif
None.gif
function  dialog()
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif 
var titile = '';
InBlock.gif 
var auto = 'y';
InBlock.gif 
var width = 240;
InBlock.gif 
var height = 120;
InBlock.gif 
var src = ""
InBlock.gif 
var sFunc = '<input id="dialogOk" type="button" value=" 确 定 " onclick="new dialog().reset();" /> <input id="dialogCancel" type="button" value=" 取 消 " onclick="new dialog().reset();" />';
InBlock.gif 
var sClose = '<input type="image" id="dialogBoxClose" onclick="new dialog().reset();" src="open/close.gif" border="0" width="16" height="16" align="absmiddle" />';
InBlock.gif 
var sBody = '\
InBlock.gif  
<table id="dialogBodyBox" border="0" align="center" cellpadding="0" cellspacing="6" width="100%">\
InBlock.gif   
<tr height="10"><td colspan="4"></td></tr>\
InBlock.gif   
<tr><td colspan="4" align="center">\
InBlock.gif   
<div id="dialogMsgDiv" style="text-align:center"><div id="dialogMsg" style="font-size:12px;line-height:180%;"></div></div>\
InBlock.gif   
</td></tr>\
InBlock.gif   
<tr><td id="dialogFunc" colspan="4" align="center">+ sFunc + '</td></tr>\
InBlock.gif   
<tr height="5"><td colspan="4" align="center"></td></tr>\
InBlock.gif  
</table>\
InBlock.gif ';
InBlock.gif 
var sIfram = '\
InBlock.gif  
<iframe id="dialogIframBG" name="dialogIframBG" frameborder="0" marginheight="0" marginwidth="0" hspace="0" vspace="0" scrolling="no" style="position:absolute;z-index:8;display:none;"></iframe>\
InBlock.gif ';
InBlock.gif
InBlock.gif 
var sBox = '\
InBlock.gif  
<div id="dialogBox" style="border:1px solid #1e4775;display:none;z-index:10;width:'+width+'px;">\
InBlock.gif  
<table width="100%" border="0" cellpadding="0" cellspacing="0">\
InBlock.gif   
<tr height="24" bgcolor="#6795B4">\
InBlock.gif    
<td>\
InBlock.gif     
<table onselectstart="return false;" style="-moz-user-select:none;" width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#5499dc;  height:25px; border-top:1px solid #92c3ec;">\
InBlock.gif      
<tr>\
InBlock.gif       
<td width="6" height="24"></td>\
InBlock.gif       
<td id="dialogBoxTitle" onmousedown="new dialog().moveStart(event, \'dialogBox\')" style="color:#fff;cursor:move;font-size:12px;font-weight:bold;">&nbsp;</td>\
InBlock.gif       
<td id="dialogClose" width="20" align="right" valign="middle">\
InBlock.gif        ' 
+ sClose + '\
InBlock.gif       
</td>\
InBlock.gif       
<td width="6"></td>\
InBlock.gif      
</tr>\
InBlock.gif     
</table>\
InBlock.gif    
</td>\
InBlock.gif   
</tr>\
InBlock.gif   
<tr id="dialogHeight" style="height:' + height + '" valign="top">\
InBlock.gif    
<td id="dialogBody" bgcolor="#ffffff">+ sBody + '</td>\
InBlock.gif   
</tr>\
InBlock.gif  
</table></div>\
InBlock.gif  
<div id="dialogBoxShadow" style="display:none;z-index:9;"></div>\
InBlock.gif ';
InBlock.gif 
var sBG = '\
InBlock.gif  
<div id="dialogBoxBG" style="position:absolute;top:0px;left:0px;width:100%;height:100%;"></div>\
InBlock.gif ';
InBlock.gif
InBlock.gif 
this.show = function()
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
this.middle('dialogBox');
InBlock.gif  
if ($('dialogIframBG'))
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif   $('dialogIframBG').style.top 
= $('dialogBox').style.top;
InBlock.gif   $('dialogIframBG').style.left 
= $('dialogBox').style.left;
InBlock.gif   $('dialogIframBG').style.width 
= $('dialogBox').offsetWidth;
InBlock.gif   $('dialogIframBG').style.height 
= $('dialogBox').offsetHeight;
InBlock.gif   $('dialogIframBG').style.display 
= 'block';
ExpandedSubBlockEnd.gif  }
  
InBlock.gif  
this.shadow();
ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.reset = function()
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
this.close();
ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.close = function()
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
if ($('dialogIframBG'))
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif   $('dialogIframBG').style.display 
= 'none';
ExpandedSubBlockEnd.gif  }

InBlock.gif  $('dialogBox').style.display
='none';
InBlock.gif  $('dialogBoxBG').style.display
='none';
InBlock.gif  $('dialogBoxShadow').style.display 
= "none";
InBlock.gif  $('dialogBody').innerHTML 
= sBody;
ExpandedSubBlockEnd.gif }

InBlock.gif 
this.html = function(_sHtml)
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  $(
"dialogBody").innerHTML = _sHtml;
InBlock.gif  
this.show();
ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.init = function(big_msg)
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif  $('dialogCase') 
? $('dialogCase').parentNode.removeChild($('dialogCase')) : function()dot.gif{};
InBlock.gif  
var oDiv = document.createElement('span');
InBlock.gif  oDiv.id 
= "dialogCase";
InBlock.gif  
if ('yes' == big_msg)
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif   oDiv.innerHTML 
= sBG + sBox;
ExpandedSubBlockEnd.gif  }

InBlock.gif  
else
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif   
if (!is_opera_d)
ExpandedSubBlockStart.gifContractedSubBlock.gif   
dot.gif{
InBlock.gif    oDiv.innerHTML 
= sBG + sIfram + sBox;
ExpandedSubBlockEnd.gif   }

InBlock.gif   
else
ExpandedSubBlockStart.gifContractedSubBlock.gif   
dot.gif{
InBlock.gif    oDiv.innerHTML 
= sBG + sBox;
ExpandedSubBlockEnd.gif   }

ExpandedSubBlockEnd.gif  }

InBlock.gif  document.body.appendChild(oDiv);
InBlock.gif  $('dialogBoxBG').style.height 
= document.body.scrollHeight;
ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.button = function(_sId, _sFuc)
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
if($(_sId))
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif   $(_sId).style.display 
= '';
InBlock.gif   
if($(_sId).addEventListener)
ExpandedSubBlockStart.gifContractedSubBlock.gif   
dot.gif{
InBlock.gif    
if($(_sId).act)
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif     $(_sId).removeEventListener('click', 
function()dot.gif{eval($(_sId).act)}false);
ExpandedSubBlockEnd.gif    }

InBlock.gif    $(_sId).act 
= _sFuc;
ExpandedSubBlockStart.gifContractedSubBlock.gif    $(_sId).addEventListener('click', 
function()dot.gif{eval(_sFuc)}false);
ExpandedSubBlockEnd.gif   }

InBlock.gif   
else
ExpandedSubBlockStart.gifContractedSubBlock.gif   
dot.gif{
InBlock.gif    
if($(_sId).act)
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif     $(_sId).detachEvent('onclick', 
function()dot.gif{eval($(_sId).act)});
ExpandedSubBlockEnd.gif    }

InBlock.gif    $(_sId).act 
= _sFuc;
ExpandedSubBlockStart.gifContractedSubBlock.gif    $(_sId).attachEvent('onclick', 
function()dot.gif{eval(_sFuc)});
ExpandedSubBlockEnd.gif   }

ExpandedSubBlockEnd.gif  }

ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.shadow = function()
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
var oShadow = $('dialogBoxShadow');
InBlock.gif  
var oDialog = $('dialogBox');
InBlock.gif  oShadow['style']['position'] 
= "absolute";
InBlock.gif  oShadow['style']['background'] 
= "#000";
InBlock.gif  oShadow['style']['display'] 
= "";
InBlock.gif  oShadow['style']['opacity'] 
= "0.2";
InBlock.gif  oShadow['style']['filter'] 
= "alpha(opacity=20)";
InBlock.gif  oShadow['style']['top'] 
= oDialog.offsetTop + 6;
InBlock.gif  oShadow['style']['left'] 
= oDialog.offsetLeft + 6;
InBlock.gif  oShadow['style']['width'] 
= oDialog.offsetWidth;
InBlock.gif  oShadow['style']['height'] 
= oDialog.offsetHeight;
ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.open = function(_sUrl, _sMode)
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
this.show();
ExpandedSubBlockStart.gifContractedSubBlock.gif  
if(!_sMode || _sMode == "no" || _sMode == "yes")dot.gif{
InBlock.gif   
var openIframe = "<iframe width='100%' height='100%' name='iframe_parent' id='iframe_parent' src='" + _sUrl + "' frameborder='0' scrolling='" + _sMode + "'></iframe>";
InBlock.gif   $(
"dialogBody").innerHTML = openIframe;
ExpandedSubBlockEnd.gif  }

ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.showWindow = function(_sUrl, _iWidth, _iHeight, _sMode)
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
var oWindow;
InBlock.gif  
var sLeft = (screen.width) ? (screen.width - _iWidth)/2 : 0;
InBlock.gif  
var iTop = -80 + (screen.height - _iHeight)/2;
InBlock.gif  iTop 
= iTop > 0 ? iTop : (screen.height - _iHeight)/2;
InBlock.gif  
var sTop = (screen.height) ? iTop : 0;
ExpandedSubBlockStart.gifContractedSubBlock.gif  
if(window.showModalDialog && _sMode == "m")dot.gif{
InBlock.gif   oWindow 
= window.showModalDialog(_sUrl,"","dialogWidth:" + _iWidth + "px;dialogheight:" + _iHeight + "px");
ExpandedSubBlockStart.gifContractedSubBlock.gif  }
 else dot.gif{
InBlock.gif   oWindow 
= window.open(_sUrl, '', 'height=+ _iHeight + ', width=+ _iWidth + ', top=+ sTop + ', left=+ sLeft + ', toolbar=no, menubar=no, scrollbars=+ _sMode + ', resizable=no,location=no, status=no');
InBlock.gif   
this.reset();
ExpandedSubBlockEnd.gif  }

ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.event = function(_sMsg, _sOk, _sCancel, _sClose)
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  $('dialogFunc').innerHTML 
= sFunc;
InBlock.gif  $('dialogClose').innerHTML 
= sClose;
ExpandedSubBlockStart.gifContractedSubBlock.gif  $('dialogBodyBox') 
== null ? $('dialogBody').innerHTML = sBody : function()dot.gif{};
InBlock.gif  
if (width > 400 && height > 300)
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif   $('dialogMsg') 
? $('dialogMsg').innerHTML = _sMsg  : function()dot.gif{};
ExpandedSubBlockStart.gifContractedSubBlock.gif   $('dialogMsg') 
? $('dialogMsg')['style']['fontWeight'] = "bold" : function()dot.gif{};
ExpandedSubBlockStart.gifContractedSubBlock.gif   $('dialogMsg') 
? $('dialogMsg')['style']['fontSize'] = "15px" : function()dot.gif{};
ExpandedSubBlockStart.gifContractedSubBlock.gif   $('dialogMsg') 
? $('dialogMsg')['style']['color'] = "#ff9900" : function()dot.gif{};
ExpandedSubBlockStart.gifContractedSubBlock.gif   $('dialogMsg') 
? $('dialogMsg')['style']['height'] = "150px" : function()dot.gif{};
ExpandedSubBlockEnd.gif  }

InBlock.gif  
else
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif   $('dialogMsg') 
? $('dialogMsg').innerHTML = _sMsg  : function()dot.gif{};
ExpandedSubBlockEnd.gif  }

InBlock.gif
InBlock.gif  _sOk 
&& _sOk != "" ? this.button('dialogOk', _sOk) : $('dialogOk').style.display = 'none';
InBlock.gif  _sCancel 
&& _sCancel != "" ? this.button('dialogCancel', _sCancel) : $('dialogCancel').style.display = 'none';
InBlock.gif  
//_sOk ? this.button('dialogOk', _sOk) : _sOk == "" ? function(){} : $('dialogCancel').style.display = 'none';
InBlock.gif
  //_sCancel ? this.button('dialogCancel', _sCancel) : _sCancel == "" ? function(){} : $('dialogCancel').style.display = 'none';
ExpandedSubBlockStart.gifContractedSubBlock.gif
  _sClose ? this.button('dialogBoxClose', _sClose) : function()dot.gif{};
InBlock.gif
InBlock.gif  
this.show();
ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.set = function(_oAttr, _sVal)
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
var oShadow = $('dialogBoxShadow');
InBlock.gif  
var oDialog = $('dialogBox');
InBlock.gif  
var oHeight = $('dialogHeight');
InBlock.gif
InBlock.gif  
if(_sVal != '')
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif   
switch(_oAttr)
ExpandedSubBlockStart.gifContractedSubBlock.gif   
dot.gif{
InBlock.gif    
case 'title':
InBlock.gif     $('dialogBoxTitle').innerHTML 
= _sVal;
InBlock.gif     title 
= _sVal;
InBlock.gif     
break;
InBlock.gif    
case 'width':
InBlock.gif     oDialog['style']['width'] 
= _sVal;
InBlock.gif     width 
= _sVal;
InBlock.gif     
break;
InBlock.gif    
case 'height':
InBlock.gif     oHeight['style']['height'] 
= _sVal;
InBlock.gif     height 
= _sVal;
InBlock.gif     
break;
InBlock.gif    
case 'src':
InBlock.gif     $('dialogMsgDiv').innerHTML 
= '\
InBlock.gif      
<table border="0" align="center" cellpadding="0" cellspacing="0" width="100%">\
InBlock.gif       
<tr>\
InBlock.gif        
<td width="30%" align="center"><img id="dialogBoxFace" src="' + path + 'login_wrong.gif" /></td>\
InBlock.gif        
<td id="dialogMsg" style="font-size:12px;line-height:180%;" width="70%"></td>\
InBlock.gif       
</tr>\
InBlock.gif      
</table>\
InBlock.gif     ';
ExpandedSubBlockStart.gifContractedSubBlock.gif     $('dialogBoxFace') 
? $('dialogBoxFace').src = path + _sVal + '.gif' : function()dot.gif{};
InBlock.gif     src 
= _sVal;
InBlock.gif     
break;
InBlock.gif    
case 'auto':
InBlock.gif     auto 
= _sVal;
ExpandedSubBlockEnd.gif   }

ExpandedSubBlockEnd.gif  }

InBlock.gif  
this.middle('dialogBox');
InBlock.gif  oShadow['style']['top'] 
= oDialog.offsetTop + 6;
InBlock.gif  oShadow['style']['left'] 
= oDialog.offsetLeft + 6;
InBlock.gif  oShadow['style']['width'] 
= oDialog.offsetWidth;
InBlock.gif  oShadow['style']['height'] 
= oDialog.offsetHeight;
ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.moveStart = function (event, _sId)
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
var oObj = $(_sId);
InBlock.gif  oObj.onmousemove 
= mousemove;
InBlock.gif  oObj.onmouseup 
= mouseup;
ExpandedSubBlockStart.gifContractedSubBlock.gif  oObj.setCapture 
? oObj.setCapture() : function()dot.gif{};
InBlock.gif  oEvent 
= window.event ? window.event : event;
ExpandedSubBlockStart.gifContractedSubBlock.gif  
var dragData = dot.gif{x : oEvent.clientX, y : oEvent.clientY};
ExpandedSubBlockStart.gifContractedSubBlock.gif  
var backData = dot.gif{x : parseInt(oObj.style.top), y : parseInt(oObj.style.left)};
InBlock.gif  
function mousemove()
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif   
var oEvent = window.event ? window.event : event;
InBlock.gif   
var iLeft = oEvent.clientX - dragData["x"+ parseInt(oObj.style.left);
InBlock.gif   
var iTop = oEvent.clientY - dragData["y"+ parseInt(oObj.style.top);
InBlock.gif   oObj.style.left 
= iLeft;
InBlock.gif   oObj.style.top 
= iTop;
InBlock.gif   $('dialogBoxShadow').style.left 
= iLeft + 6;
InBlock.gif   $('dialogBoxShadow').style.top 
= iTop + 6;
InBlock.gif   
if ($('dialogIframBG'))
ExpandedSubBlockStart.gifContractedSubBlock.gif   
dot.gif{
InBlock.gif    $('dialogIframBG').style.left 
= iLeft;
InBlock.gif    $('dialogIframBG').style.top 
= iTop;
ExpandedSubBlockEnd.gif   }

ExpandedSubBlockStart.gifContractedSubBlock.gif   dragData 
= dot.gif{x: oEvent.clientX, y: oEvent.clientY};
InBlock.gif
ExpandedSubBlockEnd.gif  }

InBlock.gif  
function mouseup()
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif   
var oEvent = window.event ? window.event : event;
InBlock.gif   oObj.onmousemove 
= null;
InBlock.gif   oObj.onmouseup 
= null;
ExpandedSubBlockStart.gifContractedSubBlock.gif   
if(oEvent.clientX < 1 || oEvent.clientY < 1 || oEvent.clientX > document.body.clientWidth || oEvent.clientY > document.body.clientHeight)dot.gif{
InBlock.gif    oObj.style.left 
= backData.y;
InBlock.gif    oObj.style.top 
= backData.x;
InBlock.gif    $('dialogBoxShadow').style.left 
= backData.y + 6;
InBlock.gif    $('dialogBoxShadow').style.top 
= backData.x + 6;
InBlock.gif    
if ($('dialogIframBG'))
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif     $('dialogIframBG').style.left 
= backData.y;
InBlock.gif     $('dialogIframBG').style.top 
= backData.x;
ExpandedSubBlockEnd.gif    }

ExpandedSubBlockEnd.gif   }

ExpandedSubBlockStart.gifContractedSubBlock.gif   oObj.releaseCapture 
? oObj.releaseCapture() : function()dot.gif{};
ExpandedSubBlockEnd.gif  }

ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.hideModule = function(_sType, _sDisplay)
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
var aIframe = parent.document.getElementsByTagName("iframe");
InBlock.gif  
var aType = document.getElementsByTagName(_sType);
InBlock.gif  
var iChildObj, iChildLen;
InBlock.gif  
for (var i = 0; i < aType.length; i++)
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif   aType[i].style.display 
= _sDisplay;
ExpandedSubBlockEnd.gif  }

InBlock.gif  
for (var j = 0; j < aIframe.length; j++)
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif   iChildObj 
= document.frames ? document.frames[j] : aIframe[j].contentWindow;
InBlock.gif   
try
ExpandedSubBlockStart.gifContractedSubBlock.gif   
dot.gif{
InBlock.gif    iChildLen 
= iChildObj.document.body.getElementsByTagName(_sType).length;
InBlock.gif    
for (var k = 0; k < iChildLen; k++)
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif     iChildObj.document.body.getElementsByTagName(_sType)[k].style.display 
= _sDisplay;
ExpandedSubBlockEnd.gif    }

ExpandedSubBlockEnd.gif   }

ExpandedSubBlockStart.gifContractedSubBlock.gif   
catch (e)dot.gif{}
ExpandedSubBlockEnd.gif  }

ExpandedSubBlockEnd.gif }

InBlock.gif
InBlock.gif 
this.middle = function(_sId)
ExpandedSubBlockStart.gifContractedSubBlock.gif 
dot.gif{
InBlock.gif  
try
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif   
var aIframe = parent.document.getElementById("iframe_parent");
ExpandedSubBlockEnd.gif  }

ExpandedSubBlockStart.gifContractedSubBlock.gif  
catch (e)dot.gif{}
ExpandedSubBlockStart.gifContractedSubBlock.gif  
if (aIframe) dot.gif{
InBlock.gif   
var sClientWidth = aIframe.offsetWidth;
InBlock.gif   
var sClientHeight = aIframe.offsetHeight;
InBlock.gif   
var sScrollTop = 0;
ExpandedSubBlockStart.gifContractedSubBlock.gif  }
 else dot.gif{
InBlock.gif   
var sClientWidth = parent ? parent.document.body.clientWidth : document.body.clientWidth;
InBlock.gif   
var sClientHeight = parent ? parent.document.body.clientHeight : document.body.clientHeight;
InBlock.gif   
var sScrollTop = parent ? parent.document.body.scrollTop : document.body.scrollTop;
ExpandedSubBlockEnd.gif  }

InBlock.gif  
var sleft = (document.body.clientWidth / 2- ($(_sId).offsetWidth / 2);
InBlock.gif  
var iTop = -80 + (sClientHeight / 2 + sScrollTop) - ($(_sId).offsetHeight / 2);
InBlock.gif  
var sTop = iTop > 0 ? iTop : (sClientHeight / 2 + sScrollTop) - ($(_sId).offsetHeight / 2);
InBlock.gif  $(_sId)['style']['display'] 
= '';
InBlock.gif  $(_sId)['style']['position'] 
= "absolute";
InBlock.gif  $(_sId)['style']['left'] 
= sleft;
InBlock.gif  $(_sId)['style']['top'] 
= sTop;
ExpandedSubBlockEnd.gif }

ExpandedBlockEnd.gif}

None.gif
None.gif
None.gif
function  openWindow(_sUrl, _sWidth, _sHeight, _sTitle, _sScroll)
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif 
var oEdit = new dialog();
InBlock.gif oEdit.init('yes');
InBlock.gif oEdit.set('title', _sTitle 
? _sTitle : "系统提示信息" );
InBlock.gif oEdit.set('width', _sWidth);
InBlock.gif oEdit.set('height', _sHeight);
InBlock.gif oEdit.set('auto', 'n');
InBlock.gif oEdit.open(_sUrl, _sScroll 
!= "yes" ? 'no' : 'yes');
ExpandedBlockEnd.gif}

None.gif

点击下载

转载于:https://www.cnblogs.com/ami/archive/2006/07/20/455775.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值