/****************只写一遍的代码****************/
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>1</title>
<STYLE>TD {
FONT-SIZE: 12px
}
.n02 {
FONT-SIZE: 14px; LINE-HEIGHT: 150%
}
</STYLE>
</head><body>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=14 height=23><FONT class=f7
color=#00349a>●</FONT></TD>
<TD class=n02> <SCRIPT language=JavaScript>var strArray=new Array();
strArray[0]='<a href=http://yp.sina.net/newslist2000-1.html target=_blank>想找供应商?来这里!商家急寻合资合作</a>'
strArray[1]='<a href=http://vip.sina.com.cn/sol_mail/promotion/pro_men8.html target=_blank>任你邮冬日送好礼 瑞士天梭名表+联想掌上电脑</a>'
strArray[2]='<a href=http://ad4.sina.com.cn/sina/xinlangwuxianzhaopin.html target=_blank>新浪招聘广告管理,设计,策划,销售,编辑等职位</a>'document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=100%>'
+'<div id="icefable1" style="width:300;">'
+'<table width=300 border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=300 height=21 class=n02>'+strArray[0]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray[1]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray[2]+'</td></tr>'
+'</td></tr>'
+'</table>'
+'</div>'
+'</td></tr>'
+'</table>');marqueesHeight=21;
stopscroll=false;
icefable1.scrollTop=0;with(icefable1){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}preTop=0; currentTop=21; stoptime=0;
icefable1.innerHTML+=icefable1.innerHTML;function init_srolltext(){
icefable1.scrollTop=0;
setInterval("scrollUp()",40);
}init_srolltext();function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==22)
{
stoptime+=1;
currentTop-=1;
if(stoptime==40)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=icefable1.scrollTop;
icefable1.scrollTop+=1;
if(preTop==icefable1.scrollTop){
icefable1.scrollTop=42;
icefable1.scrollTop+=1;
}
}
}</SCRIPT> </TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>1</title>
<STYLE>TD {
FONT-SIZE: 12px
}
.n02 {
FONT-SIZE: 14px; LINE-HEIGHT: 150%
}
</STYLE>
</head><body>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=14 height=23><FONT class=f7
color=#00349a>●</FONT></TD>
<TD class=n02> <SCRIPT language=JavaScript>var strArray=new Array();
strArray[0]='<a href=http://yp.sina.net/newslist2000-1.html target=_blank>想找供应商?来这里!商家急寻合资合作</a>'
strArray[1]='<a href=http://vip.sina.com.cn/sol_mail/promotion/pro_men8.html target=_blank>任你邮冬日送好礼 瑞士天梭名表+联想掌上电脑</a>'
strArray[2]='<a href=http://ad4.sina.com.cn/sina/xinlangwuxianzhaopin.html target=_blank>新浪招聘广告管理,设计,策划,销售,编辑等职位</a>'document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=100%>'
+'<div id="icefable1" style="width:300;">'
+'<table width=300 border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=300 height=21 class=n02>'+strArray[0]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray[1]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray[2]+'</td></tr>'
+'</td></tr>'
+'</table>'
+'</div>'
+'</td></tr>'
+'</table>');marqueesHeight=21;
stopscroll=false;
icefable1.scrollTop=0;with(icefable1){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}preTop=0; currentTop=21; stoptime=0;
icefable1.innerHTML+=icefable1.innerHTML;function init_srolltext(){
icefable1.scrollTop=0;
setInterval("scrollUp()",40);
}init_srolltext();function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==22)
{
stoptime+=1;
currentTop-=1;
if(stoptime==40)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=icefable1.scrollTop;
icefable1.scrollTop+=1;
if(preTop==icefable1.scrollTop){
icefable1.scrollTop=42;
icefable1.scrollTop+=1;
}
}
}</SCRIPT> </TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>
解决方案 »
- 这种写法为什么会报错?
- 求个简单的正规表达式!
- 怎么利用JavaScript读取百度rss?
- 鼠标事件attachEvent引起的奇怪问题?
- 如何动态改变frame的宽度
- 为什么 input在ie6下 不显示
- 问一个小问题,很急答对就给分!
- ▇▇▇▇▇关于javascript自定义对象问题,我错在哪了?
- 如何对一段JS代码进行编译(加密),又如何反编译(解密)
- 怎么切换两个input里面的值
- Netscape下"access disallowed from scripts at <javascriptdomain> to documents"的问题.
- 用JAVASCRIPT写一个取得日期前一天和后一天的函数???
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>2</title>
<STYLE>TD {
FONT-SIZE: 12px
}
.n02 {
FONT-SIZE: 14px; LINE-HEIGHT: 150%
}</STYLE>
</head><body>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=14 height=23><FONT class=f7
color=#00349a>●</FONT></TD>
<TD class=n02> <SCRIPT language=JavaScript>var strArray=new Array();
strArray[0]='<a href=http://yp.sina.net/newslist2000-1.html target=_blank>想找供应商?来这里!商家急寻合资合作</a>'
strArray[1]='<a href=http://vip.sina.com.cn/sol_mail/promotion/pro_men8.html target=_blank>任你邮冬日送好礼 瑞士天梭名表+联想掌上电脑</a>'
strArray[2]='<a href=http://ad4.sina.com.cn/sina/xinlangwuxianzhaopin.html target=_blank>新浪招聘广告管理,设计,策划,销售,编辑等职位</a>'document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=100%>'
+'<div id="icefable1" style="width:300;">'
+'<table width=300 border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=300 height=21 class=n02>'+strArray[0]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray[1]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray[2]+'</td></tr>'
+'</td></tr>'
+'</table>'
+'</div>'
+'</td></tr>'
+'</table>');marqueesHeight=21;
stopscroll=false;
icefable1.scrollTop=0;with(icefable1){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}preTop=0; currentTop=21; stoptime=0;
icefable1.innerHTML+=icefable1.innerHTML;function init_srolltext(){
icefable1.scrollTop=0;
setInterval("scrollUp()",40);
}init_srolltext();function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==22)
{
stoptime+=1;
currentTop-=1;
if(stoptime==40)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=icefable1.scrollTop;
icefable1.scrollTop+=1;
if(preTop==icefable1.scrollTop){
icefable1.scrollTop=42;
icefable1.scrollTop+=1;
}
}
}</SCRIPT> </TD>
</TR>
</TBODY>
</TABLE>
<p> </p>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=14 height=23><FONT class=f7
color=#00349a>●</FONT></TD>
<TD class=n02> <SCRIPT language=JavaScript>var strArray=new Array();
strArray[0]='<a href=http://yp.sina.net/newslist2000-1.html target=_blank>想找供应商?来这里!商家急寻合资合作</a>'
strArray[1]='<a href=http://vip.sina.com.cn/sol_mail/promotion/pro_men8.html target=_blank>任你邮冬日送好礼 瑞士天梭名表+联想掌上电脑</a>'
strArray[2]='<a href=http://ad4.sina.com.cn/sina/xinlangwuxianzhaopin.html target=_blank>新浪招聘广告管理,设计,策划,销售,编辑等职位</a>'document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=100%>'
+'<div id="icefable2" style="width:300;">'
+'<table width=300 border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=300 height=21 class=n02>'+strArray[0]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray[1]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray[2]+'</td></tr>'
+'</td></tr>'
+'</table>'
+'</div>'
+'</td></tr>'
+'</table>');marqueesHeight=21;
stopscroll=false;
icefable2.scrollTop=0;with(icefable2){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}preTop=0; currentTop=21; stoptime=0;
icefable2.innerHTML+=icefable2.innerHTML;function init_srolltext(){
icefable2.scrollTop=0;
setInterval("scrollUp()",40);
}init_srolltext();function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==22)
{
stoptime+=1;
currentTop-=1;
if(stoptime==40)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=icefable2.scrollTop;
icefable2.scrollTop+=1;
if(preTop==icefable2.scrollTop){
icefable2.scrollTop=42;
icefable2.scrollTop+=1;
}
}
}</SCRIPT> </TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>2</title>
<STYLE>TD {
FONT-SIZE: 12px
}
.n02 {
FONT-SIZE: 14px; LINE-HEIGHT: 150%
}</STYLE>
</head><body>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=14 height=23><FONT class=f7
color=#00349a>●</FONT></TD>
<TD class=n02> <SCRIPT language=JavaScript>var strArray1=new Array();
strArray1[0]='<a href=http://yp.sina.net/newslist2000-1.html target=_blank>想找供应商?来这里!商家急寻合资合作</a>'
strArray1[1]='<a href=http://vip.sina.com.cn/sol_mail/promotion/pro_men8.html target=_blank>任你邮冬日送好礼 瑞士天梭名表+联想掌上电脑</a>'
strArray1[2]='<a href=http://ad4.sina.com.cn/sina/xinlangwuxianzhaopin.html target=_blank>新浪招聘广告管理,设计,策划,销售,编辑等职位</a>'document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=100%>'
+'<div id="icefable1" style="width:300;">'
+'<table width=300 border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=300 height=21 class=n02>'+strArray1[0]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray1[1]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray1[2]+'</td></tr>'
+'</td></tr>'
+'</table>'
+'</div>'
+'</td></tr>'
+'</table>');marqueesHeight1=21;
stopscroll1=false;
icefable1.scrollTop=0;with(icefable1){
style.width=0;
style.height=marqueesHeight1;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll1=true");
onmouseout=new Function("stopscroll1=false");
}preTop1=0; currentTop1=21; stoptime1=0;
icefable1.innerHTML+=icefable1.innerHTML;function init_srolltext1(){
icefable1.scrollTop=0;
setInterval("scrollUp1()",40);
}
init_srolltext1();function scrollUp1(){
if(stopscroll1==true) return;
currentTop1+=1;
if(currentTop1==22)
{
stoptime1+=1;
currentTop1-=1;
if(stoptime1==40)
{
currentTop1=0;
stoptime1=0;
}
}
else {
preTop1=icefable1.scrollTop;
icefable1.scrollTop+=1;
if(preTop1==icefable1.scrollTop){
icefable1.scrollTop=42;
icefable1.scrollTop+=1;
}
}
}</SCRIPT> </TD>
</TR>
</TBODY>
</TABLE>
<p> </p>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=14 height=23><FONT class=f7
color=#00349a>●</FONT></TD>
<TD class=n02> <SCRIPT language=JavaScript>var strArray1=new Array();
strArray1[0]='<a href=http://yp.sina.net/newslist2000-1.html target=_blank>想找供应商?来这里!商家急寻合资合作</a>'
strArray1[1]='<a href=http://vip.sina.com.cn/sol_mail/promotion/pro_men8.html target=_blank>任你邮冬日送好礼 瑞士天梭名表+联想掌上电脑</a>'
strArray1[2]='<a href=http://ad4.sina.com.cn/sina/xinlangwuxianzhaopin.html target=_blank>新浪招聘广告管理,设计,策划,销售,编辑等职位</a>'document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=100%>'
+'<div id="icefable2" style="width:300;">'
+'<table width=300 border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=300 height=21 class=n02>'+strArray1[0]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray1[1]+'</td></tr>'
+'<tr><td height=21 class=n02>'+strArray1[2]+'</td></tr>'
+'</td></tr>'
+'</table>'
+'</div>'
+'</td></tr>'
+'</table>');marqueesHeight=21;
stopscroll=false;
icefable2.scrollTop=0;with(icefable2){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}preTop=0; currentTop=21; stoptime=0;
icefable2.innerHTML+=icefable2.innerHTML;function init_srolltext(){
icefable2.scrollTop=0;
setInterval("scrollUp()",40);
}init_srolltext();function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==22)
{
stoptime+=1;
currentTop-=1;
if(stoptime==40)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=icefable2.scrollTop;
icefable2.scrollTop+=1;
if(preTop==icefable2.scrollTop){
icefable2.scrollTop=42;
icefable2.scrollTop+=1;
}
}
}</SCRIPT> </TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>