请问怎样在一个表格里面字体从下至上升上去,做到像字幕的效果一样? <table width=100 height=100><td><marquee direction=up>hehe</marquee></td></table> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <table width="780" border="1" cellspacing="0" cellpadding="0" height="400"> <tr> <td width="780"> <marquee ehavior=scroll direction="up" height=400 width=780 scrollamont=50 scrolldely=20> fdgsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss<br> fffffffffff<br> fffffffffffffffffffffffffffffhhhhhhhhhhhhhhhhhhhhhh<br> jjjjjjjjjjjjjjjjjjjjjjjjjj<br> jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj<br> jhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh </marquee> </td> </tr></table> 呵呵,秋水的解答总是出人意表。看了题目我还在想贴个用span做的移动层上来呢。 是不是想要这样的效果呀:http://www.1studio.net/html/example/0044/0044.htm....... 是不是想要这样的效果呀:http://www.1studio.net/html/example/0044/0044.htm....... <SCRIPT language=JavaScript1.2> file://设置宽度(像素) var marqueewidth=150 //设置高度 var marqueeheight=60 //设置速度 var speed=1 //设置显示内容,你可以预先写好一段HTML代码再放上去. var marqueecontents='<div align=left><a target="_blank"><font color="#00000" size="1"><span style="font size=9pt"> 本页所展示的图标,均为<br>站长平时上网期间收集起来<br>,这次拿出来与大家一起分<Br>享,同时也希望您能把您认<br>为好的图标邮寄给站长,让<br>大家与您一起分享,另外如<br>果本站所收集的作品,对您<br>造成伤害请来信告之,以便<br>站长及时更新,谢谢合作。</span></font></a> ' marqueecontents=marqueecontents+'<br></div>' if(document.all) document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>') function regenerate(){window.location.reload() }function regenerate2(){if(document.layers){setTimeout("window.onresize=regenerate",450) intializemarquee() }}function intializemarquee(){document.cmarquee01.document.cmarquee02.document.write(marqueecontents) document.cmarquee01.document.cmarquee02.document.close() thelength=document.cmarquee01.document.cmarquee02.document.height scrollit() }function scrollit(){if(document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){document.cmarquee01.document.cmarquee02.top-=speed setTimeout("scrollit()",100) }else{document.cmarquee01.document.cmarquee02.top=marqueeheight scrollit() }} </SCRIPT> <table width=100 height=100><td><marquee direction=up>hehe</marquee></td></table>已经很好了,比用JavaScript语言编写的程序简单多了! 关键是direction=down 这一句!添上就可以了!<!--将down改为up即可//--> <marquee direction=up scrollamount=3 scrolldelay=100 onmouseover='this.stop()' onmouseout='this.start()'> 感谢虾米为本站提供背景图片以及网站logo。<br> 感谢调调为本站提供栏目图片以及网站logo。<br> 感谢BLUES的所有用户,还有yoyo(chris)。</marquee>没有必要自己做,直接用marquee指定方向就可以了 js点击一个摁钮,怎么触发2个事件,我只写了一个,代码已经贴出来,求帮助 高分求解!大家帮忙看下这段代码有什么问题!为什么总报这个错误!急,在线! 改变窗口? 用脚本怎么样获得a标记的id 哪位知道DTD为什么会对Javascript产生影响? 如何将table 隐藏 图片变色的功能 列表框全部选中的问题,在线等! 不知道能不能解决的问题? easyui插件开发 急救!!在线等待!!! 复选框问题...谢谢 !
<tr>
<td width="780">
<marquee ehavior=scroll direction="up" height=400 width=780 scrollamont=50 scrolldely=20>
fdgsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss<br>
fffffffffff<br>
fffffffffffffffffffffffffffffhhhhhhhhhhhhhhhhhhhhhh<br>
jjjjjjjjjjjjjjjjjjjjjjjjjj<br>
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj<br>
jhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
</marquee>
</td>
</tr>
</table>
file://设置宽度(像素)
var marqueewidth=150
//设置高度
var marqueeheight=60
//设置速度
var speed=1
//设置显示内容,你可以预先写好一段HTML代码再放上去.
var marqueecontents='<div align=left><a target="_blank"><font color="#00000" size="1"><span style="font size=9pt"> 本页所展示的图标,均为<br>站长平时上网期间收集起来<br>,这次拿出来与大家一起分<Br>享,同时也希望您能把您认<br>为好的图标邮寄给站长,让<br>大家与您一起分享,另外如<br>果本站所收集的作品,对您<br>造成伤害请来信告之,以便<br>站长及时更新,谢谢合作。</span></font></a> '
marqueecontents=marqueecontents+'<br></div>'
if(document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')
function regenerate(){window.location.reload()
}function regenerate2(){if(document.layers){setTimeout("window.onresize=regenerate",450)
intializemarquee()
}}function intializemarquee(){document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()
}function scrollit(){if(document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}else{document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}}
</SCRIPT>
已经很好了,比用JavaScript语言编写的程序简单多了!
<!--将down改为up即可//-->
感谢虾米为本站提供背景图片以及网站logo。<br>
感谢调调为本站提供栏目图片以及网站logo。<br>
感谢BLUES的所有用户,还有yoyo(chris)。
</marquee>没有必要自己做,直接用marquee指定方向就可以了