/    Sign up×
Community /Pin to ProfileBookmark

not hide source code just hide right key..need help…

<SCRIPT LANGUAGE=”JavaScript1.1″>
<!–
function right(mousebutton)
{
var msg1 = “Hey!! Look but don’t touch!!”;
var msg2 = “Isn’t this the most annoying script since BLINK?!”;

if (navigator.appName == ‘Netscape’ && mousebutton.which==3)
{
alert(msg1);
return false;
}
else

if (navigator.appName == ‘Netscape’ && mousebutton.which==1)
{
alert(msg2);
return false;
}
else

if (navigator.appName == ‘Microsoft Internet Explorer’ && event.button == 2)
{
alert(msg1);
return false;
}
else

if (navigator.appName == ‘Microsoft Internet Explorer’ && event.button == 2)
{
alert(msg2);
return false;
}
return true;
}
document.onmousedown = right;
// –>
</SCRIPT>

i found tis code tat saying hide ur code..i know it not hide sourse code one…coz i also know is possible to do tat.. MstrBob got note already…
thank you…

i try to put at my friendster but can’t work…
anyone can help?
just when press right mouse will not be work and will show msg…
i seen ppl can do tat on friendster…
many ppl also dunno how to do it..
i hope so here got any expert can help me…
help help ๐Ÿ˜ฎ ๐Ÿ˜ฎ

thank you thank you ? ?

to post a comment
HTML

16 Comments(s) โ†ด

Copy linkTweet thisAlerts:
@FangApr 05.2006 โ€”ย The script works correctly. Can you give a link to the problem page?
Copy linkTweet thisAlerts:
@allenkhorauthorApr 06.2006 โ€”ย sure!

thank for the help..

is it u need tis link?

http://www.friendster.com/profiles/allenkhor

or

http://www.friendster.com/user.php?uid=12274919

thank you for help!
Copy linkTweet thisAlerts:
@FangApr 06.2006 โ€”ย Where it the script?

btw all onload functions need to be combined. You have a prototype loader and a body onload.

There are errors in the document and css that need fixing.
Copy linkTweet thisAlerts:
@allenkhorauthorApr 08.2006 โ€”ย tis is the ccs

/* michael's friendster css editor v2.7 | advanced mode */ /* please don't delete the tag above - it's

there for re-loading purposes */ /* MASTER BACKGROUND

*/body{background-color:http://mi2.bpcdn.us/grafix2/9.gif;background-image:url(http://mi2.bpcdn.us/grafix2

/9.gif); background-position:0%; background-repeat:repeat; background-attachment:fixed;} /* MASTER TEXT */

