Whats the html code that doesnt allows right clicking?

Not what this thread is about, I dont care if you can just dis-able right click. I asked for right click and that what I want.

The problem is I dont want the whole page right click dis-abled just the one little box..
No1 has answer this. yet
 
Jaloko said:
Not what this thread is about, I dont care if you can just dis-able right click. I asked for right click and that what I want.

The problem is I dont want the whole page right click dis-abled just the one little box..
No1 has answer this. yet

I would suggest you start treating other members with a bit more respect if you would like help.
 
Creativebot said:
Murder he Wrote said:
Creativebot said:
Tables are also not compliant anymore either. 😉

Yes they are ~lol~
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table cellpadding="0" cellspacing="0">
<tr><td>td 1</td><td>td 2</td></tr>
<tr><td>td 3</td><td>td 4</td></tr>
</table>
</body>
</html>

Put that into W3C's direct-input validator and watch the results ~wink~

Thats retarted though. Tables are a cheap way of making a site structure. Thats what float left and right are for with divs. Its more challenging and much more fun to code. Plus tables are old and need to be let go. -n-

I would not say tables are "cheap", I use divs for most of the structure of my sites and tables for diffrent parts of my site, just to save a little time, its also about whats cost effective and works -D-
 
Cost effective? Where did you get that from?

Last time I checked it didn't cost any extra to use DIVs over tables ~razz~
 
Murder he Wrote said:
Cost effective? Where did you get that from?

Last time I checked it didn't cost any extra to use DIVs over tables ~razz~

Well if your a Freelancer you would know that you can set prices on the way you code the site. Tables are easier and limited to what they can do and DIVs take alittle more time but you can do almost anything with them floats.

Plus divs are easier to edit content within and even find than tables. I looked at a all tabled template and it was a mess and you could barely do anything with it, unless you were to change EVERY single table just to adjust one.
 
Murder he Wrote said:
Jaloko said:
Not what this thread is about, I dont care if you can just dis-able right click. I asked for right click and that what I want.

The problem is I dont want the whole page right click dis-abled just the one little box..
No1 has answer this. yet

I would suggest you start treating other members with a bit more respect if you would like help.

Well all i asked was for the code that makes it so right click is dis-abled in the one box and, I am getting but its not what I ask and I;ve asked nicely atleast twice more than the first post that all I want is what I asked for at the start of the thread.

Im sorry if you thought I was dis-respecting the members.
 
Murder he Wrote said:
Cost effective? Where did you get that from?

Last time I checked it didn't cost any extra to use DIVs over tables ~razz~

You missunderstand, If your designing a website and then coding it for someone, then you may say that time is money? Know what I mean now?
 
I know what you mean, although I always found coding in DIV's was quicker and easier anyway ~razz~

Anyway Jaloko, put this code just before your</body> tag:
Code:
<script language="JavaScript1.2">

/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

var clickmessage="Right click disabled on images!"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>

Source: http://www.dynamicdrive.com/dynamicindex9/noright2.htm

It doesn't work on FireFox 3 though.
 
MhW has the only idea I can think of,if you know any javascript you could try and code for the certain section you do not want right click able.

However like others have said a simple source view or tmp folder view makes it easy to still get.
 
People can still save the content by going into the page source. 🙁
 
Back
Top Bottom