ameeraljn ~مدير~
عدد المساهمات : 54 نقاط : 3679 التقييم : 52 تاريخ الميلاد : 26/02/1990 تاريخ التسجيل : 29/07/2014 العمر : 34 المزاج : هههههه
| موضوع: كود زخرفه الخط الجمعة أغسطس 01, 2014 8:54 pm | |
| - الكود:
-
var censorship = [ ["text", /ك/g, "گ"], ["text", /ا/g, "آ"], ["text", /ب/g, "پ"], ["text", /ج/g, "چ"] ]; function censorNode(a) { if(a.nodeType == 3) { for(var b in censorship) { if(censorship[b][0] === "text") { a.nodeValue = a.nodeValue.replace(censorship[b][1], censorship[b][2]) } } }else { if(a.nodeType == 1) { for(b in censorship) { a.hasAttribute(censorship[b][0]) && a.setAttribute(censorship[b][0], a.getAttribute(censorship[b][0]).replace(censorship[b][1], censorship[b][2])) } } if(a.hasChildNodes()) { a = a.childNodes; for(b = 0;b < a.length;b++) { censorNode(a[b]) } } } } $(function() { $("div.postbody div" + ($("body#phpbb").length ? ".content div" : $("#ipbwrapper").length ? ".post-entry div:not(.clear)" : $("#pun-foot").length ? ".entry-content div div:not(.clear)" : "")).each(function() { censorNode(this); for(var a in censorship) { censorship[a][0] === "html" && censorship[a][1].test($(this).html()) && $(this).html($(this).html().replace(censorship[a][1], censorship[a][2])) } }) }); مكانه:لوحه الاداره,عناصر اضافيه,إدارة أكواد Javascript | |
|
admin ~مؤسسة المنتدى~
عدد المساهمات : 107 نقاط : 5585 التقييم : 3 تاريخ الميلاد : 07/06/1999 تاريخ التسجيل : 07/04/2013 العمر : 24 المزاج : مبسوطة معاكم
| موضوع: رد: كود زخرفه الخط الجمعة أغسطس 01, 2014 10:29 pm | |
| | |
|