1.新增到收藏夾
HTML程式碼
<script Language="Javascript">
function bookmarkit()
{
window.external.addFavorite('<a href="http://" target="_blank" rel="external">http://</a>你的網址','你的網站名稱')
}
if (document.all)document.write('<a href="#" onClick="bookmarkit()">加入收藏夾</a>')
</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
2.讓超連結不顯示底線
HTML程式碼
<style type="text/css">
<!-
a:link{text-decoration:none}
a:hover{text-decoration:none}
a:visited{text-decoration:none}
->
</style>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
3.禁止滑鼠右鍵的動作
HTML程式碼<script Language = "Javascript">
function click() { if (event.button==2||event.button==3)
{
alert('禁止滑鼠右鍵');
}
document.onmousedown=click // -->
</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
4.設定此頁為首頁
HTML程式碼<body bgcolor="#FFFFFF" text="#000000">
<!-- 你的網址:<a href=" http://www.code-123.com/wlbc/asp/list_1.html --" target="_blank" rel="external">http:// www.code-123.com/wlbc/asp/list_1.html--</a>>
<a style="cursor:hand" HREF
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('你的網站名稱);"><font color="000000" size="2" face="宋體">設為首頁</font></a>
</body> </TEXTAREA><br/><INPUT onclick="runEx('temp99357')" type="button" class="userbutton" value="執行此程式碼"/> <INPUT onclick="doCopy( 'temp99357')" type="button" class="userbutton" value="複製此代碼"/> <INPUT onclick="saveCode('temp99357')" type="button" class="userbutton" value="保存此程式碼">[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按執行]</div></div><br/><br/>5.讓文字不停地滾動 <br/><br/><div class="UBBPanel"><EM onClick="copycode(code86103);">複製內容到剪貼簿</EM><H5> <img src="images/code.gif" style="margin:0px 2px -3px 0px;border:0" alt="程式碼"/>程式碼</H5><div class="UBBContent" id=code86103 > <MARQUEE>滾動文字</MARQUEE> </div></div> <br/><br/>6.記錄並顯示網頁的最後修改時間 <br/><br/><div class="UBBPanel"><EM onClick="copycode(code77817);">複製內容到剪貼簿</EM>< H5><img src="images/code.gif" style="margin:0px 2px -3px 0px;border:0" alt="程式碼"/>程式碼</H5><div class="UBBContent" id =code77817> <script language=Javascript> <br/> document.write("最後更新時間: " + document.lastModified + "") <brsp; <brsp; /> </script> </div></div> <br/><br/>7.關閉目前視窗 <br/><br/><div class="UBBPanel"><EM onClick="copycode(code55791);">複製內容到剪貼簿</EM><H5><img src ="images/code.gif" style="margin:0px 2px -3px 0px;border:0" alt="程式碼"/>程式碼</H5><div class="UBBContent" id=code55791>< a href="/"onClick="javascript:window.close();return false;">關閉視窗</a> </div></div><br/><br/> 8.5秒後關閉目前頁 <br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="images/html.gif" style=" margin:0px 2px -3px 0px"> HTML程式碼</div><div class="UBBContent"><TEXTAREA rows="8" id="temp66245"><script language="Javascript">
<!--
setTimeout('window.close();',5000);
-->
</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按執行]
9.2秒後載入指定網頁
HTML程式碼
<head>
<meta http-equiv="refresh" content="2;URL=http://你的網址">
</head>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
10.節日倒數
HTML代碼
<script Language="Javascript">
var timedate= new Date("December 25,2003");
var times="聖誕節";
var now = new Date();
var date = timedate.getTime() - now.getTime();
var time = Math.floor(date / (1000 * 60 * 60 * 24));
if (time >= 0)
document.write("現在離"+times+"還有: "+time +"天")</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
11.水中倒影效果
HTML代碼
<img id="reflect" src="自己的圖片檔名" width="175" height="59">
<script language="Javascript">
function f1()
{
setInterval("mdiv.filters.wave.phase+=10",100);
}
if (document.all)
{
document.write('<img id=mdiv src="'+document.all.reflect.src+'"
style="filter:wave(strength=3,freq=3,phase=0,lightstrength=30) blur() flipv()">')
window.onload=f1
}
</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
12.慢慢變大的視窗
HTML程式碼
<script Language="Javascript">
<!--
var Windowsheight=100
var Windowswidth=100
var numx=5
function openwindow(thelocation){
temploc=thelocation
if
(!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById))
{
window.open(thelocation)
return
}
windowsize=window.open("","","scrollbars")
windowsize.moveTo(0,0)
windowsize.resizeTo(100,100)
tenumxt()
}
function tenumxt(){
if (Windowsheight>=screen.availHeight-3)
numx=0
windowsize.resizeBy(5,numx)
Windowsheight+=5
Windowswidth+=5
if (Windowswidth>=screen.width-5)
{
windowsize.location=temploc
Windowsheight=100
Windowswidth=100
numx=5
return
}
setTimeout("tenumxt()",50)
}
//-->
</script>
<p> <a href="javascript:openwindow(<a href=" http://www.code-123.com " target="_blank" rel="external"> http://www.code-123. com</a>)">進入</a>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
13.改變IE網址列的IE圖示
複製內容到剪貼簿程式碼我們要先做一個16*16的icon(圖示檔),儲存為index.ico。把這個圖示檔案上傳到根目錄下並在首頁<head></head>之間加上如下程式碼:
<link REL = "Shortcut Icon" href="index.ico">
14.點選按鈕列印出目前頁
HTML程式碼
<script Language="Javascript">
<!-- Begin
if (window.print) {
document.write('<form>'
+ '<input type=button name=print value="列印本頁" '
+ 'onClick="javascript:window.print()"></form>');
}
// End -->
</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
15.點選按鈕'另存為'目前頁
HTML程式碼
<input type="button" name="Button" value="儲存本頁"
onClick="document.all.button.ExecWB(4,1)">
<object id="button"
width=0
height=0
classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
<embed width="0" height="0"></embed>
</object>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
16.顯示系統目前日期
HTML程式碼
<script language=Javascript>
today=new Date();
function date(){
this.length=date.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=date.arguments }
var d=new date("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
document.write(
"<font color=##000000 style='font-size:9pt;font-family: 宋體'> ",
today.getYear(),"年",today.getMonth()+1,"月",today.getDate(),"日",
d[today.getDay()+1],"</font>" );
</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
17.不同時段顯示不同問候語
HTML代碼
<script Language="Javascript">
<!--
var text=""; day = new Date( ); time = day.getHours( );
if (( time>=0) && (time < 7 ))
text="夜貓子,要注意身體哦! "
if (( time >= 7 ) && (time < 12))
text="今天天氣…哈哈哈,不去玩嗎?"
if (( time >= 12) && (time < 14))
text="午休時間哦,朋友一定是不習慣午睡的吧?!"
if (( time >=14) && (time < 18))
text="下午茶的時間到了,休息一下吧! "
if ((time >= 18) && (time <= 22))
text="您又來了,可別跟MM聊太久哦!"
if ((time >= 22) && (time < 24))
text="很晚了哦,注意休息呀!"
document.write(text)
//--->
</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
18.不間斷音樂
HTML程式碼
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href=" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " target= "_blank" rel="external">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>">
<html xmlns="<a href=" http://www.w3.org/1999/xhtml " target="_blank" rel="external">http://www.w3.org/1999/xhtml</ a>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<p>
<input name="src" type="file" id="src" value="E:music2fighter.mp3" />
</p>
<p>
<input type="button" name="button" id="button" value="Play" onclick="play(document.getElementById('src').value)" />
<input type="button" name="button2" id="button2" value="Stop" onclick="stop()" />
<input type="button" name="button2" id="button2" value="Pause" onclick="pause()" />
</p>
</body>
</html>
<script>
var player = new ActiveXObject("MediaPlayer.MediaPlayer");
function play(pSrc){
if(pSrc == ""){
alert("請選擇您要播放的音樂!");
return ;
}
player.Open(pSrc);
}
function stop(){
player.Stop();
}
function pause(){
player.Pause();
}
</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
19.上下左右不間斷無縫滾動圖片的效果(相容於火狐和IE)
HTML程式碼
<html xmlns="<a href=" http://www.w3.org/1999/xhtml " target="_blank" rel="external">http://www.w3.org/1999/xhtml</ a>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>向上下左右不間斷無縫滾動圖片的效果(相容於火狐和IE)</title>
</head>
<body>
<!--下面是向上捲動程式碼-->
<div id=jsweb8_cn_top style=overflow:hidden;height:100;width:90;>
<div id=jsweb8_cn_top1>
<img src="<a href =" <img src=" <a href=" < img src="<a href=" < img src="<a href=" <img src="<a href=" <img src="<a href=" <img src=" <a href=" <img src="<a href=" <img src="<a href=" </div>
<div id=jsweb8_cn_top2></div>
</div>
<script>
var speed=30
jsweb8_cn_top2.innerHTML=jsweb8_cn_top1.innerHTML //複製jsweb8_cn_top1為jsweb8_cn_top2
function Marquee1(){
//滾動至jsweb8_cn_top1與jsweb8_cn_top2交界時
if(jsweb8_cn_top2.offsetTop-jsweb8_cn_top.scrollTop<=0)
jsweb8_cn_top.scrollTop-=jsweb8_cn_top1.offsetHeight //jsweb8_cn_top跳到最頂端
else{
jsweb8_cn_top.scrollTop++;
}
}
var MyMar1=setInterval(Marquee1,speed)//設定計時器
//滑鼠移上時清除定時器達到滾動停止的目的
jsweb8_cn_top.onmouseover=function() {clearInterval(MyMar1)}
//滑鼠移開時重設定時器
jsweb8_cn_top.onmouseout=function(){MyMar1=setInterval(Marquee1,speed)}
</script>
<!--向上捲動程式碼結束-->
<br>
<!--下面是向下捲動程式碼-->
<div id=jsweb8_cn_bottom style=overflow:hidden;height:100;width:90;>
<div id=jsweb8_cn_bottom1>
<img src="<a href =" <img src=" <a href=" < img src="<a href=" < img src="<a href=" <img src="<a href=" <img src="<a href=" <img src=" <a href=" <img src="<a href=" <img src="<a href=" </div>
<div id=jsweb8_cn_bottom2></div>
</div>
<script>
var speed=30
jsweb8_cn_bottom2.innerHTML=jsweb8_cn_bottom1.innerHTML
jsweb8_cn_bottom.scrollTop=jsweb8_cn_bottom.scrollHeight
function Marquee2(){
if(jsweb8_cn_bottom1.offsetTop-jsweb8_cn_bottom.scrollTop>=0)
jsweb8_cn_bottom.scrollTop+=jsweb8_cn_bottom2.offsetHeight
else{
jsweb8_cn_bottom.scrollTop--
}
}
var MyMar2=setInterval(Marquee2,speed)
jsweb8_cn_bottom.onmouseover=function() {clearInterval(MyMar2)}
jsweb8_cn_bottom.onmouseout=function() {MyMar2=setInterval(Marquee2,speed)}
</script>
<!--向下捲動程式碼結束-->
<br>
<!--下面是向左滾動程式碼-->
<div id="jsweb8_cn_left" style="overflow:hidden;width:500px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td id="jsweb8_cn_left1" valign="top" align="center">
<table cellpadding="2" cellspacing="0" border="0">
<tr align="center">
<td><img src="<a href=" <td><img src="<a href=" <td><img src="<a href=" <td><img src="<a href =" <td><img src="<a href=" <td><img src="<a href=" <td><img src="<a href=" </tr>
</table>
</td>
<td id="jsweb8_cn_left2" valign="top"></td>
</tr>
</table>
</div>
<script>
var speed=30//速度數值越大速度越慢
jsweb8_cn_left2.innerHTML=jsweb8_cn_left1.innerHTML
function Marquee3(){
if(jsweb8_cn_left2.offsetWidth-jsweb8_cn_left.scrollLeft<=0)
jsweb8_cn_left.scrollLeft-=jsweb8_cn_left1.offsetWidth
else{
jsweb8_cn_left.scrollLeft++
}
}
var MyMar3=setInterval(Marquee3,speed)
jsweb8_cn_left.onmouseover=function() {clearInterval(MyMar3)}
jsweb8_cn_left.onmouseout=function() {MyMar3=setInterval(Marquee3,speed)}
</script>
<!--向左滾動程式碼結束-->
<br>
<!--下面是向右捲動程式碼-->
<div id="jsweb8_cn_right" style="overflow:hidden;width:500px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td id="jsweb8_cn_right1" valign="top" align="center">
<table cellpadding="2" cellspacing="0" border="0">
<tr align="center">
<td><img src="<a href=" <td><img src="<a href=" <td><img src="<a href=" <td><img src="<a href =" <td><img src="<a href=" </tr>
</table>
</td>
<td id="jsweb8_cn_right2" valign="top"></td>
</tr>
</table>
</div>
<script>
var speed=30//速度數值越大速度越慢
jsweb8_cn_right2.innerHTML=jsweb8_cn_right1.innerHTML
function Marquee4(){
if(jsweb8_cn_right.scrollLeft<=0)
jsweb8_cn_right.scrollLeft+=jsweb8_cn_right2.offsetWidth
else{
jsweb8_cn_right.scrollLeft--
}
}
var MyMar4=setInterval(Marquee4,speed)
jsweb8_cn_right.onmouseover=function() {clearInterval(MyMar4)}
jsweb8_cn_right.onmouseout=function() {MyMar4=setInterval(Marquee4,speed)}
</script>
<!--向右捲動程式碼結束-->
</body>
</html>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
20.不間斷向左滾動
HTML程式碼
<div id=demo style=overflow:hidden;height:139;width:232;background:#f4f4f4;color:#ffffff><table align=left cellpadding=0 cellspace=0 border=0><tr><td id =demo1 valign=top><img src="<a href=" <script>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按執行]
21.不間斷向右滾動
HTML程式碼
<div id=demo style=overflow:hidden;height:139;width:232;background:#f4f4f4;color:#ffffff><table align=left cellpadding=0 cellspace=0 border=0><tr><td id =demo1 valign=top><img src="<a href=" <script>
var speed=30
demo2.innerHTML=demo1.innerHTML
demo.scrollLeft=demo.scrollWidth
function Marquee(){
if(demo.scrollLeft<=0)
demo.scrollLeft+=demo2.offsetWidth
else{
demo.scrollLeft--
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按執行]
連續滾動或不間斷滾動程式碼(各種滾動方式)相容IE和FireFox Opera 傲遊等瀏覽器的間隔滾動程式碼
由左向右方法一:
HTML程式碼
<div id=demo style="OVERFLOW: hidden; WIDTH: 980px; height: 80px;align: center">
<table cellspacing="0" cellpadding="0" align="center"
border="0">
<tbody>
<tr>
<td id="marquePic1" valign="top">
<table width="980" height="80" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="148" height="60" bgcolor="#F2F6FB"><a href="#" target="_blank"><img src="/img/bottom_ad01.gif" border="0"> </a></td>
<td width="148" height="60" bgcolor="#F2F6FB"><a href="#" target="_blank"><img src="/img/bottom_ad02.gif" border="0"> </a></td>
<td width="148" height="60" bgcolor="#F2F6FB"><a href="#" target="_blank"><img src="/img/bottom_ad03.gif" border="0"> </a></td>
<td width="148" height="60" bgcolor="#F2F6FB"><a href="#" target="_blank"><img src="/img/bottom_ad04.gif" border="0"> </a></td>
<td width="148" height="60" bgcolor="#F2F6FB"><a href="#" target="_blank"><img src="/img/bottom_ad05.gif" border="0"> </a></td>
<td width="148" height="60" bgcolor="#F2F6FB"><a href="/info/about.asp?id=4" target="_blank"><img src="/img/bottom_ad06 .gif" border="0"></a></td>
</tr>
</table>
</td>
<td id="marquePic2" valign="top"></td>
</tr>
</tbody>
</table>
</div>
<script type=text/javascript>
var speed=80 <!--值越大越慢-->
marquePic2.innerHTML=marquePic1.innerHTML
function Marquee(){
if(demo.scrollLeft>=marquePic1.scrollWidth){
demo.scrollLeft=0
}else{
demo.scrollLeft++
}}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按執行]
由下向上方法一:
HTML程式碼
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr> <td align="center"> <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="194" style="padding-top:8px" valign="top">
<DIV id=rolllinkk style="OVERFLOW: hidden; WIDTH: 145px; HEIGHT: 200px">
<DIV id=rolllinkk1>
<!-- 以下是你要顯示的內容-->
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr> <td align="center">最牛交通工具</td> </tr>
<tr> <td align="center">最牛交通工具</td> </tr>
<tr> <td align="center">最牛交通工具</td> </tr>
<tr> <td align= "center">最牛交通工具</td> </tr>
<tr> <td align="center">最牛交通工具</td> </tr>
<tr> <td align="center">最牛交通工具</td> </tr>
<tr> <td align="center">最牛交通工具</td> </tr>
<tr> <td align="center">最牛交通工具</td> </tr>
<tr> <td align="center">最牛交通工具</td> </tr>
<tr> <td align="center">最牛交通工具</td> </tr>
<tr> <td align="center">最牛交通工具</td> </tr>
</table>
<!-- 顯示的內容結束! -->
<DIV align=center> </DIV> </DIV>
<DIV id=rolllinkk2>
<DIV align=center> </DIV> </DIV> </DIV>
<SCRIPT>
var rollspeed=30
rolllinkk2.innerHTML=rolllinkk1.innerHTML //
function Marquee1(){
if(rolllinkk2.offsetTop-rolllinkk.scrollTop <=0) //
rolllinkk.scrollTop-=rolllinkk1.offsetHeight //
else{
rolllinkk.scrollTop++
}
}
var MyMar1=setInterval(Marquee1,rollspeed) //
rolllinkk.onmouseover=function() {clearInterval(MyMar1)}//
rolllinkk.onmouseout=function() {MyMar1=setInterval(Marquee1,rollspeed)}//
</SCRIPT>
</td>
</tr>
</table>
</td> </tr>
</table>
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按運行]
不間斷多行滾動,可控制按鈕
HTML程式碼
<script language="JavaScript" defer>
//qswh's original and modifid by windy_sk < [email protected] > 20040120
function reportError(msg,url,line) {
var str = "You have found an error as below: nn";
str += "Err: " + msg + " on line: " + line;
alert(str);
return true;
}
window.onerror = reportError;
var obj_marquee = document.getElementById("marquee");
var repeat = null;
var marquee_spd = 50;
function marquee_init() {
var obj_unit = obj_marquee.firstChild;
var marquee_high = parseInt(obj_marquee.style.height);
var marquee_wide = parseInt(obj_marquee.style.width);
var unit_high = obj_unit.offsetHeight;
var unit_wide = obj_unit.offsetWidth;
var m = 0, n = 0, i = 0;
var tmp = null;
m = Math.ceil(marquee_wide / unit_wide);
n = Math.ceil(marquee_high / unit_high);
obj_unit.style.width = marquee_wide * (m+1);
obj_unit.rows[0].cells[0].style.width = obj_marquee.style.width;
for(i=0; i<m; i++) {
tmp = obj_unit.rows[0].insertCell(-1);
tmp.innerHTML = obj_unit.rows[0].cells[0].innerHTML;
tmp.style.width = marquee_wide;
tmp = null;
}
for(i=0; i<n; i++) {
obj_marquee.appendChild(obj_unit.cloneNode(true));
}
return;
}
function marquee_show(direction) {
switch(direction) {
case "up":
if(obj_marquee.scrollTop >= obj_marquee.children[1].offsetTop) {
obj_marquee.scrollTop -= obj_marquee.firstChild.offsetHeight;
} else {
obj_marquee.scrollTop++;
}
break;
case "down":
if(obj_marquee.scrollTop <= 0) {
obj_marquee.scrollTop += obj_marquee.firstChild.offsetHeight;
} else {
obj_marquee.scrollTop--;
}
break;
case "left":
if(obj_marquee.scrollLeft >= obj_marquee.firstChild.rows[0].cells[0].offsetWidth) {
obj_marquee.scrollLeft -= obj_marquee.firstChild.rows[0].cells[0].offsetWidth;
} else {
obj_marquee.scrollLeft++;
}
break;
case "right":
if(obj_marquee.scrollLeft <= 0) {
obj_marquee.scrollLeft += obj_marquee.firstChild.rows[0].cells[0].offsetWidth;
} else {
obj_marquee.scrollLeft--;
}
break;
default:
break;
}
return;
}
function marquee_doit() {
var direction = "";
direction = obj_marquee.getAttribute("direction");
if(direction != null) marquee_show(direction);
direction = obj_marquee.getAttribute("direction2");
if(direction != null) marquee_show(direction);
return;
}
marquee_init();
repeat = setInterval("marquee_doit()",marquee_spd);
marquee.onmouseover = function() {clearInterval(repeat);}
marquee.onmouseout = function() {repeat=setInterval("marquee_doit()",marquee_spd);}
</script>
<table style="border:1px black solid;"><tr><td>
<div id="marquee" direction="up" style="overflow:hidden;height:200px;width:250px">
<table style="border:0px;padding:0px;"><tr><td>
<!-- Marquee Body Head -->
<a href="#" target="_blank">經典論壇</a><br>
<a href="#" target="_blank">163.com</a><br>
<a href="#" target="_blank">21cn.com</a><br>
<a href="#" target="_blank">Happy new year</a>
<!-- Marquee Body Bottom -->
</td></tr></table>
</div>
</td></tr></table>
Direction1:
<input type="button" value="↑" onclick="obj_marquee.direction='up'">
<input type="button" value="↓" onclick="obj_marquee.direction='down'">
<input type="button" value="←" onclick="obj_marquee.direction='left'">
<input type="button" value="→" onclick="obj_marquee.direction='right'">
<input type="button" value=" X " onclick="obj_marquee.direction=''"> <br>
Direction2:
<input type="button" value="↑" onclick="obj_marquee.direction2='up'">
<input type="button" value="↓" onclick="obj_marquee.direction2='down'">
<input type="button" value="←" onclick="obj_marquee.direction2='left'">
<input type="button" value="→" onclick="obj_marquee.direction2='right'">
<input type="button" value=" X " onclick="obj_marquee.direction2=''">
[Ctrl+A 全部選擇提示:你可先修改部分程式碼,再按執行]