The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

where can i put this code

View previous topic View next topic Go down

Solved where can i put this code

Post by BetterHax on April 10th 2013, 7:21 am

hi i just want to know where can i put this code

http://help.forumotion.com/t50779-script-to-disable-the-right-click



Last edited by BetterHax on April 10th 2013, 2:21 pm; edited 1 time in total

BetterHax
Forumember

Posts : 304
Reputation : 3
Language : English,Tagalog
Location : United State, Philippines

Back to top Go down

Solved Re: where can i put this code

Post by E-Mark on April 10th 2013, 10:24 am

Put this the Site Description:
- ACP > General > Forum > Cofiguration > Site Description

Code:
<script language=Javascript1.2> function ejs_nodroit() { alert('Text Here');
    return(false); } document.oncontextmenu = ejs_nodroit; </script>

E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: where can i put this code

Post by BetterHax on April 10th 2013, 11:47 am

Code:
<script language=JavaScript>
    <!--

    //Disable right mouse click Script
    //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
    //For full source code, visit http://www.dynamicdrive.com

    var message="Click Disabled";

    ///////////////////////////////////
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }

    function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
    alert(message);
    return false;
    }
    }
    }

    if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
    }
    else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
    }

    document.oncontextmenu=new Function("alert(message);return false")

    // -->
    </script>

what is propose of this e mark?


Last edited by BetterHax on April 10th 2013, 12:26 pm; edited 1 time in total

BetterHax
Forumember

Posts : 304
Reputation : 3
Language : English,Tagalog
Location : United State, Philippines

Back to top Go down

Solved Re: where can i put this code

Post by E-Mark on April 10th 2013, 11:51 am

This one:
Code:
<script language=Javascript1.2> function ejs_nodroit() { alert('Text Here');
    return(false); } document.oncontextmenu = ejs_nodroit; </script>

E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: where can i put this code

Post by E-Mark on April 10th 2013, 1:05 pm

Well, on the tutorial:

@Master Marc wrote:Script To Disable The Right-Click On An HTML Page
Code:
<script language=JavaScript>
    <!--

    //Disable right mouse click Script
    //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
    //For full source code, visit http://www.dynamicdrive.com

    var message="Click Disabled";

    ///////////////////////////////////
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }

    function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
    alert(message);
    return false;
    }
    }
    }

    if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
    }
    else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
    }

    document.oncontextmenu=new Function("alert(message);return false")

    // -->
    </script>

E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: where can i put this code

Post by BetterHax on April 10th 2013, 2:20 pm

ahhh ok i get it now..
thanks e mark.. e mark can you see my problem in appearance about login slide thanks

BetterHax
Forumember

Posts : 304
Reputation : 3
Language : English,Tagalog
Location : United State, Philippines

Back to top Go down

Solved Re: where can i put this code

Post by Jophy on April 10th 2013, 2:24 pm

Topic Solved & Locked

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum