
Script Não Botão Direito Do Mause
#1
Posted 25/08/2004, 15:08
----------------------------------------------
<html>
<body>
<center> <input type="button" value="Ver código fonte" onClick='window.location = "view-source:" + window.location.href' name="button">
</center>
<HEAD>
<style>
<!--
.skin0 {
position:absolute;
text-align:left;
width:200px;
border:2px solid b5b5b5;
background-color:menu;
font-family:Verdana;
line-height:20px;
cursor:default;
visibility:hidden;
}
.skin1 {
cursor:default;
font:menutext;
position:absolute;
text-align:left;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
width:120px;
background-color:menu;
border:1 solid buttonface;
visibility:hidden;
border:2 outset buttonhighlight;
}
.menuitems {
padding-left:15px;
padding-right:10px;
}
-->
</style>
<script LANGUAGE="JavaScript1.2">
<!--
var menuskin = "skin1";
var display_url = 0;
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";
if (display_url)
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") {
if (event.srcElement.getAttribute("target") != null)
window.open(event.srcElement.url, event.srcElement.getAttribute("target"));
else
window.location = event.srcElement.url;
}
}
// -->
</script>
</head>
<BODY>
<div id="ie5menu" class="skin0" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5();">
<div class="menuitems" url="cursormouse.html">cursores</div>
<div class="menuitems" url="paginadois.html">principal</div>
<hr>
<div class="menuitems" url="tutodicas.html">dicas</div>
<div class="menuitems" url="http://www.forumfute...olbr.cjb.net">o melhor</div>
<hr>
<div class="menuitems" url="buscadores.html">buscadores</div>
<div class="menuitems" url="provedores.html">provedores</div>
</div>
<script language="JavaScript1.2">
if (document.all && window.print) {
ie5menu.className = menuskin;
document.oncontextmenu = showmenuie5;
document.body.onclick = hidemenuie5;
}
</script>
</body>
</html>
------------------------------------------------------------------------------------------------
O tamanho máximo para a fonte na assinatura é de 3.
Censurado por: Justice.
Leia as regras!
#2
Posted 25/08/2004, 16:50

[]'s
"Não sabendo que era impossível, foi lá e fez!"
←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←
#3
Posted 28/08/2004, 00:32
<html>
<head>
<title>Personalização do botão direito!!!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
#ie5menu{
position:absolute;
width:234px;
border:2px solid black;
background-color:menu;
font-family:Verdana;
font-size: 11px;
line-height:17px;
cursor:default;
visibility:hidden;
}
.menuitems{
padding-left:15px;
padding-right:15px;
}
</style>
<script language="Javascript1.2" src="menu.js"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="ie5menu" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()">
<div class="menuitems" url="http://www.mid.com.br">LINK UM</div>
<div class="menuitems" url="http://www.onthenet....t.com.br/">LINK 2 RSRS</div>
<hr>
<div class="menuitems" url="mailto:webmaster@toprom.zzn.com">webmaster@toprom.zzn.com</div>
</div>
<script language="JavaScript1.2">
document.oncontextmenu=showmenuie5
if (document.all&&window.print)
document.body.onclick=hidemenuie5
</script>
</body>
</html>
arquivo .js
var display_url=0
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"
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
}
Espero que ajude, caso não consiga fazer coloquei o script em anexo!
Attached Files
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)