?? javascrip源碼:上行字幕程序源代.txt
字號:
JavaScrip源碼:上行字幕程序源代碼
--------------------------------------------------------------------------------
第八軍團 時間:2004-1-23 15:55:12
<head>
<title>上行字幕程序</title>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type">
<script>
<!--
lstart=80
loop=true
speed=150
pr_step=1
function makeObj(obj,nest){
nest=(!nest) ? '':'document.'+nest+'.'
this.css=(document.layers) ?
eval(nest+'document.'+obj):eval(obj+'.style')
this.scrollHeight=document.layers?this.css.document.height:eval(obj+'.offsetHeight')
this.up=goUp
this.obj = obj + "Object"
eval(this.obj + "=this")
return this
}
function goUp(speed){
if(parseInt(this.css.top)>-this.scrollHeight){
this.css.top=parseInt(this.css.top)-pr_step
setTimeout(this.obj+".up("+speed+")",speed)
}else if(loop) {
this.css.top=lstart
eval(this.obj+".up("+speed+")")
}
}
function slideInit(){
oSlide=makeObj('divNews','divCont')
oSlide.css.top=lstart
oSlide.up(speed)
}
onload=slideInit
//-->
</script>
<meta content="Microsoft FrontPage 3.0" name="GENERATOR">
</head>
--------------------------------------------------------------------------------
上面這個程序段放在網(wǎng)頁程序的最前面 <table border="0" width="100%">
<caption> </caption>
<tr>
<td width="30%"><div id="divCont"
style="CLIP: rect(0px 390px 80px 0px); HEIGHT: 50px; LEFT: 0px; POSITION: absolute; TOP: 150px; WIDTH: 200px"><div
id="divNews" style="HEIGHT: 60px; LEFT: 0px; POSITION: absolute; TOP: 0px; WIDTH: 0px"><table
border="0" width="214" height="1">
<TBODY>
<tr>
<td width="307" height="1"><span style="font-size: 10pt"><font color="#000000" size="2">這里填上你要顯示的內(nèi)容</font></font></span></td>
</tr>
</table>
</div></div><p> </td>
--------------------------------------------------------------------------------
注意:兩段程序不同顏色的字段表示可調(diào)參數(shù)
將這個程序段插到合適位置就可以了
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -