📄 uhead.js
字号:
<!--
isns = navigator.appName == "Netscape";
img1=new Image()
img2=new Image()
img3=new Image()
img4=new Image()
img1.src='images/shouye/photo1.gif'
img2.src='images/shouye/photo2.gif'
img3.src='images/shouye/photo3.gif'
img4.src='images/shouye/photo4.gif'
nn=1
function change_img()
{
eval('document.pic.src=img'+nn+'.src');
nn++;
if(nn>4) nn=1
if(!isns)
{
pic.filters.item(0).apply()
pic.style.visibility='visible'
pic.filters.item(0).play()
setTimeout("pic.style.visibility='hidden'",4000);
}
else
document.pic.visibility='visible'
tt=setTimeout('change_img()',4000)
}
function wynews(news_id,news_content)
{
this.news_id=news_id;
this.news_content=news_content;
}
news=new Array();
news[1]=new wynews('1',' 三峡大学团委是三峡大学的先进集体,是在校党委的领导下,面向全体青年学生和青年教工的工作部门。');
news[2]=new wynews('2',' 作为党的助手和后备军,作为党联系青年的桥梁和纽带,共青团的主要任务是紧密围绕思想教育、组织建设和队伍建设、为青年成才服务,为全面素质教育服务。将始终围绕“服务同学、沟通教学、走向社会”这一主题,使共青团、学生会成为了一座沟通学生心灵的桥梁,一扇体现学生风采的窗口。');
if(isns)
{
tag0='document.divnews.document.clipnews.document.'
tag1='document.divnews.document.clipnews.'
tag2=''
}
else
{
tag0=''
tag1=''
tag2='.style'
}
function init()
{
change_img()
newsnum=news.length-1
if(isns) eval(tag1+'clip.height=190')
eval(tag0+'news1'+tag2+'.top=0')
for(i=2;i<=newsnum;i++)
{
j=i-1
follow(i,j)
}
newsmove()
if(isns) eval(tag1+'visibility="show"')
else divnews.style.visibility='visible'
}
steph=1
mm=false
function newsmove()
{
mm=true
xmin=1
for(i=1;i<=newsnum;i++)
{
if(isns) xtop=eval(tag0+'news'+xmin+'.top')
else xtop=eval('news'+xmin+'.style.pixelTop')
if(isns) nitop=eval(tag0+'news'+i+'.top')
else nitop=eval('news'+i+'.style.pixelTop')
if(nitop<xtop) xmin=i
}
if(isns) tt=eval(tag0+'news'+xmin+'.top');
else tt=eval('news'+xmin+'.style.pixelTop');
tt-=steph;
eval(tag0+'news'+xmin+tag2+'.top=tt');
xmax=xmin-1
if(xmin==1) xmax=newsnum
if(xmin>=1&&xmin<newsnum)
for(i=xmin+1;i<=newsnum;i++)
{
j=i-1
follow(i,j)
}
if(xmin!=1)
for(i=1;i<=xmax;i++)
{
j=i-1
if(j==0) j=newsnum
follow(i,j)
}
for(i=1;i<=newsnum;i++)
{
if(isns) topi=eval(tag0+'news'+i+'.top')
else topi=eval('news'+i+'.style.pixelTop')
if(isns) heighti=eval(tag0+'news'+i+'.clip.height')
else heighti=eval('news'+i+'.offsetHeight')
bottomi=topi+heighti
if(bottomi<0)
eval(tag0+'news'+i+tag2+'.top=200')
}
if(mm) domove=setTimeout('newsmove()',10);
}
function stopm()
{
if(mm)
{clearTimeout(domove)
mm=false}
}
function startm()
{
if(!mm) newsmove()
}
function follow(nexti,prei)
{
if(isns) newtop=eval(tag0+'news'+prei+'.top')
else newtop=eval('news'+prei+'.style.pixelTop')
if(isns) newheight=eval(tag0+'news'+prei+'.clip.height')
else newheight=eval('news'+prei+'.offsetHeight')
newpos=newtop+newheight+8
if(newpos>200) newpos=200
eval(tag0+'news'+nexti+tag2+'.top='+newpos)
//--
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -