http://220.135.197.13...dex1.htm 這是小弟做的範例
但是左邊的MENU都會躲到FLASH之後 好無奈喔~~
以下是原始檔 希望哪位大大可一交交我 謝謝
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<META NAME="keywords CONTENT="這裡寫關鍵字">
<META NAME="description" CONTENT="有關你頁面的描述">
<title>台北羽毛公館店</title>
<script src="rainbow.js"></script>
<style>
a{text-decoration:none}
</style>
</head>
<body>
<marquee id="alertit" style="position:absolute;left:0px;top:0;background-color:#64D0FE" onMouseover="this.scrollAmount=1" onMouseout="this.scrollAmount=speed"></marquee>
<script type="text/javascript">
//Customize your message here. Use any HTML desired:
var themsg='<span style="font:italic 22px Arial;color:red;"><b>歡迎光臨《台北羽毛公館店》: <a href="" target="_blank">特賣快報</a></b></span>'
var speed=6 //指定本跑馬燈特效的速度 (1-10 or more)
var loops=2 //指定本跑馬燈特效的捲動次數 (設定 "infinite" 為無限的捲動次數)
function populatescroller(){
var windowwidth=iecompattest().clientWidth
document.getElementById("alertit").innerHTML=themsg
document.getElementById("alertit").style.width=windowwidth
document.getElementById("alertit").scrollAmount=speed
document.getElementById("alertit").scrollDelay=20
document.getElementById("alertit").loop=loops
document.getElementById("alertit").onfinish=function(){
document.getElementById("alertit").style.visibility="hidden"
}
}
function iecompattest(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}
if (document.all && document.getElementById){
window.onload=populatescroller
window.onresize=populatescroller
}
</script>
<table width="956" height="177" border="0" align="center">
<tr>
<td height="112" valign="bottom">
<div align="left">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockw...lash.cab#version=6,0,29,0" width="297" height="101" align="absbottom">
<param name="movie" value="swf/logo.swf">
<param name="quality" value="high">
<embed src="swf/logo.swf" width="297" height="101" align="absbottom" quality="high" pluginspage="
http://www.macromedia.co...ashplayer" type="application/x-shockwave-flash"></embed>
</object>
</div></td>
</tr>
<tr>
<td height="59"> </td>
</tr>
</table>
<table width="956" border="0" align="center">
<tr>
<td width="304" rowspan="2"><div align="right"><img src="image/T1.gif" width="88" height="31"></div></td>
<td width="88" rowspan="2"><div align="center"><a href="
http://travel.n...m.tw/"target="_blank"><img src="image/tf-trav.jpg" width="69" height="43" border="0"></a></div></td>
<td width="550" height="20"><div align="center">
<DIV>
<div align="left"><a href="mailto:?subject=台北羽毛公館店" target="_blank">台北羽毛公館店</a> 版權所有 c 2005 Taipei-Feather Inc. All Rights Reserved </div>
</DIV>
</div></td>
</tr>
<tr>
<td height="20"><div align="left">
<SCRIPT LANGUAGE="JavaScript">
today=new Date();
y0=today.getFullYear();
</SCRIPT>
Copyright c 2004-
<SCRIPT LANGUAGE="JavaScript">
document.write(y0);
</SCRIPT>
<a href="" target="_blank">※創龍資訊※</a></div></td>
</tr>
<tr>
<td colspan="2"> </td>
<td><script language="JavaScript">
today=new Date();
var hours = today.getHours();
var minutes = today.getMinutes();
var seconds = today.getSeconds();
var timeValue = "<FONT COLOR=black>" + ((hours >12) ? hours -12 :hours); timeValue += ((minutes < 10) ? "<BLINK><FONT COLOR=black>:</FONT></BLINK>0" : "<BLINK><FONT COLOR=black>:</FONT></BLINK>") + minutes+"</FONT></FONT>";
timeValue += (hours >= 12) ? "<FONT COLOR=blue><I><B>pm</B></I></FONT>" : "<FONT COLOR=blue><B><I>am</I></B></FONT>";
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments
}
var d=new initArray("<font color=RED>星期日","<font color=black>星期一","<font color=black>星期二","<font color=black>星期三","<font color=black>星期四","<font color=black>星期五","<font color=red>星期六"); document.write("<font color=black>",today.getYear(),"<font color=black>年","<font color=black>",today.getMonth()+1,"<font color=black>月","<font color=black>",today.getDate(),"<font color=black>日 </FONT>",d[today.getDay()+1]," ",timeValue);
</script>
</td>
</tr>
</table>
</body>
<script language="JavaScript1.2">
document.write("<style type=text/css>#master {LEFT: -100px; POSITION: absolute; TOP: 30px; VISIBILITY: visible; WIDTH: 200px; Z-INDEX: 2}#menu {LEFT: 100px; POSITION: absolute; TOP: 30px; VISIBILITY: visible; WIDTH: 30px; Z-INDEX: 5}#top {LEFT: 0px; POSITION: absolute; TOP: 30px; VISIBILITY: visible; WIDTH: 100px; Z-INDEX: 5}#screen {LEFT: 0px; POSITION: absolute; TOP: 31px; VISIBILITY: visible; WIDTH: 100px; Z-INDEX: 5}#screenlinks {LEFT: 0px; POSITION: absolute; TOP: 31px; VISIBILITY: visible; WIDTH: 100px; Z-INDEX: 5}</style>")
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
if(ie){
document.write('<style type="text/css">')
document.write("#screen {filter:Alpha(Opacity=30);}")
document.write("</style>")
}
if(ns){
document.write('<style type="text/css">')
document.write("#master {clip:rect(0,150,300,0);}")
document.write("</style>")
}
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
var master = new Object("element")
master.curLeft = -100; master.curTop = 10;
master.gapLeft = 0; master.gapTop = 0;
master.timer = null;
function moveAlong(layerName, paceLeft, paceTop, fromLeft, fromTop){
clearTimeout(eval(layerName).timer)
if(eval(layerName).curLeft != fromLeft){
if((Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft)) < paceLeft){eval(layerName).curLeft = fromLeft}
else if(eval(layerName).curLeft < fromLeft){eval(layerName).curLeft = eval(layerName).curLeft + paceLeft}
else if(eval(layerName).curLeft > fromLeft){eval(layerName).curLeft = eval(layerName).curLeft - paceLeft}
if(ie){document.all[layerName].style.left = eval(layerName).curLeft}
if(ns){document[layerName].left = eval(layerName).curLeft}
}
if(eval(layerName).curTop != fromTop){
if((Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop)) < paceTop){eval(layerName).curTop = fromTop}
else if(eval(layerName).curTop < fromTop){eval(layerName).curTop = eval(layerName).curTop + paceTop}
else if(eval(layerName).curTop > fromTop){eval(layerName).curTop = eval(layerName).curTop - paceTop}
if(ie){document.all[layerName].style.top = eval(layerName).curTop}
if(ns){document[layerName].top = eval(layerName).curTop}
}
eval(layerName).timer=setTimeout('moveAlong("'+layerName+'",'+paceLeft+','+paceTop+','+fromLeft+','+fromTop+')',30)
}
function setPace(layerName, fromLeft, fromTop, motionSpeed){
eval(layerName).gapLeft = (Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft))/motionSpeed
eval(layerName).gapTop = (Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop))/motionSpeed
moveAlong(layerName, eval(layerName).gapLeft, eval(layerName).gapTop, fromLeft, fromTop)
}
var expandState = 0
function expand(){
if(expandState == 0){setPace("master", 0, 10, 10); if(ie){document.menutop.src = "image/hidemenuin.gif"}; expandState = 1;}
else{setPace("master", -100, 10, 10); if(ie){document.menutop.src = "image/hidemenuout.gif"}; expandState = 0;}
}
document.write("<div id=master><div id=menu onmouseover=\"javascript:expand()\"><table border=0 cellpadding=0 cellspacing=0 width=30><tbody><tr><td width=\"100%\"><a href=\"javascript:expand()\" onFocus=this.blur()><img alt=點擊這裡展開/關閉快捷菜單 border=0 height=70 name=menutop src=\"image/hidemenuout.gif\" width=30></a></td></tr></tbody></table></div><div id=top>");
document.write("<table border=0 cellpadding=0 cellspacing=0 width=100><tbody><tr><td width=\"100%\"><img border=0 height=6 src=\"hidemenutop.gif\" width=100></td></tr></tbody></table></div><div id=screen onmouseout=\"javascript:expand()\"><table border=0 cellpadding=5 cellspacing=0 width=100><tbody><tr><td bgcolor=#336666 width=\"100%\" height=\"194\">");
document.write("<table bgcolor=#336666 border=0 cellpadding=0 cellspacing=0 width=\"100%\" height=\"100%\"><tbody><tr><td width=\"100%\"><table border=0 cellpadding=5 cellspacing=1 width=\"100%\"><tbody><tr><td bgcolor=#ecf6f5 width=\"100%\"><br><br><br><br><br></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div><div id=screenlinks>");
document.write("<table border=0 cellpadding=6 cellspacing=0 width=100><tbody><tr><td style=\"FILTER: alpha(opacity=90)\" width=\"100%\"><table bgcolor=#336666 border=0 cellpadding=0 cellspacing=0 width=\"100%\" ><tbody>");
document.write("<tr><td width=\"100%\"><table border=0 cellpadding=6 cellspacing=1 width=\"100%\"><tbody><tr>");
document.write("<td bgcolor=#ECF6F5 width=\"100%\" align=\"center\"><font color=#999900>台北羽毛</font><br><br>");
document.write("<a href=.htm target=\"_blank\">├123</a><br>");
document.write("<a href=.htm target=\"_blank\">├123</a><br>");
document.write("<a href=.htm target=\"_blank\">├123</a><br>");
document.write("<a href=.htm target=\"_blank\">├123</a><br>");
document.write("<a href=.htm target=\"_blank\">├123</a><br>");
document.write("<a href=.htm target=\"_blank\">├123</a><br>");
document.write("<a href=.htm target=\"_blank\">├123</a><br>");
document.write("<a href=.htm target=\"_blank\">├123</a><br>");
document.write("<a href=.htm target=\"_blank\">├123</a><br>");
document.write("</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div>");
if(ie){var sidemenu = document.all.master;}
if(ns){var sidemenu = document.master;}
function FixY(){
if(ie){sidemenu.style.top = document.body.scrollTop+10}
if(ns){sidemenu.top = window.pageYOffset+10}
}
setInterval("FixY()",100);
</script>
</html>
[mmmnnnbbb] 撅了撅嘴說:氣死我了呀!呀!呀!