Rovan

      一个犁牛半块田,收也凭天,荒也凭天, 清茶淡饭饱三餐,早也香甜,晚也香甜, 布衣得暖胜丝绵,长也可穿,短也可穿, 草舍茅屋有几间,行也安然,待也安然, 雨过天青驾小船,鱼在一边,酒在一边, 夜归儿女话灯前,今也有言,古也有言, 日上三竿我独眠,请是神仙,我是神仙.

首页 新随笔 联系 订阅 管理

//修改下面的样式,none为子菜单,over为鼠标经过的样式
 <STYLE>BODY {
 COLOR: black; FONT-SIZE: 9pt
}
TD {
 COLOR: black; FONT-SIZE: 9pt
}
A {
 COLOR: black; FONT-SIZE: 9pt
}
.none {
 BACKGROUND: #d9d9d9; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; PADDING-TOP: 2px
}
.over {
 BACKGROUND: #707888; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; COLOR: white; PADDING-TOP: 2px
}
</STYLE>

//修改下面的链接及名称
<DIV id=plane   onmousedown=down=true;divleft=event.clientX-parseInt(plane.style.left);divtop=event.clientY-parseInt(plane.style.top)
      onmouseup=down=false
      style="CURSOR: hand; DISPLAY: none; LEFT: 100px; POSITION: absolute; TOP: 100px">
      <DIV align=center class=none onmouseover=menuin();init()
      style="BACKGROUND: #707888; COLOR: white; CURSOR: default; HEIGHT: 19px; LEFT: 150px; POSITION: absolute; TOP: 33px; WIDTH: 100px; Z-INDEX: 1">右键菜单</DIV>//修改主菜单背景颜色
      <DIV align=center class=none id=item1 onmouseout="this.className='none';"
      onmouseover="this.className='over';menuin()"
      style="FILTER: alpha(opacity=0); HEIGHT: 19px; LEFT: 50px; POSITION: absolute; TOP: 55px; WIDTH: 99px; Z-INDEX: 2"><a href="http://www.7wind.net" >七色风</a></DIV>
      <DIV align=center class=none id=item2 onmouseout="this.className='none';"
      onmouseover="this.className='over';menuin()"
      style="FILTER: alpha(opacity=0); HEIGHT: 19px; LEFT: 250px; POSITION: absolute; TOP: 77px; WIDTH: 99px; Z-INDEX: 3"><a href="http://www.7wind.net" >七色风</a></DIV>
      <DIV align=center class=none id=item3 onmouseout="this.className='none';"
      onmouseover="this.className='over';menuin()"
      style="FILTER: alpha(opacity=0); HEIGHT: 19px; LEFT: 50px; POSITION: absolute; TOP: 99px; WIDTH: 99px; Z-INDEX: 4"><a href="http://www.7wind.net" >七色风</a></DIV>
      <DIV align=center class=none id=item4 onmouseout="this.className='none';"
      onmouseover="this.className='over';menuin()"
      style="FILTER: alpha(opacity=0); HEIGHT: 19px; LEFT: 250px; POSITION: absolute; TOP: 121px; WIDTH: 99px; Z-INDEX: 5"><a href="http://www.7wind.net" >七色风</a></DIV> 
      <DIV align=center class=none id=item5 onmouseout="this.className='none';"
      onmouseover="this.className='over';menuin()"
      style="FILTER: alpha(opacity=0); HEIGHT: 19px; LEFT: 50px; POSITION: absolute; TOP: 143px; WIDTH: 99px; Z-INDEX: 6"><a href="http://www.7wind.net" >七色风</a></DIV></DIV>
      <SCRIPT language=vbs>
dim down,divleft,divtop,timelinestart,timelinestop,tidone,tidtwo,tidtree
down=false
timelinestart=0
timelinestop=0
sub document_onmousedown
if window.event.button=2 then
plane.style.display=""
plane.style.left=window.event.clientx-153
plane.style.top=window.event.clienty-35
end if
end sub
sub document_onmousemove
if down then
plane.style.left=window.event.clientx-divleft
plane.style.top=window.event.clienty-divtop
end if

end sub
sub document_ondargstart
window.event.returnvalue=false
end sub
function menuin()
cleartimeout(tidtree)
end function
sub document_onclick
tidtree=settimeout("outit()",200)
end sub
function init()
if timelinestart<>5 then
cleartimeout(tidtwo)
item1.style.pixelLeft=item1.style.pixelLeft+20
item1.filters.alpha.opacity=item1.filters.alpha.opacity+20
item2.style.pixelLeft=item2.style.pixelLeft-20
item2.filters.alpha.opacity=item2.filters.alpha.opacity+20
item3.style.pixelLeft=item3.style.pixelLeft+20
item3.filters.alpha.opacity=item3.filters.alpha.opacity+20
item4.style.pixelLeft=item4.style.pixelLeft-20
item4.filters.alpha.opacity=item4.filters.alpha.opacity+20
item5.style.pixelLeft=item5.style.pixelLeft+20
item5.filters.alpha.opacity=item5.filters.alpha.opacity+20
timelinestart=timelinestart+1
else
cleartimeout(tidone)
end if
tidone=settimeout("init()",1)
end function
function outit()
if timelinestart<>0 then
cleartimeout(tidone)
item1.style.pixelLeft=item1.style.pixelLeft-20
item1.filters.alpha.opacity=item1.filters.alpha.opacity-20
item2.style.pixelLeft=item2.style.pixelLeft+20
item2.filters.alpha.opacity=item2.filters.alpha.opacity-20
item3.style.pixelLeft=item3.style.pixelLeft-20
item3.filters.alpha.opacity=item3.filters.alpha.opacity-20
item4.style.pixelLeft=item4.style.pixelLeft+20
item4.filters.alpha.opacity=item4.filters.alpha.opacity-20
item5.style.pixelLeft=item5.style.pixelLeft-20
item5.filters.alpha.opacity=item5.filters.alpha.opacity-20
timelinestart=timelinestart-1
else
cleartimeout(tidtwo)
plane.style.display="none"
exit function
end if
tidtwo=settimeout("outit()",1)
end function
</SCRIPT>

"body    oncontextmenu="return false" "  can make right click false.

posted on 2006-07-20 10:56  Ruxuan  阅读(250)  评论(0)    收藏  举报