<div id="createFile"
style="display: none; z-index: 1; position: absolute; left: 500px; top: 300px; width: 350px; height: 200px; background:
white; border: 1px solid black;">
<div style="z-index: 3; position: absolute;width:500px;height:150px;padding-top:10px;padding-left:10px;">
<h:outputLabel style="font-weight:bold;" value="" for="" >publishing ...</h:outputLabel><br/>
<h:outputLabel value="Please be patient and not to engage in any operation !" for="" />
</div>
</div>
<script language="javascript">
function openMsgDiag(){
document.getElementById('createFile').style.display = "inline";
}
</script>
下面也是参考的代码:
<script language="javascript">
function openMsgDiag(){
document.getElementById('content').style.display = "inline";
}
function closeMsgDig(){
document.getElementById('content').style.display = "none";
}
//定义移动对象和移动坐标
var Mouse_Obj="none",_x,_y;
//拖动对象函数(自动)
document.οnmοusemοve=function()
{
if(Mouse_Obj!=="none")
{
document.getElementById(Mouse_Obj).style.left=_x+event.x;
document.getElementById(Mouse_Obj).style.top=_y+event.y;
event.returnValue=false;
}
}
//停止拖动函数(自动)
document.οnmοuseup=function()
{
Mouse_Obj="none";
}
//确定被拖动对象函数 o为被拖动对象
function m(o)
{
Mouse_Obj=o;
_x=parseInt(document.getElementById(Mouse_Obj).style.left)-event.x;
_y=parseInt(document.getElementById(Mouse_Obj).style.top)-event.y;
}
</script>
<div id="content" οnmοusedοwn="m(this.id)"
style="display: none;position: absolute; left: 500px; top: 800px; width: 352px; height: 192px; background: white; border: 1px solid #666666;">
<div style="z-index: 3; position: absolute;width:350px; border:#EBEBEB 3px solid; padding-bottom:10px;">
<p style="padding:0px; margin:0px; background: #FFCC66; height:25px; padding-top:2px; padding-right:5px;">
<input type="button" value="x" οnclick="closeMsgDig();" style="float:right; width:25px; "/>
</input>
</p>
<p class="STYLE3 STYLE4" style="padding-left:15px; padding-right:15px;"> 尊敬的用户,</p>
<p style=" text-indent:20px; line-height:20px;padding-left:15px; padding-right:15px;"><span class="STYLE1"> 您好!领取飞信会员的请求已收到,如您符合活动规则请于次月留意飞信会员开通的短信通知;如您还未办理银卡套餐请办理后再进行领取登记。感谢您的参与。</span></p>
<p style=" text-align:right;padding-left:15px; padding-right:15px;"><span class="STYLE8"> 中国移动 </span></p>
</div>
</div>