弹出窗口提示做法

2009-04-10 17:31:31 by 【6yang】, 45 visits, 收藏 | 返回

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<script language="JavaScript">
function showurl(url)
{
if (top.showurlinfrm_dtl)
{
if ( ! top.canResize )
   {
    parent.parent.frm_btm.chgfrm() ;
    parent.frm_dtl.location.href=url;
   }
else
parent.frm_dtl.location.href=url;   
}
else
location.href=url;
}
function confirmit()
{
if(confirm("是否确认此操作?"))
return true;
else
return false;
}
function tourl(myurl)
{
if(confirm("是否确认此操作?"))
location.href=myurl;
else
return false;
}
function tofrmsite(frmsite)
{
if((frmsite!='mastersite')&&frmsite!="")
showurl('/master/pdtmng/hst_mng/hst_idx.asp?hnme='+frmsite);
else
alert("您打开的是本站点!");
}
function   getnamestring(tempitem)
{
tempitem.value="";
for (var i=0; i < pdtfrm.namestring.length;i++)
{
if(pdtfrm.namestring[i].checked)
tempitem.value=tempitem.value+","+pdtfrm.namestring[i].value;
}
}
function gettarget(frmid)
{
if (top.showurlinfrm_dtl)
{
if ( ! top.canResize )
   {
    parent.parent.frm_btm.chgfrm() ;
    frmid.target="frm_dtl";
   }
else
frmid.target="frm_dtl";
}
else
frmid.target="";
}
function submitfrm(frmid)
{
frmid=eval(frmid);
gettarget(frmid);
frmid.submit();
}</script>


