2013-07-10, 05:00 AM
2013-07-10, 05:02 AM
(2013-07-10, 05:00 AM)ikhwanulfikri Wrote: [ -> ]Hello friends.
how to make an image can not right click.
like this picture.
$('img').each(function() {
$(this)[0].oncontextmenu = function() {
alert('We\'re sorry. Right-Click is not available');
return false;
};
});
2013-07-10, 05:04 AM
hello bro.
Where should I put the code bro. ?
Where should I put the code bro. ?
2013-07-10, 05:07 AM
just a note: above is a jQuery function - so jQuery script needs to be loaded and precautions should be taken
so that there is no conflict between jQuery & prototype used in MyBB (eg. add no conflict code, change $ ..)
so that there is no conflict between jQuery & prototype used in MyBB (eg. add no conflict code, change $ ..)
2013-07-10, 05:07 AM
(2013-07-10, 05:04 AM)ikhwanulfikri Wrote: [ -> ]hello bro.
Where should I put the code bro. ?
Not quite sure. Thought you knew lol..
Found it here. http://css-tricks.com/forums/discussion/...-images/p1
The only thing is people can disable javascript on webpage and be able to right click it.
2013-07-10, 05:10 AM
(2013-07-10, 05:07 AM)VisualizeForums Wrote: [ -> ](2013-07-10, 05:04 AM)ikhwanulfikri Wrote: [ -> ]hello bro.
Where should I put the code bro. ?
Not quite sure. Thought you knew lol..
Found it here. http://css-tricks.com/forums/discussion/...-images/p1
The only thing is people can disable javascript on webpage and be able to right click it.
Hahaha .. I think you also know where the code should be placed was not.
(2013-07-10, 05:07 AM).m. Wrote: [ -> ]just a note: above is a jQuery function - so jQueury script needs to be loaded and precautions should be taken
so that there is no conflict between jQuery & prototype used in MyBB (eg. add no conflict code, change $ ..)
helllo. m.
how so I can add the code into the forum.
I was also confused. because I do not understand the javascript code.
2013-07-10, 05:17 AM
noConflict() code
More info here:
http://api.jquery.com/jQuery.noConflict/
http://www.w3schools.com/jquery/jquery_noconflict.asp
More info here:
http://api.jquery.com/jQuery.noConflict/
http://www.w3schools.com/jquery/jquery_noconflict.asp
2013-07-10, 05:19 AM
This might help:
http://forums.icyboards.net/showthread.php?tid=4941
For including jQuery:
http://forums.icyboards.net/showthread.php?tid=4196
http://forums.icyboards.net/showthread.php?tid=4941
For including jQuery:
http://forums.icyboards.net/showthread.php?tid=4196
2013-07-10, 05:21 AM
suggested function can be added to headerinclude template (take care of the precautions)
2013-07-10, 05:28 AM
waw. thanks effone..
Thank you to all who have helped me.
including
.m. and VisualizeForums
Thank you to all who have helped me.
including
.m. and VisualizeForums