::: در حال بارگیری لطفا صبر کنید :::Loading , please wait ...

انجمن کدستانMoisrex

MoisrexMoisrex.rozblog.com
زمان جاریtime : جمعه 22 تیر 1403 - 2:59 قبل از ظهر
نام کاربریusername : پسوردpassword : یاor عضویتregister | رمز عبور را فراموش کردمForgot your password?
شما در سایت ما ثبت نام نکرده اید و یا وارد اکانت کاربری خود نشده اید. از شما خواهشمند هستیم You are not log in to site. Please وارد شویدlogin یاor ثبت نام کنیدregister .
smaeal آفلاین



ارسال‌هاAsnwers : 10648
عضویتRegistration date : 18 /11 /1392
حمایت کردهthanks : 18906
حمایت شدهThanked : 5424
پاسخAnswer 5 : یکی بیاد کمک برا کامل کردن کد جاوا

بفرما:

کد:
<html dir="rtl">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<meta http-equiv="Content-Language" content="fa">

<style>body{color:#000;font-family:Tahoma;font-size:14px}textarea{border:1px dashed #000;border-radius:10px;color:#000;direction:ltr;height:150px;margin-top:15px;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:7px;resize:none;width:500px}button{background:none repeat scroll 0 0 #3abec0;border:1px solid #3abec0;border-radius:3px;color:#000;cursor:pointer;font-family:tahoma;margin-right:5px;margin-top:10px;padding:5px}button:hover{background:none repeat scroll 0 0 #f81a3d;border:1px solid #3abec0;border-radius:3px;color:#eee;margin-right:5px;margin-top:10px;padding:5px}textarea:hover{border:1px dashed #3abec0;border-radius:10px;box-shadow:0 0 10px 1px #3abec0;transition:all 0.1s ease 0s}textarea:focus{border:1px dashed #3abec0;border-radius:10px;box-shadow:0 0 10px 1px #3abec0;transition:all 0.1s ease 0s}</style>

<script>

function notcopy() {

var selsel='',

f12=document.getElementById('f12'),

rightcilik=document.getElementById('rightcilik'),

ctrla=document.getElementById('ctrla'),

ctrlu=document.getElementById('ctrlu'),

selectthetext=document.getElementById('selectthetext');

if(f12.checked==true)selsel=f12.value;

else if(rightcilik.checked==true)selsel=rightcilik.value;

else if(ctrla.checked==true)selsel=ctrla.value;

else if(ctrlu.checked==true)selsel=ctrlu.value;

else if(selectthetext.checked==true)selsel=selectthetext.value;

var makuonlineabzar='<!-- not-copy --->\n<script> function contentprotector(){return false} isCtrl = false;document.ondragstart = contentprotector;<\/script>\n'+selsel+'\n<!-- not-copy --->';

document.getElementById('code').value=makuonlineabzar;

}

</script>

<center>

<br>هر کدام از گزینه های زیر را که میخواهید غیر فعال شوند انتخاب کنید و کد غیر فعال کردنشان را دریافت کنید

<p>غیر فعال کردن کلید f12 :

<input id="f12" name="f12" type="checkbox" value="<script>document.onkeypress = function(event){event = (event || window.event);if (event.keyCode === 123){return false}};</script>">

<br>غیر فعال کردن راست کلیک :

<input id="rightcilik" name="right-cilik" type="checkbox" value="<script>function mousehandler(e){var myevent = (isNS) ? e:event;var eventbutton = (isNS) ? myevent.which:myevent.button;if ((eventbutton === 2) || (eventbutton === 3)) return false}document.oncontextmenu = contentprotector;document.onmouseup = contentprotector;var isCtrl = false;</script>">

<br>غیر فعال کردن ctrl+a :

<input id="ctrla" name="ctrl+a" type="checkbox" value="<script>window.onkeyup = function(e){if (e.which === 17) isCtrl = false}</script>">

<br>غیر فعال کردن ctrl+u :

<input id="ctrlu" name="ctrl+u" type="checkbox" value="<script>document.onkeydown=function(event){var CharCodeMir=(event.which)?event.which:event.keyCode;if(CharCodeMir==85 && event.ctrlKey==true){event.preventDefault();return false}};</script>">

<br>غیر فعال کردن انتخاب متن :

<input id="selectthetext" name="select-the-text" type="checkbox" value="<script> function contentprotector(){return false} isCtrl = false;document.ondragstart = contentprotector;</script><style>body{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}</style>">

<br>

</p>

<center>

<button onclick="notcopy();">ساخت کد </button>

<br></center>

<div style="text-align: center;">

<textarea id="code" name="code" cols="50" readonly="readonly" onfocus="javascript:this.select();" onclick="javascript:this.select();"></textarea></div>

<br>


===================================================
برای تشکر از دکمه « سپاسگزارم » استفاده نمایید
جمعه 29 اسفند 1393 - 19:16
وب کاربرUser's blog ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks گزارشReport
حمایت شده حمایت شده: سپاس هاThanks (1) : rjrmaku -



moisrex
درباره ماAbout us لینک های ماOur links کلمات کلیدیKeywords
انجمن تخصصی کدستان ، ساخته شده توسط فردی با نام مستعار Moisrex می باشد.This forum designed by a person who called Moisrex.

ایمیلE-mail : Moisrex @ Gmail.com
کدستان,انجمن کدستان,کدنویسی,انجمن پشتیبانی,فروم,رزبلاگ,آموزش کدنویسی,درخواست کد
تمامی حقوق این انجمن مربوط به همین انجمن می باشد | طراحی قالبCopyright (c) By Moisrex , All rights reserved | Desiger : Moisrex