Jump to content

Recommended Posts

Posted

for the poll thing go to lycos web and they have polls, but for the right click there is two kinds. 1)When you click nothing happens and 2)A pop-up comes up saying a message of your choice.

Posted

heres a nice little java script number for the right click thingy

it brings up a menu that u can make yerself

<style>

<!--

.skin0{

position:absolute;

width:200px;

border:2px solid black;

background-color:menu;

font-family:Verdana;

line-height:20px;

cursor:default;

visibility:hidden;

}

.skin1{

cursor: default;

font: menutext;

position: absolute;

width: 165px;

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">

//set the skin of the menu (0 or 1, with 1 rendering a default Windows menu like skin)

var menuskin=1

//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(){

//Find out how close the mouse is to the corner of the window

var rightedge=document.body.clientWidth-event.clientX

var bottomedge=document.body.clientHeight-event.clientY

//if the horizontal distance isn't enough to accomodate the width of the context menu

if (rightedge<ie5menu.offsetWidth)

//move the horizontal position of the menu to the left by it's width

ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth

else

//position the horizontal position of the menu where the mouse was clicked

ie5menu.style.left=document.body.scrollLeft+event.clientX

//same concept with the vertical position

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"){

if (event.srcElement.getAttribute("target")!=null)

window.open(event.srcElement.url,event.srcElement.getAttribute("target"))

else

window.location=event.srcElement.url

}

}

</script>

<title>PUT TITLE HERE**************</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#000000" text="#0066FF" link="#00FF00" vlink="#FFFF00">

<!--[if IE]>

<div id="ie5menu" class="skin0" onmouseover="highlightie5()" onmouseout="lowlightie5()" onclick="jumptoie5()">

<div class="menuitems" url="http://www.hampsterdance.com">Hapsterdance link</div>

<hr>

<div class="menuitems" url="+++**************++">put link here</div>

</div>

<![endif]-->

<script language="Javascript1.2">

if (document.all&&window.print){

if (menuskin==0)

ie5menu.className="skin0"

else

ie5menu.className="skin1"

document.oncontextmenu=showmenuie5

document.body.onclick=hidemenuie5

}

</script>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.