Et eks.
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
<SCRIPT LANGUAGE=\"JavaScript\">
function showmenuie5(){
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
}
function hidemenuie5(){
ie5menu.style.visibility=\"hidden\"
}
function highlightie5(){
if (event.srcElement.className==\"menuitems\"){
event.srcElement.style.backgroundColor=\"highlight\"
event.srcElement.style.color=\"white\"
}
}
function lowlightie5(){
if (event.srcElement.className==\"menuitems\"){
event.srcElement.style.backgroundColor=\"\"
event.srcElement.style.color=\"black\"
}
}
function jumptoie5(){
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>
<STYLE TYPE=\'text/css\'>
.cMenu{
position: absolute;
visibility:hidden;
cursor: default;
font: menutext;
width: 165px;
background-color: menu;
border: 1 solid buttonface;
border: 2 outset buttonhighlight;
}
.menuitems{
padding-left:15px;
padding-right:10px;
}
</STYLE>
</head>
<body bgcolor=\"#FFFFFF\" text=\"#000000\">
<RightClick>
<!--[if IE]>
<div id=\"ie5menu\" class=\"cMenu\" onMouseover=\"highlightie5()\" onMouseout=\"lowlightie5()\" onClick=\"jumptoie5()\">
<div class=\"menuitems\" url=\"#top\">Toppen af siden</div>
<div class=\"menuitems\" url=\"
http://www.dinside.html\" target=\"_blank\">Din side</div>
<HR>
<div class=\"menuitems\" url=\"mailto:hej@net\">Email</div>
<![endif]-->
<script language=\"JavaScript\">
<!--
if (document.all&&window.print){
ie5menu.className=\"cMenu\"
document.oncontextmenu=showmenuie5
document.body.onclick=hidemenuie5
}
//-->
</script>
</RightClick>
</body>
</html>
Kun IE...