Admin .:: رئيس مجلس إدارة المنتدى ::.
![.:: رئيس مجلس إدارة المنتدى ::. .:: رئيس مجلس إدارة المنتدى ::.](https://i.servimg.com/u/f84/14/14/94/26/2n1et910.png)
![Admin](https://2img.net/u/3016/47/58/72/avatars/1-13.png)
دولتي : ![الجزائر الجزائر](https://i.servimg.com/u/f31/17/71/84/72/1581010.gif) ![ذكر ذكر](https://2img.net/i/fa/subsilver/icon_minigender_male.gif) مساهماتي : 1759 dsd : 11 إنضمامي : 29/12/2013
![كود زخرفة المواضيع والردود احلى منتدى Empty](https://2img.net/i/empty.gif) | موضوع: كود زخرفة المواضيع والردود احلى منتدى الإثنين يوليو 21, 2014 11:41 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])) } })}); | |
|