//修改下面的样式,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.
浙公网安备 33010602011771号