<style>
body{color:#000;direction:rtl;font-family:Tahoma;font-size:14px}textarea{background:url("http://up.makuonline.ir/textra.png") repeat scroll 0 0 rgba(0,0,0,0);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-color:#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-color:#f81a3d;border:1px solid#3abec0;border-radius:3px;color:#eee;margin-right:5px;margin-top:10px;padding:5px}table{margin:0 auto;text-align:center}select{background:url("http://up.makuonline.ir/textra.png") repeat scroll 0 0 rgba(0,0,0,0);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}
</style>
<table><tr><td>
<!-- کد تبدیل عکس -->
<script>
function pic() {
var e = document.getElementById('editor');
var str = e.innerHTML;
e.innerHTML = str;
document.getElementById('piccodesaz').value='<p style="text-align:right;float:right;padding-left:20px;margin-top:-10px"><img width="150" height="150" src="'+e.getElementsByTagName('img')[0].src+'\">\n';
alert('عکس شما با موفقیت اضافه شد');
}
</script>
برای اضافه کردن عکس به مطلب آن را کشیده و در کادر زیر رها کنید
<br><br>
<div style="border:1px solid#000;border-radius:5px;height:150px;padding:10px;width:150px;margin: 0 auto;" id="editor" contenteditable="true"></div>
<textarea id="piccode" style="display:none;"></textarea>
<input value="اضافه کردن عکس" onclick="pic();" type="button"><br>
<textarea id="piccodesaz" style="display:none;"></textarea>
<!-- کد تبدیل عکس -->
<hr>
<!-- کد اضافه کردن متن -->
<script>
function matnmaku() {
var text=document.getElementById('text').value;
var abzar21=''+text+'';
document.getElementById('matncode').value=abzar21+''}
makuonline111 = 0;
function addInput() {
var address=document.getElementById('address').value;
if (makuonline111 +=1 ) {
makuonline1111 = makuonline111-1;
document.getElementById('text').value+='<p style="text-align:right;">'+address+'</p>\n';
document.getElementById('namayeshhdfs').innerHTML+='<option>[ '+address+' ]</option>';
}}
function clearvalue(){
address=document.getElementById('address').value='';
}
</script>
<textarea id="text" style="display:none;"></textarea>
<select name="beta" multiple="multiple" id="namayeshhdfs" style="border:1px dashed #000;border-radius:10px;color:#000;direction:ltr;height:80px;margin-top:15px;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:7px;resize:none;width:500px;"></select>
<br><br>
<input id="address" dir="ltr" style="width:360px;text-align:left" type="text" placeholder="اضافه کردن متن"><br><br>
<input value="اضافه کردن" onclick="addInput();clearvalue()" type="button"><br><br>
<input value="اضافه کردن متن" onclick="matnmaku();alert('متن شما با موفقیت اضافه شد')" type="button"><br>
<textarea id="matncode" style="display:none;"></textarea>
<!-- کد اضافه کردن متن -->
<hr>
<!-- اضافه کردن متن اینکد شده -->
<script>
function encodeTHis(){
var avvaliye=document.getElementById('codadd').value,
doovomi=document.getElementById('nvocode'),
sevvomi=escape(avvaliye),
chahar=escape(sevvomi),
panjomi=escape(chahar),
sheshomi=escape(panjomi),
makuonlinenotcopy='';
if(document.getElementById('nvo').checked)
makuonlinenotcopy='<SCR'+'IPT>function RrRrRrRr(teaabb){var tttmmm="";l=teaabb.length;www=hhhhffff=Math.round(l\/2);if(l<2*www) hhhhffff=hhhhffff-1;for(i=0;i<hhhhffff;i++)tttmmm = tttmmm + teaabb.charAt(i)+ teaabb.charAt(i+hhhhffff);if(l<2*www) tttmmm = tttmmm + teaabb.charAt(l-1);document.write(tttmmm);};RrRrRrRr("<CITLNUG=JvSrp\\"wie(idwsdbr?reflevriOffle\\tfdcmn.R.usrn(,)=fl\'{idwlcto=aotbak;sf=re<SRPSRP AGAE\\"aacit>sd=wno.iea)tu:as;a sf=as;i(ouetULsbtig04=\'ie)wno.oain\'bu:ln\'iOftu}\/CIT>");<\/SCR'+'IPT>';
doovomi.value='<scr'+'ipt>var makuonlineenc=(unescape("'+chahar+'"));var makuonlineenccc=unescape("'+sevvomi+'");var makuonlineencccc=unescape("'+panjomi+'");var makuonlineenccccc=unescape("'+sheshomi+'");'+' var CODEINGmakuonline=_0xf179;var _0xf179=["\x77\x72\x69\x74\x65"];document[_0xf179[0]](makuonlineenccc)+(makuonlineencccc)+(makuonlineenccccc);eval("CODEINGmakuonline")</sc'+'ript>'+makuonlinenotcopy;
}
</script>
غیر فعال کردن صفحه در حالت نمایش آفلاین :
<input id="nvo" name="nvo" type="checkbox" value="">
<br><br>
<input id="codadd" style="width:360px;text-align:left" placeholder="اضافه کردن به ادامه مطلب"><br><br>
<textarea id="nvocode" style="display:none;"></textarea>
<input value="اضافه کردن ادامه مطلب" onclick="encodeTHis();document.getElementById('nvocodesaz').value='</p>\n<\!--more-->\n<br><br><br><br>\n[member]\n'+document.getElementById('nvocode').value+'\n[/member]';alert('ادامه مطلب با موفقیت اضافه شد')" type="button"><br>
<textarea id="nvocodesaz" style="display:none;"></textarea>
<!-- اضافه کردن متن اینکد شده -->
<hr>
<!-- ساخت کد نهایی -->
<input value="ساخت کد نهایی" onclick="values();" type="button"><br>
<textarea id="address4" cols="50" readonly="readonly" onfocus="javascript:this.select();" onclick="javascript:this.select();"></textarea>
<script>
function values(){
var text1=document.getElementById('piccodesaz'),
text2=document.getElementById('matncode'),
text3=document.getElementById('nvocodesaz'),
text4=document.getElementById('address4');
text4.value=text1.value+text2.value+text3.value;
}
</script>
<!-- ساخت کد نهایی -->
</td></tr></table>