|
Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006
Right Key production menu How to produce a javasript Right Key menu? |
Search, the stickers, multi debacle
[html]
"Style>
<!--
: : 9pt; font-style em -- font-size normal;line-height:1.5em}
#000000; Scrollbar-highlight-color body {scrollbar-face-color : : : #000000; scrollbar-shadow-color #FFFFFF; scrollbar-3dlight-color #FFFFFF; scrollbar-track-color : : : #FFFFFF; scrollbar-arrow-color #000000; scrollbar-darkshadow-color : #000000;; font-family : "Arial", "Helvetica", "sans-serif"; font-size #FFFFFF} : 9pt; color :
A:link -- font-size normal; color : : : 9pt; font-style #ffffff; text-decoration : none}
A:active -- font-size normal; color : : : 9pt; font-style #666666; text-decoration : none}
A:visited -- font-size normal; color : : : 9pt; font-style #ffffff; text-decoration : none;}
A:hover -- font-size normal; color : : : 9pt; font-style #333333; text-decoration : none}
Div.border -- border-bottom : 6px solid #FF9900; border-left : 4px solid #CC0000; border-right : 1px solid #009900; border-top : 2px solid white;)
. CMenu{
Absolute; position :
Visibility:hidden;
Color:#000000;
Width:188px;
Border:2px solid red;
Background-color:#dbdbdb;
}
-->
"/style>
"SCRIPT LANGUAGE=" JavaScript ""
"Known 4003rd RightClickMenu
Showmenuie5 function () (
Var rightedge=document.body.clientWidth-event.clientX
Var bottomedge=document.body.clientHeight-event.clientY
If (rightedge<ie5menu.offsetWidth)
Ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth
Else
Ie5menu.style.left=document.body.scrollLeft+event.clientX
If (bottomedge<ie5menu.offsetHeight)
Ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight
Else
Ie5menu.style.top=document.body.scrollTop+event.clientY
Ie5menu.style.visibility= "visible"
Return false
}
Hidemenuie5 function () (
Ie5menu.style.visibility= "hidden"
}
Highlightie5 function () (
If (event.srcElement.className== "menuitems") (
Event.srcElement.style.backgroundColor= "#00A651"
Event.srcElement.style.color= "black"
}
}
Lowlightie5 function () (
If (event.srcElement.className== "menuitems") (
Event.srcElement.style.backgroundColor= ""
Event.srcElement.style.color= "white"
}
}
Jumptoie5 function () (
If (event.srcElement.className== "menuitems") (
If (event.srcElement.url> '') (
If (event.srcElement.getAttribute ( "target") !=null)
Window.open (event.srcElement.url, event.srcElement.getAttribute ( "target"))
Else
Window.location=event.srcElement.url
}
}
}
// -->
"/SCRIPT>
"/head>
"Body"
"!--[if IE]>
"Assume filled="f"" ie5menu "formal" cMenu "onMouseover=" highlightie5 () "onMouseout=" lowlightie5 () "onClick=" jumptoie5 (), ""
"Assume a formal" menuitems "url=" http://terissa.8u8.com/aboutme.html "target=" _blank "" CAO</div>
"Assume a formal" menuitems "url=" http://terissa.8u8.com/feeling.html "target=" _blank "" CAOCAO</div>
"![endif]-->
"Script language=" JavaScript ""
<!--
If (document.all&&window.print) (
Ie5menu.className= "cMenu"
Document.oncontextmenu=showmenuie5
Document.body.onclick=hidemenuie5
}
//-->
"/script>
[/html] |
Oh, Brother, I would like to thank the exhibitions, I search a lot, but never did find their own wishful
Thank you, the ah |
Http://bbs.blueidea.com/viewthread.php?tid=1085847 |
|