event onContextMenu
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
event onContextMenu
How we can rescue a javascript event (onContextMenu) generated by a mouse right click ????
Regards
Yenia.
Regards
Yenia.
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
event onContextMenu
Yes, this code,
<style>
<!--
#ie5menu{
position:absolute;
width:140px;
border:2px solid black;
background-color:Silver;
font-family:Verdana;
line-height:20px;
cursor:default;
visibility:hidden;
}
.menuitems{
padding-left:15px;
padding-right:15px;
}
-->
</style>
<script language="JavaScript1.2">
var display_url=0
function showmenuie5(){
ie5menu.style.left=document.body.scrollLeft+event.clientX
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="blue"
event.srcElement.style.color="yellow"
if (display_url==1)
window.status=event.srcElement.url
}
}
function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor=""
event.srcElement.style.color="black"
window.status=''
}
}
function jumptoie5(){
if (event.srcElement.className=="menuitems")
window.location=event.srcElement.url
}
</script>
</HEAD>
<BODY>
<div style="position:absolute; top:120px; left:50px; font-size: 36px; width:600px; font-family: impact;
font-weight: bold; font-style: normal; color: Black;">Pulsa el botón derecho</div>
<div style="position:absolute; top:118px; left:48px; font-size: 36px; width:600px; font-family: impact;
font-weight: bold; font-style: normal; color: orange;">Pulsa el botón derecho</div>
<!--[if IE]>
<div id="ie5menu" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()">
<div class="menuitems" url="http://www.link1.com">Primo link</div>
<div class="menuitems" url="http://www.link2.com">Secondo link</div>
<div class="menuitems" url="http://www.link3.com">Terzo link</div>
<div class="menuitems" url="http://www.link4.com">Quarto link</div>
<div class="menuitems" url="http://www.link5.com">Quinto link</div>
<hr>
<div class="menuitems" url="mailto:email@link.com">Email</div>
</div>
<![endif]-->
<script language="JavaScript1.2">
document.oncontextmenu=showmenuie5
if (document.all&&window.print)
document.body.onclick=hidemenuie5
</script>[/url]
<style>
<!--
#ie5menu{
position:absolute;
width:140px;
border:2px solid black;
background-color:Silver;
font-family:Verdana;
line-height:20px;
cursor:default;
visibility:hidden;
}
.menuitems{
padding-left:15px;
padding-right:15px;
}
-->
</style>
<script language="JavaScript1.2">
var display_url=0
function showmenuie5(){
ie5menu.style.left=document.body.scrollLeft+event.clientX
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="blue"
event.srcElement.style.color="yellow"
if (display_url==1)
window.status=event.srcElement.url
}
}
function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor=""
event.srcElement.style.color="black"
window.status=''
}
}
function jumptoie5(){
if (event.srcElement.className=="menuitems")
window.location=event.srcElement.url
}
</script>
</HEAD>
<BODY>
<div style="position:absolute; top:120px; left:50px; font-size: 36px; width:600px; font-family: impact;
font-weight: bold; font-style: normal; color: Black;">Pulsa el botón derecho</div>
<div style="position:absolute; top:118px; left:48px; font-size: 36px; width:600px; font-family: impact;
font-weight: bold; font-style: normal; color: orange;">Pulsa el botón derecho</div>
<!--[if IE]>
<div id="ie5menu" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()">
<div class="menuitems" url="http://www.link1.com">Primo link</div>
<div class="menuitems" url="http://www.link2.com">Secondo link</div>
<div class="menuitems" url="http://www.link3.com">Terzo link</div>
<div class="menuitems" url="http://www.link4.com">Quarto link</div>
<div class="menuitems" url="http://www.link5.com">Quinto link</div>
<hr>
<div class="menuitems" url="mailto:email@link.com">Email</div>
</div>
<![endif]-->
<script language="JavaScript1.2">
document.oncontextmenu=showmenuie5
if (document.all&&window.print)
document.body.onclick=hidemenuie5
</script>[/url]
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
Please see my answer at http://forum.imacros.net/viewtopic.php?t=176