View Full Version : Java Script Help?
Luckyrare
31-03-2005, 12:18 PM
Okay I Would like the java script that blocks all copying xP
The java script can be seen on http://www.habbo-info.co.uk/
Can anybody tell me what the script is?
Ty!
R4ller
31-03-2005, 01:50 PM
<script language="JavaScript">
<!--
/*
No rightclick script v.2.5
(c) 1998 barts1000
barts1000****.com
Don't delete this header!
*/
var message="Sorry, that function is disabled.\nThis Page Copyrighted and\nImages and Text protected!\nALL RIGHTS RESERVED";
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
that is the code to display a right click warning
or try this
<script>
window.oncontextmenu="return false";
</script>
doesnt work in firefox "/
Mentor
31-03-2005, 04:37 PM
Its impssible to block all clicking thers no point trying. there blcoking scripst are easly bypassable.
All blocking does is annoy members.
Luckyrare
31-03-2005, 06:12 PM
Ye I Thats why I Wanted that java script that Habbo-Info Uses No Pop Up Things or anything.
try www.dynamicdrive.com they have them.
iRoss
01-04-2005, 12:22 PM
If u need more info on javascript go 2 your local library and get Javascript for dummies it comes with a cd :o wewt :D and u can install it 2 your pc
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.