96、类似按钮的文字链接

96、类似按钮的文字链接

脚本说明:

把如下代码加入<body>区域中

<script language="JavaScript1.2">

var cssdefinition='<style>\n.menuitems{\nborder:2.5px solid #FFF2BF;\n}\n\n.menuitems a{\ntext-decoration:none;\ncolor:black;\n}\n<\/style>'

 

//No need to edit beyond here

if (document.all||document.getElementById)

document.write(cssdefinition)

 

function over_effect(e,state, bgcolor){

if (document.all)

source4=event.srcElement

else if (document.getElementById)

source4=e.target

if (source4.className=="menuitems"){

source4.style.borderStyle=state

source4.style.backgroundColor=bgcolor

}

else{

while(source4.tagName!="DIV"){

source4=document.getElementById? source4.parentNode : source4.parentElement

if (source4.className=="menuitems"){

source4.style.borderStyle=state

source4.style.backgroundColor=bgcolor

}

}

}

}

 

</script>

<div style="background-color:#FFF2BF;width:80%;height:23px;padding-top:5px" onMouseover="over_effect(event,'outset','#FFE271')" onMouseout="over_effect(event,'solid','#FFF2BF')" onMousedown="over_effect(event,'inset')" onMouseup="over_effect(event,'outset')">

<font face="Arial" size="2">

<span class="menuitems"><a href="http://www.7stk.com">网页特效代码</a></span>

<span class="menuitems"><a href="http://www.7stk.com/fine/ch/c01.htm">圣诞快乐</a></span>

<span class="menuitems"><a href="http://www.7stk.com/fine/ny/n1.htm">新年快乐</a></span>

<span class="menuitems"><a href="http://www.cctv.com">央视国际</a></span>

<span class="menuitems"><a href="http://www.7stk.com/fine/zhufu/zhu07.htm">我爱你我的情人</a></span>

<span class="menuitems"><a href="http://www.7stk.com/radio/zonghe/r_08.htm">新浪网</a></span>

<span class="menuitems"><a href="http://www.sina.com.cn">新浪网</a></span>

<span class="menuitems"><a href="http://www.7stk.com/1/index08.htm">新浪网</a></span>

<span class="menuitems"><a href="http://www.7stk.com/1/index08.htm">新浪网</a></span>

 

</font>

</div>

 

Write a comment

Comments: 0