厕拍爱沟:如何随机更换网页的标题?

来源:百度文库 编辑:高考问答 时间:2024/04/27 20:40:46
标题内容不要在代码中的办法

<script language="javascript">
step=0
function c_title()
{
step++
if (step==7) {step=1}
if (step==1) {document.title='欢◇◇◇◇◇'}
if (step==2) {document.title='◇迎◇◇◇◇'}
if (step==3) {document.title='◇◇光◇◇◇'}
if (step==4) {document.title='◇◇◇临◇◇'}
if (step==5) {document.title='◇◇◇◇本◇'}
if (step==6) {document.title='◇◇◇◇◇站'}
setTimeout("c_title()",200);
}
c_title();
</script>

你是什么网页
动态还是静态
动态的简单
些个asp的
<%
Randomize() '初始化随机数
musicid=int(RND()*10+1) '产生一个1-10的随机数
%>
<% if musicid="1" then %> '判断
<title>标题1</title>
<%elseif musicid="2" then %>
<title>标题2</title>
<%elseif musicid="3" then %>
<title>标题3</title>
<%elseif musicid="4" then %>
<title>标题4</title>
<%elseif musicid="5" then %>
<title>标题5</title>
<%elseif musicid="6" then %>
<title>标题6</title>
<%elseif musicid="7" then %>
<title>标题7</title>
<%elseif musicid="8" then %>
<title>标题8</title>
<%elseif musicid="9" then %>
<title>标题9</title>
<%elseif musicid="10" then %>
<title>标题10</title>
<%end if%>

不要问我不知道放哪哈