28,390
社区成员
发帖
与我相关
我的任务
分享
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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 type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title id="newTitle"><%=application("bt") & ""%></title>
<script type="text/javascript">
$(document).ready(function(){
setInterval('getTitle()',5000); // 每隔5秒执行一次标题更新
});
function getTitle()
{
$.get('getTitle.asp?id='+(new Date()).getTime(),function(d){document.title=d});
}
</script>
</head>
<body>
</body>
</html>
<%
response.Charset="gb2312"
response.Write( application("bt") & "" )
%>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
bt=request("bt") & ""
application("bt")=bt
%>
<form id="form1" name="form1" method="post" action="">
<table width="650" border="2" align="center" cellpadding="10" cellspacing="0" bordercolor="#FF0000">
<caption>
更改网页标题
</caption>
<tr>
<td align="right">新标题:
<input name="bt" type="text" id="bt" value="<%=replace(bt,"""",""") %>" size="70" />
<br />
<input type="submit" value=" 执行 " /></td>
</tr>
</table>
</form>
<script>
document.title="<%=replace(bt,"""","\""") %>";
</script>
</body>
</html>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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 type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title id="newTitle"><%=application("bt") & ""%></title>
<script type="text/javascript">
$(document).ready(function(){
setInterval('getTitle()',5000); // 每隔5秒执行一次标题更新
});
var v=0
function getTitle()
{
$("div#bt").load('getTitle.asp?id='+(new Date()).getTime(),{},function(){document.title=$("div#bt").text();} );
}
</script>
</head>
<body>
<div id="bt" style="display:none"></div>
</body>
</html>
<% = application("bt") & "" %>