Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any way to 'gray out' ...

Status
Not open for further replies.

milech

Programmer
Feb 11, 2001
23
US
Is there any way to 'gray out' or disable the

File>Save , File>Save As , View>Source

in the Menu bar?
 
sorry, there aren't. but, not to worry, because we have a few tricks up our sleeves.

first, put it in a frameset (with one frame set to zero, and the other set to 100%):

<frameset rows=&quot;100%,0&quot; border=0 frameborder=0>
<frame src=&quot;index.html&quot; noresize>
<frame noresize src=&quot;&quot;>
</frameset>

and second, add this to your pages (it is an IE only workaround for the right-click menu. but don't worry, it wont cause an error in nutscape):

<script language=&quot;javascript&quot;>
function contextM(){return false;}
document.oncontextmenu=contextM;
</script>

this should HELP to prevent people from seeing your source code, but remember there is no way to completly prevent a user from viewing your code.


also, if you have enough time on your hands to COMPLETLY re-design you site, check this out:


and for a really nice demo (even tho half of it is in spanish),
hope this helps

theEclipse
eclipse_web@hotmail.com
**\\||It was recently discovered that research causes cancer in rats||//**
 
thanx for the reply dude - i've already done both of those plus set my site not to save to the user's cache and set each page so that if it's loaded on it's own - it will automatically take the user back to the first index frameset - my only problem is, like i said, trying to disable the said actions in the menu bar - if it cannot be done the so be it - if i figure it out - or if some one does know - please post it --- i have seen sites that somehow disable the View>Source option in the menu bar - i couldn't tell ya how they do it tho - anyway - thanx again
-- milech --
 
do you think you could name one or more of those sites, I would be really interested. and I might just be able to figure out how to do it. (at least I think I am that smart) theEclipse
eclipse_web@hotmail.com
**\\||It was recently discovered that research causes cancer in rats||//**
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top