View Full Version : Remove Save as from Right click


tarq
07-11-2003, 09:59 AM
Hi, I followed Lissa's instructions on how to remove the picture options from the right click menu but they are still there. Can someone check my code:

<html>
<head><title>Page</title>
<meta http-equiv="imagetoolbar" content="no">

<STYLE type=text/css>
<!-- BODY, P, TD, DIV
{ line-height: 6pt; text-align: justify; COLOR: #FE0204; FONT-FAMILY:tahoma; FONT-SIZE: 7pt; cursor: none; letter-spacing: 0pt}
A:link {COLOR: #000000; TEXT-DECORATION: none; font-weight: none; CURSOR: none; text-transform: none; letter-spacing: 0pt}
A:visited {COLOR: #000000; TEXT-DECORATION: none; font-weight: none; cursor: none; text-transform: none; letter-spacing: 0pt}
A:active {COLOR: #000000; TEXT-DECORATION: none; font-weight: none; cursor: none; letter-spacing: 0pt}
A:hover {COLOR: #FE0204; text-decoration:none; text-transform:none; cursor: none; letter-spacing:0pt}-->

</style></head>

<body>
<center><img src="image.jpg" galleryimg="no">
<br>
<script language="JavaScript">

//Refresh page script- By Brett Taylor (glutnix@yahoo.com.au)
//Modified by Dynamic Drive for NS4, NS6+
//Visit http://www.dynamicdrive.com for this script

//configure refresh interval (in seconds)
var countDownInterval=30;
//configure width of displayed text, in px (applicable only in NS4)
var c_reloadwidth=200

</script>


<ilayer id="c_reload" width=&{c_reloadwidth}; ><layer id="c_reload2" width=&{c_reloadwidth}; left=0 top=0></layer></ilayer>

<script>

var countDownTime=countDownInterval+1;
function countDown(){
countDownTime--;
if (countDownTime <=0){
countDownTime=countDownInterval;
clearTimeout(counter)
window.location.reload()
return
}
if (document.all) //if IE 4+
document.all.countDownText.innerText = countDownTime+" ";
else if (document.getElementById) //else if NS6+
document.getElementById("countDownText").innerHTML=countDownTime+" "
else if (document.layers){ //CHANGE TEXT BELOW TO YOUR OWN
document.c_reload.document.c_reload2.document.writ e('Next <a href="javascript:window.location.reload()"></a> in <b id="countDownText">'+countDownTime+' </b> seconds')
document.c_reload.document.c_reload2.document.clos e()
}
counter=setTimeout("countDown()", 1000);
}

function startit(){
if (document.all||document.getElementById) //CHANGE TEXT BELOW TO YOUR OWN
document.write('Next <a href="javascript:window.location.reload()">refresh</a> in <b id="countDownText">'+countDownTime+' </b> seconds')
countDown()
}

if (document.all||document.getElementById)
startit()
else
window.onload=startit

</script><br><br><br><br></body></html>

Thank you!

Dude128
07-11-2003, 01:55 PM
all that code does is stop the image toolbar from appearing on mouseover in IE. you can't remove items from the right click menu. the only way to do that would be to block the right click function, although that can easily be gotten around, and can be extremely annoying.

Alcy
07-12-2003, 04:10 AM
You could use a right click menu and design the links so that it looks similar to what you'd see when you right click... however, a lot of people may find it annoying.

http://web-developer.boeldt.net/Cool_DHTML_Right_Click_menu.asp
generator here (http://www.devdude.com/tools/tool.cgi?ID=T3) - I think it only works for IE

If you search google (http://google.com), you'll find more menu scripts.