close

語法展示::  http://home.graffiti.net/fdgdfgdf/#


請用IE6.0或更新版本觀看語法特效展示


將以下程式碼複製,貼在<head>及</head>標籤之間。


<script language=JavaScript>
<!--
function MM_initTimelines() {
//MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
var ns = navigator.appName == "Netscape";
document.MM_Time = new Array(2);
document.MM_Time[0] = new Array(1);
document.MM_Time["Timeline1"] = document.MM_Time[0];
document.MM_Time[0].MM_Name = "Timeline1";
document.MM_Time[0].fps = 15;
document.MM_Time[0][0] = new String("sprite");
document.MM_Time[0][0].slot = 1;
if (ns)
document.MM_Time[0][0].obj = document.Layer1;
else
document.MM_Time[0][0].obj = document.all ? document.all["Layer1"] : null;
document.MM_Time[0][0].keyFrames = new Array(1, 10);
document.MM_Time[0][0].values = new Array(3);
document.MM_Time[0][0].values[0] = new Array(0,-5,-10,-20,-30,-40,-50,-60,-80,-100);
document.MM_Time[0][0].values[0].prop = "left";
document.MM_Time[0][0].values[1] = new Array(135,135,135,135,135,135,135,135,135,135);
document.MM_Time[0][0].values[1].prop = "top";
if (!ns) {
document.MM_Time[0][0].values[0].prop2 = "style";
document.MM_Time[0][0].values[1].prop2 = "style";
}
document.MM_Time[0][0].values[2] = new Array("inherit","inherit");
document.MM_Time[0][0].values[2].prop = "visibility";
if (!ns)
document.MM_Time[0][0].values[2].prop2 = "style";
document.MM_Time[0].lastFrame = 10;
document.MM_Time[1] = new Array(1);
document.MM_Time["Timeline2"] = document.MM_Time[1];
document.MM_Time[1].MM_Name = "Timeline2";
document.MM_Time[1].fps = 15;
document.MM_Time[1][0] = new String("sprite");
document.MM_Time[1][0].slot = 1;
if (ns)
document.MM_Time[1][0].obj = document.Layer1;
else
document.MM_Time[1][0].obj = document.all ? document.all["Layer1"] : null;
document.MM_Time[1][0].keyFrames = new Array(1, 10);
document.MM_Time[1][0].values = new Array(3);
document.MM_Time[1][0].values[0] = new Array(-100,-80,-60,-50,-40,-30,-20,-10,-5,0);
document.MM_Time[1][0].values[0].prop = "left";
document.MM_Time[1][0].values[1] = new Array(135,135,135,135,135,135,135,135,135,135);
document.MM_Time[1][0].values[1].prop = "top";
if (!ns) {
document.MM_Time[1][0].values[0].prop2 = "style";
document.MM_Time[1][0].values[1].prop2 = "style";
}
document.MM_Time[1][0].values[2] = new Array("inherit","inherit");
document.MM_Time[1][0].values[2].prop = "visibility";
if (!ns)
document.MM_Time[1][0].values[2].prop2 = "style";
document.MM_Time[1].lastFrame = 10;
for (i=0; i<document.MM_Time.length; i++) {
document.MM_Time[i].ID = null;
document.MM_Time[i].curFrame = 0;
document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
}
}
//-->
</script>
<script language=JavaScript>
<!--
function MM_timelinePlay(tmLnName, myID) { //v1.2
//Copyright 1997 Macromedia, Inc. All rights reserved.
var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
tmLn = document.MM_Time[tmLnName];
if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
if (myID == tmLn.ID) { //if Im newest
setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
fNew = ++tmLn.curFrame;
for (i=0; i<tmLn.length; i++) {
sprite = tmLn[i];
if (sprite.charAt(0) == 's') {
if (sprite.obj) {
numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
keyFrm=1;
for (j=0; j<sprite.values.length; j++) {
props = sprite.values[j];
if (numKeyFr != props.length) {
if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
else sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
} else {
while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
else sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
} } } } }
} else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
if (fNew > tmLn.lastFrame) tmLn.ID = 0;
} }
}
//-->
</script>
<script language=JavaScript>
<!--
function MM_timelineGoto(tmLnName, fNew, numGotos) { //v1.2
//Copyright 1997 Macromedia, Inc. All rights reserved.
var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
tmLn = document.MM_Time[tmLnName];
if (numGotos != null)
if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
jmpFwd = (fNew > tmLn.curFrame);
for (i = 0; i < tmLn.length; i++) {
sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
if (sprite.charAt(0) == "s") {
numKeyFr = sprite.keyFrames.length;
firstKeyFr = sprite.keyFrames[0];
lastKeyFr = sprite.keyFrames[numKeyFr - 1];
if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
for (j=0; j<sprite.values.length; j++) {
props = sprite.values[j];
if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
if (sprite.obj != null) {
if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
else sprite.obj[props.prop2][props.prop] = props[propNum];
} } } }
tmLn.curFrame = fNew;
if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
}
//-->
</script>



