<script language=Javascript>
<!--//文字广告轮播代码;
today=new Date();
jran=today.getTime();
function rnd() {
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
return jran/(im*1.0);
};
function rand(number) {
return Math.ceil(rnd()*number);
};
for(i=1;i<=1;i++) {
myNum=(rand(6)); //广告文字数;
if(myNum == 1) document.write("<a href=\"http:\/\/bbs.codepub.com\/viewthread.php?tid=1781\" target=\"_blank\">冯梦祯龙井学买茶<\/a>");
if(myNum == 2) document.write("<a href=\"http:\/\/bbs.codepub.com\/viewthread.php?tid=1782\" target=\"_blank\">王先生坟苍水墓<\/a>");
if(myNum == 3) document.write("<a href=\"http:\/\/bbs.codepub.com\/viewthread.php?tid=1783\" target=\"_blank\">俞国宝一阙上青云<\/a>");
if(myNum == 4) document.write("<a href=\"http:\/\/bbs.codepub.com\/viewthread.php?tid=1784\" target=\"_blank\">白乐天醉洒茅家埠<\/a>");
if(myNum == 5) document.write("<a href=\"http:\/\/bbs.codepub.com\/viewthread.php?tid=1785\" target=\"_blank\">苏轼捐金表忠观<\/a>");
if(myNum == 6) document.write("<a href=\"http:\/\/bbs.codepub.com\/viewthread.php?tid=1786\" target=\"_blank\">罗隐诗谏使宅鱼<\/a>");
};
//-->
</script>
<!--头版头条滚动文字 begin-->
<script LANGUAGE='JavaScript'>
document.ns = navigator.appName == "Microsoft Internet Explorer"
function randomStr(str){
var showId=Math.floor(Math.random()*3);
var tempStr=str[showId];
str[showId]=str[0];
str[0]=tempStr;
}
function showStr(str,textWidth,num){
if(!document.ns){document.write(str[0]+'<br>')}
else{
document.write('<table border=0 cellspacing=0 cellpadding=0>'
+'<tr><td>'
+'<div id="icefable1'+num+'">'
+'<table width='+338+' border=0 cellspacing=0 cellpadding=0>'
+'<tr><td height=20>'+str[0]+'</td></tr>'
+'<tr><td height=20>'+str[1]+'</td></tr>'
+'<tr><td height=20>'+str[2]+'</td></tr>'
+'</table>'
+'</div>'
+'<div id="icefable2'+num+'" style="position:absolute;z-index:1;visibility:hidden"></div>'
+'</td></tr>'
+'</table>');
}
}
function init_srolltext(num){
countnum=0
marqueesHeight=20;
eval('stopscroll'+num+'=false;')
eval('icefable1'+num+'.scrollTop=0;')
rotatenum=0
eval('icefable1'+num+'.style.width=0;')
eval('icefable1'+num+'.style.height=marqueesHeight;')
eval('icefable1'+num+'.style.overflowX="visible";')
eval('icefable1'+num+'.style.overflowY="hidden";')
eval('icefable1'+num+'.noWrap=true;')
eval('icefable1'+num+'.onmouseover=new Function("stopscroll=true");')
eval('icefable1'+num+'.onmouseout=new Function("stopscroll=false");')
eval('preTop'+num+'=0; ')
eval('currentTop'+num+'=0;')
eval('stoptime'+num+'=0;')
eval('icefable2'+num+'.innerHTML="";')
eval('icefable2'+num+'.innerHTML+=icefable1'+num+'.innerHTML;')
eval('icefable1'+num+'.innerHTML=icefable2'+num+'.innerHTML+icefable2'+num+'.innerHTML;')
eval('setInterval("scrollUp'+num+'()",40);')
}
function scrollUp1(){
if(stopscroll1==true) return;
currentTop1+=1;
if(currentTop1==21){
stoptime1+=1;
currentTop1-=1;
if(stoptime1==80){
currentTop1=0;
stoptime1=0;
}
}else{
preTop1=icefable11.scrollTop;
icefable11.scrollTop+=1;
if(icefable11.scrollTop==78){
preTop1=0; currentTop1=0; stoptime1=0;icefable11.scrollTop=0
}
}
}
var strArray1=new Array();
strArray1[0]='<a href=http://www.zju-polyucenter.org/course_ire.htm target=_blank>国际房地产硕士班热招国际房地产硕士班热招!</a>'
strArray1[1]='<a href=http://univer.wellasia.org/kjj/ target=_blank>北科大电子媒体硕士热招</a>'
strArray1[2]='<a href=http://www.embaedu.com target=_blank>UTA-EMBA 10月27日开课</a>'
randomStr(strArray1);
showStr(strArray1,140,1);
init_srolltext(1);
</script>
<!--头版头条滚动文字 end-->
- 1
- 2
前往页