View Full Version : No Right-Click [it's NOT WORKING!]


CCSara3169
01-11-2003, 08:10 PM
Well, It kind of is working...but you can't see the words.

Click here (http://www.geocities.com/devoted2evil/index.html) once your there, right click on the site...see? u can't see the words!


<style>
<!--

#ie5menu{
position:absolute;
width:170px;
border:2px solid white;
background-color:black;
font-family:verdana;
font-size:12;
line-height:14px;
cursor:n-crosshair;
visibility:hidden;
}

.menuitems{
padding-left:12px;
padding-right:12px;
}
-->
</style>

<script language="JavaScript1.2">
//set this variable to 1 if you wish the URLs of the highlighted menu to be displayed in the status bar
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.cl ientY-ie5menu.offsetHeight
else
ie5menu.style.top=document.body.scrollTop+event.cl ientY

ie5menu.style.visibility="visible"
return false
}

function hidemenuie5(){
ie5menu.style.visibility="hidden"
}

function highlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="white"
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="white"
event.srcElement.style.color="white"
window.status=''
}
}

function jumptoie5(){
if (event.srcElement.className=="menuitems")
window.location=event.srcElement.url
}
</script>

<!--[if IE]>
<div id="ie5menu" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()">
<div class="menuitems" target="_new" url="Irresistible3169@devil.com">
Isn't this annoying?<br>
</div>
</div>
</div>

<![endif]-->
<script language="JavaScript1.2">
document.oncontextmenu=showmenuie5
if (document.all&&window.print)
document.body.onclick=hidemenuie5
</script>




</select></form>

thezeppzone
01-11-2003, 09:07 PM
Both your text and your background are the same color..the text IS there its just not viewable...

..one of either your backgrounds or your text needs to be different..bottom id white top is background on these that came directly from your script...

function highlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="white"
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="white"
event.srcElement.style.color="white"
window.status=''
}
}

CCSara3169
01-12-2003, 02:25 AM
o, lol. right. I knew I forgot something, zz could I be so stupid!?

Thanks! and I love your signature..haha