將以下程式碼複製,貼在<body >標籤裡面。

 onLoad="MM_timelinePlay('Timeline1')"



將以下程式碼複製,貼在<body>及</body>標籤之間。


<DIV id=Layer1
style="HEIGHT: 80px; LEFT: 10px; POSITION: absolute; TOP: 125px; VISIBILITY: inherit; WIDTH: 130px; Z-INDEX: 1">
<TABLE border=0 borderColor=black cellPadding=0 cellSpacing=0 width=115>
<TBODY>
<TR>
<TD align=middle bgColor=#FFFF00 width=100><a href="http://tw.yahoo.com/" target="_blank"><font color="#FF00FF" size="2">奇摩</font></a></TD>
<TD bgColor=#c4c4c4 width=14><A href="#"
onclick="MM_timelineGoto('Timeline1','1');MM_timelinePlay('Timeline1')"><IMG
alt=隱藏目錄 border=0 src="1.gif" width="15" height="15"></A></TD></TR>
<TR>
<TD align=middle bgColor=#FFFF00 width=100><a href="http://chinese.yahoo.com/" target="_blank"><font color="#FF00FF" size="2">雅虎</font></a></TD>
<TD align=middle bgColor=#c4c4c4 rowSpan=3 width=15><font color="#000000" size="2">隱<BR>藏<BR>選<BR>單</font></TD></TR>
<TR>
<TD align=middle bgColor=#FFFF00 width=100><a href="http://www.yam.com/" target="_blank"><font color="#FF00FF" size="2">蕃薯藤</font></a></TD></TR>
<TR>
<TD align=middle bgColor=#FFFF00 width=100><a href="http://www.sina.com.tw/" target="_blank"><font color="#FF00FF" size="2">新浪網</font></a></TD></TR>
<TR>
<TD align=middle bgColor=#FFFF00 width=100><a href="http://www.pchome.com.tw/" target="_blank"><font color="#FF00FF" size="2">PC home</font></a></TD>
<TD bgColor=#c4c4c4 width=14><A href="#"

onclick="MM_timelineGoto('Timeline2','1');MM_timelinePlay('Timeline2')"><IMG
align=abscenter alt=顯示目錄 border=0
src="2.gif" width="15" height="15"></A></TD></TR></TBODY></TABLE></DIV>


自行修改連結的文字與連結的位置
bgColor=#FFFF00 中修改連結文字的顏色



不要忘記付件也要一起帶回家喔~!!......     >>>>>>我是附件帶我回家<<<<<<<

下載後解壓縮,將圖檔置於網頁同一目錄下

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 就是愛吃我是好人 的頭像
    就是愛吃我是好人

    就是愛吃我是好人

    就是愛吃我是好人 發表在 痞客邦 留言(0) 人氣()