close

語法展示::  http://home.graffiti.net/lougchfgh/


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


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

<style>
<!--
#iewrap{
position:relative;
height:30px
}
#iewrap2{
position:absolute
}
#dropmenu03{
filter:revealTrans(Duration=1.5,Transition=12)
visibility:hide
}
-->
</style>


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


<center>
<layer id="dropmenu02" visibility=show>
<span id="iewrap">
<span id="iewrap2" onClick="dropit2();event.cancelBubble=true;return false">
<font face="細明體"><a href="#">按我看看吧 ^_^</a></font>
</span>
</span>
</layer>
</ilayer>   
<script language=JavaScript>
<!--
var enableeffect=true
var selection=new Array()
selection[0]='<font face="細明體"><a href="http://tw.yahoo.com/" target="_blank">奇摩</a></font><br>'
selection[1]='<font face="細明體"><a href="http://chinese.yahoo.com/" target="_blank">雅虎</a></font><br>'
selection[2]='<font face="細明體"><a href="http://www.yam.com/" target="_blank">蕃薯藤</a></font><br>'
selection[3]='<font face="細明體"><a href="http://www.sina.com.tw/" target="_blank">新浪網</a></font><br>'
selection[4]='<font face="細明體"><a href="http://www.pchome.com.tw/" target="_blank">PC home</a></font><br>'
selection[5]='<font face="細明體"><a href="http://blog.pixnet.net/como0925" target="_blank">紫蓮の翼</a></font><br>'
if (document.layers)
document.dropmenu01.document.dropmenu02.visibility='show'
function dropit2(){
if (document.all){
dropmenu03.style.left=document.body.scrollLeft+event.clientX-event.offsetX
dropmenu03.style.top=document.body.scrollTop+event.clientY-event.offsetY+18
if (dropmenu03.style.visibility=="hidden"){
if (enableeffect)
dropmenu03.filters.revealTrans.apply()
dropmenu03.style.visibility="visible"
if (enableeffect)
dropmenu03.filters.revealTrans.play()
}
else{
hidemenu()
}
}
}
function dropit(e){
if (document.dropmenu03.visibility=="hide")
document.dropmenu03.visibility="show"
else
document.dropmenu03.visibility="hide"
document.dropmenu03.left=e.pageX-e.layerX
document.dropmenu03.top=e.pageY-e.layerY+19
return false
}
function hidemenu(){
if (enableeffect)
dropmenu03.filters.revealTrans.stop()
dropmenu03.style.visibility="hidden"
}
function hidemenu2(){
document.dropmenu03.visibility="hide"
}
if (document.layers){
document.dropmenu01.document.dropmenu02.captureEvents(Event.CLICK)
document.dropmenu01.document.dropmenu02.onclick=dropit
}
else if (document.all)
document.body.onclick=hidemenu
-->
</script>
<div id="dropmenu03" style="position:absolute;left:2;top:2;layer-background-color:FFBFFF;background-color:;width:70;visibility:hidden;border:1px solid black;padding:0px">
<script language="JavaScript1.2">
<!--
if (document.all)
dropmenu03.style.padding='6px'
for (i=0;i<selection.length;i++)
document.write(selection[i])
-->
</script>
</div>
<script language="JavaScript1.2">
<!--
if (document.layers){
document.dropmenu03.captureEvents(Event.CLICK)
document.dropmenu03.onclick=hidemenu2
}
-->
</script>
</center>


自行修改增加連結的名稱及網址
width:70 中修改選單的寬度

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

    就是愛吃我是好人

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