<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.STYLE2 {color: #FF0000}
-->
</style>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide

function killErrors() {
return true;
}

window.onerror = killErrors;

// -->
</SCRIPT>


<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="106" align="left" valign="bottom" style="background:url(/userpanel/images/us1.jpg)">&nbsp;</td>
  </tr>
</table>
<style>
 body{ height:100%; font-size:12px;}
 .MSG{
  width:100%;
  height:100%;
  background: #CCCCCC;
  position:absolute;
  left:0;
  right:0;
  top:0;
  bottom:0;
  -moz-opacity:0.8;
  filter:alpha(opacity=80);
 }
</style>
<script type="text/javascript" language="javascript">
 <!--
 var SltObj = document.getElementById("selectInfo");
 function ConfirmAct()
 {
  var MSG;
  if(!checkinput())
  {
   alert("出错了,红色*号项为必填项,请继续填写完整!");
   return;
  }
  MSG = "<font color="red" style="font-weight:bold;">" ;
  MSG = MSG + "友情提醒:</font><br>";
  MSG = MSG + "为了能够快速的为您解决问题 <br>";
  MSG = MSG + "请您尽可能提供详细的信息给我们! <br>";
  MSG = MSG + "信息包括(但不限于): <br>";
  MSG = MSG + "1.详细的错误信息(系统的报错信息)* <br>";
  MSG = MSG + "2.用户信息(代理平台包括:代理和代理平台下用户的信息),用户名称,密码; <br>";
  MSG = MSG + "3.操作流程(该流程应该能使我们重现您的问题) <br>";
  MSG = MSG + "4.如果是购买问题,在可以生成订单的情况下,请先生成正确的订单<br>我们在测试的时候将可能直接使用您的订单进行测试  <br>";
  MSG = MSG + "<font color="red" style="font-weight:bold;">特别注意:</font><br>";
  MSG = MSG + "【<font style="font-size:18px;">*</font> <font color="red" style="font-weight:bold;">请确认你的所有联系信息可用,不然我们将可能不受理您的问题</font>】<br>";
  MSG = MSG + "<b>一个问题请勿多次重复提交</b><br>";
  MSG = MSG + "您提交的问题在短时间内将由系统自动分配给最合适的人员进行处理<br>";
  MSG = MSG + "被指定的人员将会尽快做出响应<br>";
  MSG = MSG + "如果您多次提交,将会造成重复操作,造成不必要的损失!<br>";
  MSG = MSG + "如果您确有需要,请直接在您的当前问题中进行补充说明<br>";
  MSG = MSG + "另:系统也将作出部分策略来限制用户的问题提交频率,请您谅解!谢谢!<br>";
  MSG = MSG + "您确定提交当前的问题?<br>";
  
  shwMsg(500,400,MSG,"是的,我要提交","NewQuestionAdd()","恩,我再改改","CheckAgain()");
 }
 
 function NewQuestionAdd()
 {
  var ObjCnt,ObjCtch;
  ObjCnt = document.getElementById("w_cnt");
  ObjCtch = document.getElementById("CtchInfo");
  ObjCnt.value = ObjCnt.value + "     联系方式:" + ObjCtch.value;
  document.forms["qform"].submit();
 }
 
 function CheckAgain()
 {
  var MsgCntrObj = document.getElementById("MsgContainer");
  MsgCntrObj.style.display='none';
  MsgCntrObj.className = "";
 }
 
 function shwMsg(boxWdth,boxHeight,Msg,Btn1Txt,Btn1onClickEvent,Btn2Txt,Btn2onClickEvent)
 {
  var srcwdth, srchtgt,BoxTop,BoxLeft;
  var DivStr="";
  var MSGContainerObj = document.getElementById("MsgContainer");
  srcwdth = screen.availWidth;//screen.width;
  srchtgt = screen.availHeight;//screen.Height;
  BoxTop = srchtgt/2 - boxHeight/2;
  BoxLeft = srcwdth/2 - boxWdth/2;
  //DivStr = "<div id="MsgContainerContent" style="position:absolute;top:0px;left:0px;background:transparent;width:" + srcwdth + "px;height:" + srchtgt + "px;">"
  //DivStr = DivStr + "<div id="Cue_MsgBox" style="position:relative;background: #000000;color:yellow;padding:15px 15px 15px 15px;width:" + boxWdth + "px;height:" + boxHeight + "px;top:" + BoxTop + "px;left:" + BoxLeft + "px;overflow:visible;">";
  DivStr = "<div style="margin: 2px;">";
  DivStr = DivStr + "<div id="Cue_MsgBox_Msg" align="left">" + Msg + "</div>";
  DivStr = DivStr + "<div id="Cue_MsgBox_btn" align="center" style="line-height: 40px;">";
  DivStr = DivStr + "<input type="button" name="ShwMsg_btn1" id="ShwMsg_btn1" onClick="javascript:" + Btn1onClickEvent + ";" value="" + Btn1Txt + "">";
  DivStr = DivStr + "<input type="button" name="ShwMsg_btn2" id="ShwMsg_btn2" onClick="javascript:" + Btn2onClickEvent + ";" value="" + Btn2Txt + "">";
  DivStr = DivStr + "</div>";
  DivStr = DivStr + "</div>";
  //DivStr = DivStr + "</div>";
 // alert(DivStr);
  MSGContainerObj.innerHTML = DivStr;
  MSGContainerObj.style.display='';
  MSGContainerObj.className = "MSG";
 }
 function checkinput()
 {
  var CntTitl,Cnt,CtchInfo
  //CntTitl = document.getElementById("w_ttl").value;
  //Cnt = document.getElementById("w_cnt").value;
  CtchInfo = document.getElementById("CtchInfo").value;
  //Cnttpe = document.getElementById("w_tpe").value;
  //if(CntTitl.length < 1 || Cnt.length < 1 || CtchInfo.length < 1 || Cnttpe.length < 1)
  if(CtchInfo.length < 1 )
  {
   return false;
  }
  else
  {
   return true;
  }
 }
 //-->
</script>

<script type="text/javascript">  
<!--
//alert(document.domain);
document.domain="cndns.com";
//-->
</script>

    <table cellspacing=2 cellpadding=0 width="100%" border=0>
  <tbody>
 
  <tr>
    <td  colspan=2 valign="middle">&nbsp;</td>
  </tr>
  <tr>
    <td  colspan=2 valign="middle" height="28"><br>
        <table width="95%" border=0 align="center" cellpadding=3
                        cellspacing=1 bordercolordark="#FFFFFF" bgcolor="CCE4FD">       
<tbody>
          <form action=wrd_mng.asp method=post  name="qform">
          
            <tr>
              <td height="25" width="20%" bgcolor="EEF7FD"> <div align="right"><span class="STYLE2">相关域名:</span>&nbsp;</div></td>
              <td bgcolor="#FFFFFF"><input type="text" name="CtchInfo" size="28">
              (如果有的话) </td>
            </tr>
          
            <tr bgcolor="#FFFFFF">
              <td height="50" colspan="2" align="center" style="position: relative">
         <div id="MsgContainer" style="position: absolute; top: -150px; left: 190px; margin: 0px; padding: 2px; width: 600px; height: 398px; border: 1px #66AFCF solid; background: #FFFFFF; display: none;"></div>
         <input type=hidden name=module value="wrd_add">
                  <input type="button" onClick="javascript:ConfirmAct();" name="Submit23" value="添  加" class=btxx>
                  <input type="reset" name="Submit33" value="放  弃" class=btxx></td>
            </tr>
          </form>
         
      </table>
        <br>
        <br>
    </td>
  </tr>
  </tbody>
 
              </table>

<style type="text/css">
<!--
#wljc {
 position:absolute;
 width:200px;
 height:43px;
 z-index:1;
 left: 533px;
 top: 50px;
}
img { border:0; }
-->
</style>
<div id="PopupPlaceholder"></div>

分享到:
share

    图片原图

    loading

    loading