body,td,tr,div,p { font-family:Arial, Sans-serif; color:#FFFFFF; } /* MASTER LINKS */

a,a:link,a:visited,a:active { color:#FFFFFF; font-weight: normal; text-decoration: underline;

border-bottom:0px; font-style: normal; } a:hover { color:#FFFFFF; font-weight: normal; text-decoration:

underline; border-bottom:0px; font-style: normal; } #footer a,#subnav a,#options ul li a,#options ul li

a:link,#options ul li a:visited,#options ul li a:active,.friends .name a,.friends .name

a:visited,.buttondiv_new a:link,.buttondiv_new a,.buttondiv_new a:visited { color:#FFFFFF; } #footer

a:hover,#subnav a:hover,#options ul li a:hover,.friends .name a:hover,.left_column_info

a:hover,.left_column_about a:hover,.see_all_friends a:hover,.right_column_groups_content p a:hover,.blogs

h2 a:hover,.blogs a:hover,.left_column_testimonials a:hover,.seeall a:hover { color:#FFFFFF; } /* HEADING:

NAME */ .left_column_header h2 { font-size:18px !Important; } .left_column_header h2,.left_column_header

h2 .online { color:#FFFFFF; font-weight:bold; } /* HEADING: LARGE GREEN */

.left_column_header2,.right_column_title,.right_column .column_header { background-color:transparent;

height:20px; border:1px solid; border-color:transparent; border:0px; } .left_column_header2

h1,.right_column_title h1,.right_column .column_header h1 { font-size:12px; margin:3px 0px 0px 5px;

color:#ffffff; font-weight:bold; } .commonbox h2 { font-size:12px !Important;

background-color:transparent; color:#ffffff; font-weight:bold; } #teaserbox h2 { font-size:12px

!Important; background-color:transparent; color:#ffffff; font-weight:bold; } /* BOX BG & BORDER: MY

PROFILE */ .left_column_wrapper,.left_column_wrapper .left_column_content { background-color:transparent;

border-color:transparent; border:0px; } /* BOX BG & BORDER: EDIT PROFILE */ .column_profile_nav {

background-color:transparent; border-color:transparent; border:0px; } /* BOX BG & BORDER: NAV BAR */

#navigation { background-color:transparent; background-image:none; } #nav_bg {

background-color:transparent; border-bottom:0px; } #navigation div { background-color:transparent;

background-image:none; } /* BOX BG & BORDER: ALL OTHERS */

.left_column_content,.right_column_content,.right_column .column_content,.boxcontent {

background-color:transparent; border-color:transparent; border:0px; } .commonbox {

border-color:transparent; border:0px; } #teaserbox div { background-color:transparent;

border-color:transparent; border:0px; } /* MY PROFILE PHOTO BORDER */ .left_column_profile_mainphoto img {

border-color:#FFFFFF; border-width:1px; border-style:inset; } /* PHOTO THUMBNAIL SIZE & BORDER */

.left_column_profile_thumbnails .photothumb,.right_column_groups .photo,.left_column_testimonials

.photo,.friendsphoto { border-color:#ffffff; border-width:1px; border-style:solid; } /* DATES */

.left_column_testimonials_content .date,.right_column_groups_content .date { font-size:10px;

color:#FFFFFF; font-weight:normal; } .blog_posted { font-size:10px !Important; color:#FFFFF !Important;

font-weight:normal; } /* STYLES FOR MY PROFILE-BOX */ #caption { font-size:11px; color:#FFFFFF; }

.left_column_info p { font-size:12px; color:#FFFFFF; } .left_column_info a,.left_column_info a:visited {

font-size:12px; color:#FFFFFF; font-weight:normal; font-style:normal; text-decoration:none; }

.left_column_info a:hover { font-size:12px; color:#FFFFFF; font-weight:normal; font-style:normal;

text-decoration:none; } .left_column_info .q { font-size:12px; color:#FFFFFF; font-weight:bold; }

.buttondiv_new a:link,.buttondiv_new a,.buttondiv_new a:visited { font-size:11px; border-bottom: 0px;

color:#FFFFFF; font-weight:normal; font-style:normal; text-decoration:none; } .buttondiv_new a:hover {

font-size:11px; border-bottom: 0px; color:#FFFFFF; font-weight:normal; font-style:normal;

text-decoration:none; } /* STYLES FOR MORE ABOUT-BOX */ .left_column_about a { font-size:12px;

color:#FFFFFF; font-weight:normal; font-style:normal; text-decoration:none; } .left_column_about a:hover {

font-size:12px; color:#FFFFFF; font-weight:normal; font-style:normal; text-decoration:none; } /* STYLES

FOR MY TESTIMONIALS-BOX */ .left_column_testimonials_content a,.left_column_testimonials_content

a:active,.left_column_testimonials_content a:visited,.left_column_testimonials_add a { font-size:12px;

color:#FFFFFF !Important; font-weight:bold; font-style:normal; text-decoration:underline; }

.left_column_testimonials_content a:hover,.left_column_testimonials_add a:hover { font-size:12px;

color:#FFFFFF; font-weight:bold; font-style:normal; text-decoration:underline; }

.testimonialbody,.left_column_testimonials_add { font-size:12px; line-height:normal; border:0px;

color:#FFFFF; } .left_column_hr,.left_column_testimonials_add { border-bottom-color:#FFFFF;

border-bottom-width:1px; border-bottom-style:solid; } /* STYLES FOR MY FRIENDS-BOX & MY FANS-BOX */

.friends .name,.friends .name a,.friends .name a:visited { font-size:11px; color:#FFFFF;

font-weight:normal; font-style:normal; text-decoration:underline; } .friends .name a:hover {

font-size:11px; color:#FFFFF; font-weight:normal; font-style:normal; text-decoration:underline; } /*

STYLES FOR RSS-BOX & TEASER-BOX */ .boxcontent a,.boxcontent ol li a { font-size:12px; color:#fffff;

font-weight:normal; font-style:normal; text-decoration:none; } .boxcontent a:hover,.boxcontent ol li

a:hover { font-size:12px; color:#fffff; font-weight:normal; font-style:normal; text-decoration:none; } /*

STYLES FOR NAV BAR */ #options ul li a,#options ul li a:link,#options ul li a:visited,#options ul li

a:active { font-size:12px; color:#fffff; font-weight:normal; font-style:normal; text-decoration:none; }

#options ul li a:hover { font-size:12px; background-color:#ffffff; color:#fffff; font-weight:bold;

font-style:normal; text-decoration:none; } #subnav a,#subnav a:visited { font-size:12px; color:#fffff;

font-weight:normal; font-style:normal; text-decoration:none; } #subnav a:hover { font-size:12px;

color:#fffff; font-weight:normal; font-style:normal; text-decoration:underline; } /* STYLES FOR FOOTER */

#footer { border-top-color:#cc0000; border-top-width:1px; border-top-style:solid; } #footer div {

font-size:11px; color:#FFFFFF; } #footer a { font-size:11px; color:#FFFFFF; font-weight:normal;

font-style:normal; text-decoration:underline; } #footer a:hover { font-size:11px; color:#FFFFFF;

font-weight:normal; font-style:normal; text-decoration:underline; } /* SEE ALL-LINKS */ .see_all_friends

a,.see_all_friends a:visited,.seeall a,.seeall a:visited,.see_all a,.see_all a:visited { font-size:12px;

border-bottom:0px; color:#ccffcc; font-weight:normal; font-style:normal; text-decoration:none; }

.see_all_friends a:hover,.seeall a:hover,.see_all a:hover { font-size:12px; border-bottom:0px;

color:#FFFFFF; font-weight:normal; font-style:normal; text-decoration:none; } /* MISC STYLES */

.left_column_header { background-color:transparent; } #options ul li a:hover {

background-color:transparent; } /* CURSOR: BODY */ body

{cursor:url(http://www.cursors-4u.com/cursors/cur-1/cur1.ani )}/* CURSOR: LINKS */

a,a:link,a:visited,a:active,a:hover { cursor:url("http://ourworld.cs.com/dccursors/p7.cur"),default; }



<style type="text/css">img { filter: Alpha(Opacity=50); }a:link img { filter: Alpha(Opacity=100,

FinishOpacity=0, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0); }a:hover img { filter: none;

}</style><div style="position:absolute;z-index:9999;left:0px;top:0px;width:88px;height:31px;"><a

href="http://www.freeweblayouts.net" target="_blank"><img

src="http://mi8.bpcdn.us/gfxsitebuilder/fwlbutton.gif" border="1" alt="Free Web Layouts"></a></div>


<embed allowScriptAccess="never" src="http://five.flash-gear.com/draw/drw.php?f=1&id=360175&a=937020857"

quality=high scale=noscale salign=LT bgcolor="FFFFFF" width="550" height="400" name="draw" align=""

type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>

<SCRIPT LANGUAGE="JavaScript1.1">

<!--

function right(mousebutton)

{

var msg1 = "Hey!! Look but don't touch!!";

var msg2 = "Isn't this the most annoying script since BLINK?!";

if (navigator.appName == 'Netscape' && mousebutton.which==3)

{

alert(msg1);

return false;

}

else

if (navigator.appName == 'Netscape' && mousebutton.which==1)

{

alert(msg2);

return false;

}

else

if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 2)

{

alert(msg1);

return false;

}

else

if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 2)

{

alert(msg2);

return false;

}

return true;

}

document.onmousedown = right;

// -->

</SCRIPT>
Copy linkTweet thisAlerts:
@FangApr 08.2006 โ€”ย In which file is it?
Copy linkTweet thisAlerts:
@allenkhorauthorApr 08.2006 โ€”ย sorry for make trouble to u...

really thank you for helping me...

thank you thank you thank you very much..
Copy linkTweet thisAlerts:
@FangApr 08.2006 โ€”ย The JavaScript function right() does not appear to be anywhere on your site.

If it is, can you say which file it is in, not the site link.
Copy linkTweet thisAlerts:
@allenkhorauthorApr 08.2006 โ€”ย sorry...i din have the file...

where can get ther file?

im idiot...

sorry...

or i gv u the account password and email then u check inside for me?
Copy linkTweet thisAlerts:
@FangApr 08.2006 โ€”ย If you are trying to install the script on your Fiendster profile, you will not be able to do it. Scripts are normally blocked from being installed for security reasons.
Copy linkTweet thisAlerts:
@felgallApr 08.2006 โ€”ย The simplest no right click script is

&lt;script type="text/javascript"&gt;
window.oncontextmenu = null;
&lt;/script&gt;


All other no right click scripts only block the right mouse button. This script blocks the contextmenu key on the keyboard as well (the key next to the right CTRL key for those of you who didn't know it was there).

This code also works on as many modern web browsers as any of the much longer and less effective alternatives - that is those browseras that ignore such scripts will ignore all such attempts while those that permit them will block the context menu better with the short script than with any of the longer ones.
Copy linkTweet thisAlerts:
@allenkhorauthorApr 10.2006 โ€”ย If you are trying to install the script on your Fiendster profile, you will not be able to do it. Scripts are normally blocked from being installed for security reasons.[/QUOTE]


oo...icic..ok...

i think i get ur mean...

need to install script first right?

i din hv the thing to install..

when can i get it? ?

seen other ppl can do it on friendster...
Copy linkTweet thisAlerts:
@allenkhorauthorApr 10.2006 โ€”ย The simplest no right click script is

&lt;script type="text/javascript"&gt;
window.oncontextmenu = null;
&lt;/script&gt;


All other no right click scripts only block the right mouse button. This script blocks the contextmenu key on the keyboard as well (the key next to the right CTRL key for those of you who didn't know it was there).

This code also works on as many modern web browsers as any of the much longer and less effective alternatives - that is those browseras that ignore such scripts will ignore all such attempts while those that permit them will block the context menu better with the short script than with any of the longer ones.[/QUOTE]


why cant work? ?

but..

thank man...

u all here very nice...

really very nice... ?
Copy linkTweet thisAlerts:
@allenkhorauthorApr 10.2006 โ€”ย fang also nice..

fang and felgall is expert on pc right...

thank guy...

i hope can learn it fast and thank for u guy...
Copy linkTweet thisAlerts:
@allenkhorauthorApr 10.2006 โ€”ย <a href=""><img src="" id="mycode" style="height:expr/**/ession(alert

('Hii.. ' +pageViewerFName+ ' lucky to c u here...welcome to ' +pageOwnerFName+ ' page..'));

width:expr/**
/ession(document.all.mycode.style.height='0px')" /></a></center></center></center></center></center></table></table></td></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></ul></ul></ul></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></li></div>

<br clear="all"><p><span class="q">Schools (Other):</span><br><a>


tis is the sample tat when ppl access my page then will show tis msg and need press ok then only can access my page...

tis one ok..
Copy linkTweet thisAlerts:
@allenkhorauthorApr 11.2006 โ€”ย http://www.zorpia.com/billieleong

check tis out...

when view tis page will show one cartoon and say hi...

and when press right click will show msg..

and..

when leave tat page will ask ok or cancel...

can help?? ?

it very nice... ?
ร—

Success!

Help @allenkhor spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 โ€” BETA 5.19,
whats_new: community page,
up_next: more Davinciโ€ข003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinciโ€ข003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...