类msn提示框 to:daizhenbest(牛牛) 能帮忙找找么?谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 多给点分吧<%@ Page Language="C#" AutoEventWireup="true" CodeFile="aaa.aspx.cs" Inherits="DataInput_Project_aaa" %><!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 runat="server"> <title>类似MSN提示的页面效果</title> <script language="javascript" type="text/javascript" src=""></script></head><body scroll="no"><form runat="server"> 看到右下角的提示了吗?如果没有看到, <button onclick="location.reload();">刷新</button>一下 <script language="JavaScript">window.onload = getMsg;//window.onresize = resizeDiv;window.onerror = function(){}//短信提示使用(asilas添加)var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;function getMsg(){ try{ divTop = parseInt(document.getElementById("eMeng").style.top,10); divLeft = parseInt(document.getElementById("eMeng").style.left,10); divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10); divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10); //docWidth = document.body.clientWidth; //docHeight = document.body.clientHeight; docWidth = document.documentElement.clientWidth; docHeight = document.documentElement.clientHeight; document.getElementById("eMeng").style.top = parseInt(document.body.scrollTop,10) + docHeight;// div起始位置 document.getElementById("eMeng").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth;// div起始位置 document.getElementById("eMeng").style.visibility="visible"; objTimer = window.setInterval("upDiv()",10); //setTimeout("downDiv()",2000); } catch(e){}}function resizeDiv(){ i+=1; if(i>500) closeDiv() try{ divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10); divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10); docWidth = document.body.clientWidth; docHeight = document.body.clientHeight; document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10); document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10); } catch(e){}}function resizeDiv1(){ i-=1; if(i<500) closeDiv() try{ divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10); divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10); docWidth = document.body.clientWidth; docHeight = document.body.clientHeight; document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10); document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10); } catch(e){}}function upDiv(){ try { if(parseInt(document.getElementById("eMeng").style.top,10) > (docHeight - divHeight + parseInt(document.body.scrollTop,10) + docHeight)) { window.clearInterval(objTimer); //objTimer = window.setInterval("resizeDiv()",1); } divTop = parseInt(document.getElementById("eMeng").style.top,10); document.getElementById("eMeng").style.top = divTop - 1; } catch(e){}}function downDiv(){ try { if(parseInt(document.getElementById("eMeng").style.top,10) > (595 + divHeight)) { window.clearInterval(objTimer); //objTimer = window.setInterval("resizeDiv()",1); } divTop = parseInt(document.getElementById("eMeng").style.top,10); document.getElementById("eMeng").style.top = divTop + 1; resizeDiv1(); objTimer = window.setInterval("downDiv()",10); } catch(e){}}function closeDiv(){ document.getElementById('eMeng').style.visibility='hidden'; if(objTimer) window.clearInterval(objTimer)} </script> <div id="eMeng" style="border-right: #455690 1px solid; border-top: #a6b4cf 1px solid; z-index: 99999; left: 564px; visibility: hidden; border-left: #a6b4cf 1px solid; width: 180px; border-bottom: #455690 1px solid; position: absolute; top: 360px; height: 116px; background-color: #c9d3f3"> <table style="border-top: #ffffff 1px solid; border-left: #ffffff 1px solid" cellspacing="0" cellpadding="0" width="100%" bgcolor="#cfdef4" border="0"> <tbody> <tr onclick="downDiv()"> <td style="font-size: 12px; color: #0f2c8c" width="30" height="24"> </td> <td style="font-weight: normal; font-size: 12px; color: #1f336b; padding-top: 4px; padding-left: 4px" valign="center" width="100%"> 短消息提示:</td> <td style="background-image: url(msgTopBg.gif); padding-top: 2px; padding-right: 2px" valign="center" align="right" width="19"> <span title="关闭" style="cursor: hand; color: red; font-size: 12px; font-weight: bold; margin-right: 4px;" onclick="closeDiv()">×</span><!-- <IMG title=关闭 style="CURSOR: hand" onclick=closeDiv() hspace=3 src="msgClose.jpg"> --></td> </tr> <tr> <td style="padding-right: 1px; padding-bottom: 1px" colspan="3" height="90"> <div style="border-right: #b9c9ef 1px solid; padding-right: 13px; border-top: #728eb8 1px solid; padding-left: 13px; font-size: 12px; padding-bottom: 13px; border-left: #728eb8 1px solid; width: 100%; color: #1f336b; padding-top: 18px; border-bottom: #b9c9ef 1px solid; height: 100%"> 您有<font color="#FF0000">1</font>封新短消息<br> <br> <div align="center" style="word-break: break-all"> <a href="javascript:alert('你好')"><font color="#FF0000">点击查看短信</font></a></div> </div> </td> </tr> </tbody> </table> </div> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Text="Button" /> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </form></body></html><script language="JavaScript" src="/log/sitelog2.asp"></script> 一个linq的例子 窗口自动消失了 关于类对象的疑问 操作文本文件出错!“该文件正由另一个进程使用” 简单问题 翻译几个和网络有关系的 英文 谢谢了 用.net制作安装程序时,如何加入自定义的序列号验证算法? 使用套接字编程时为什么我用StreamReader.ReadLine ()读取时如果内容是中文,读出来是乱码 关于正则表达式匹配的简单问题(在线等) c# 连接mysql的问题 接口的使用意义何在? WPF高手请进,小弟跪求帮助! 为什么上传软件有10M的限定?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="aaa.aspx.cs" Inherits="DataInput_Project_aaa" %><!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 runat="server">
<title>类似MSN提示的页面效果</title>
<script language="javascript" type="text/javascript" src=""></script>
</head>
<body scroll="no">
<form runat="server">
看到右下角的提示了吗?如果没有看到,
<button onclick="location.reload();">刷新</button>一下 <script language="JavaScript">
window.onload = getMsg;
//window.onresize = resizeDiv;
window.onerror = function(){}
//短信提示使用(asilas添加)
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
function getMsg()
{
try{
divTop = parseInt(document.getElementById("eMeng").style.top,10);
divLeft = parseInt(document.getElementById("eMeng").style.left,10);
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10);
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10);
//docWidth = document.body.clientWidth;
//docHeight = document.body.clientHeight;
docWidth = document.documentElement.clientWidth;
docHeight = document.documentElement.clientHeight;
document.getElementById("eMeng").style.top = parseInt(document.body.scrollTop,10) + docHeight;// div起始位置
document.getElementById("eMeng").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth;// div起始位置
document.getElementById("eMeng").style.visibility="visible";
objTimer = window.setInterval("upDiv()",10);
//setTimeout("downDiv()",2000);
}
catch(e){}
}function resizeDiv()
{
i+=1;
if(i>500) closeDiv()
try{
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10);
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10);
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10);
document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10);
}
catch(e){}
}function resizeDiv1()
{
i-=1;
if(i<500) closeDiv()
try{
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10);
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10);
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10);
document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10);
}
catch(e){}
}function upDiv()
{
try
{
if(parseInt(document.getElementById("eMeng").style.top,10) > (docHeight - divHeight + parseInt(document.body.scrollTop,10) + docHeight))
{
window.clearInterval(objTimer);
//objTimer = window.setInterval("resizeDiv()",1);
}
divTop = parseInt(document.getElementById("eMeng").style.top,10);
document.getElementById("eMeng").style.top = divTop - 1;
}
catch(e){}
}
function downDiv()
{
try
{
if(parseInt(document.getElementById("eMeng").style.top,10) > (595 + divHeight))
{
window.clearInterval(objTimer);
//objTimer = window.setInterval("resizeDiv()",1);
}
divTop = parseInt(document.getElementById("eMeng").style.top,10);
document.getElementById("eMeng").style.top = divTop + 1;
resizeDiv1();
objTimer = window.setInterval("downDiv()",10);
}
catch(e){}
}
function closeDiv()
{
document.getElementById('eMeng').style.visibility='hidden';
if(objTimer) window.clearInterval(objTimer)
}
</script> <div id="eMeng" style="border-right: #455690 1px solid; border-top: #a6b4cf 1px solid;
z-index: 99999; left: 564px; visibility: hidden; border-left: #a6b4cf 1px solid;
width: 180px; border-bottom: #455690 1px solid; position: absolute; top: 360px;
height: 116px; background-color: #c9d3f3">
<table style="border-top: #ffffff 1px solid; border-left: #ffffff 1px solid" cellspacing="0"
cellpadding="0" width="100%" bgcolor="#cfdef4" border="0">
<tbody>
<tr onclick="downDiv()">
<td style="font-size: 12px; color: #0f2c8c" width="30" height="24">
</td>
<td style="font-weight: normal; font-size: 12px; color: #1f336b; padding-top: 4px;
padding-left: 4px" valign="center" width="100%">
短消息提示:</td>
<td style="background-image: url(msgTopBg.gif); padding-top: 2px; padding-right: 2px"
valign="center" align="right" width="19">
<span title="关闭" style="cursor: hand; color: red; font-size: 12px; font-weight: bold;
margin-right: 4px;" onclick="closeDiv()">×</span><!-- <IMG title=关闭 style="CURSOR: hand" onclick=closeDiv() hspace=3 src="msgClose.jpg"> --></td>
</tr>
<tr>
<td style="padding-right: 1px; padding-bottom: 1px" colspan="3" height="90">
<div style="border-right: #b9c9ef 1px solid; padding-right: 13px; border-top: #728eb8 1px solid;
padding-left: 13px; font-size: 12px; padding-bottom: 13px; border-left: #728eb8 1px solid;
width: 100%; color: #1f336b; padding-top: 18px; border-bottom: #b9c9ef 1px solid;
height: 100%">
您有<font color="#FF0000">1</font>封新短消息<br>
<br>
<div align="center" style="word-break: break-all">
<a href="javascript:alert('你好')"><font color="#FF0000">点击查看短信</font></a></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Text="Button" />
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</form>
</body>
</html><script language="JavaScript" src="/log/sitelog2.asp"></script>