⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msg_alert.asp

📁 === ==ASP销售管理系统
💻 ASP
字号:
<!--#include file="../config.asp"-->
<!--#include file="../inc/check_login.asp"-->
<%
Have_New_Msg = false
Set conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
conn.open connstr
sql = "select From_Employee_ID from Employee_Message where Message_Status = 0 and To_Employee_ID = " & Session("Employee_ID")
set rs = conn.execute(sql)
if not rs.eof then
	Have_New_Msg = true
end if
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title></title>
	<style>
		.jd{
			FONT-SIZE: 9pt; 
			LINE-HEIGHT: 150%;
			color : #FFFFFF;
			TEXT-DECORATION: none;
		}
	</style>
</head>
<body bgcolor="#6699CC">
<% If Have_New_Msg then %>
<marquee behavior=scroll direction=left scrollamount=1 scrolldelay=8 onmouseover='this.stop()' onmouseout='this.start()'>
<a href="#" class="jd" onClick="return ReadNewMsg();">您有新消息,请点此处收取</a>
</marquee>
<% End If %>
</body>
</html>
<script language="JavaScript" type="text/javascript">
	function ReadNewMsg(){
		top.main.location.href = '../employee/msg.asp';
	}
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -