Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script language="javascript">
- var msg=document.getElementsByName("dpro");
- for(var i=0;i<msg.length;i++){
- var txt=document.getElementsByName("dpro")[i].innerHTML;
- txt=txt.replace(/\[file]/ig,'<div class="file">Attached File:</div><div class="wcode" style="padding-left:10px" name="codes">');
- txt=txt.replace(/\[\/file]/ig,'</div>');
- txt=txt.replace(/\[media]\<a href="(.+?)">(.+?)\<\/a>(.+?)\[\/media]/ig,'<div class="file">Download $2 (<a href="$1" target="_blank">Tải xuống</a>)<span style="float:right">$3</span></div><div class="wcode" name="codes"><center><embed name="flashplayer" src="http://player.longtailvideo.com/player.swf" flashvars="file=http://danphuong.org/$1&autostart=true&image=http://photo.ssc.vn/images/272loading.gif&backcolor=0x000000&frontcolor=0xCCCCCC&lightcolor=0x557722" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="450" width="100%"></embed></center></div>');
- txt=txt.replace(/\[media=(.+?)](.+?)\[\/media]/ig,'<div class="file">Download $2 (<a href="$1" target="_blank">Tải xuống</a>)</div><div class="wcode" name="codes"><center><embed name="flashplayer" src="http://player.longtailvideo.com/player.swf" flashvars="file=$1&autostart=true&image=http://photo.ssc.vn/images/272loading.gif&backcolor=0x000000&frontcolor=0xCCCCCC&lightcolor=0x557722" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="450" width="100%"></embed></center></div>');
- document.getElementsByName("dpro")[i].innerHTML=txt;
- }
- </script>
- <script language="javascript">
- var msg=document.getElementsByName("dpro");
- for(var i=0;i<msg.length;i++){
- var oldtext=document.getElementsByName("dpro")[i].innerHTML;
- var newtext=oldtext.replace(/(^|[\n ])([\w]+?:\/\/[^ ,\"\n\r\t<]*)/ig,'$1<a href="$2" target="_blank">$2</a>');
- newtext=newtext.replace(/\[img\](.+?)\[\/img\]/ig,'<a href="$1" target="_blank" title="View Original Image"><img src="$1" alt=":get-topic(NARUTOCLAN.TK):" style="max-width:100%"/></a>'); document.getElementsByName("dpro")[i].innerHTML=newtext;
- }
- </script>
- <script language="javascript">
- var msg=document.getElementsByName("dpro");
- for(var i=0;i<msg.length;i++){
- var txt=document.getElementsByName("dpro")[i].innerHTML;
- txt=txt.replace(/\[youtube=(.+?)\]/ig,'<div name="video"><embed type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="100%" height="400px" src="$1&vq=large"/></div>');
- txt=txt.replace(/\[PHP\]/ig,'<pre class="quote1">PHP:<hr/><code name="codes" class="code">');
- txt=txt.replace(/\[\/PHP\]/ig, "</code></pre>");
- txt=txt.replace(/\[left\]/ig,'<div align="left">');
- txt=txt.replace(/\[\/left\]/ig, "</div>");
- txt=txt.replace(/\[center\]/ig,'<center>');
- txt=txt.replace(/\[\/center\]/ig, "</center>");
- txt=txt.replace(/\[right\]/ig,'<div align="right">');
- txt=txt.replace(/\[\/right\]/ig, "</div>");
- txt=txt.replace(/\[email\](.+?)\[\/email\]/ig, '<a href="mailto:$1">$1</a>');
- txt=txt.replace(/\[search=(.+?)\]/ig,'<a href="http://www.google.com/search?sitesearch=narutoclan.tk&q=$1">$1</a>');
- txt=txt.replace(/\[fsearch=(.+?)\]/ig,'<a href="site_18.xhtml?get-search=$1">$1</a>');
- txt=txt.replace(/\[size=(.+?)\]/ig,'<font size="$1">');
- txt=txt.replace(/\[\/size\]/ig, "</font>");
- txt=txt.replace(/\[input=(.+?)\]/ig,'<span name="codes"><input type="$1" size="20%" value="');
- txt=txt.replace(/\[\/input\]/ig,'"></input></span>');
- txt=txt.replace(/\[text\]/ig,'<textarea rows="5" name="codes">');
- txt=txt.replace(/\[youtube\](.+?)\[\/youtube\]/ig,'<embed type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="100%" height="400px" src="http://youtube.com/v/$1&vq=large"/>');
- txt=txt.replace(/\[\/text\]/ig, "</textarea>");
- txt=txt.replace(/\[form\]/ig,'<form method="get" action="site_0.xhtml">');
- txt=txt.replace(/\[\/form\]/ig, "</form>");
- txt=txt.replace(/\[option\]/ig, "<option>");
- txt=txt.replace(/\[\/option\]/ig, "</option>");
- txt=txt.replace(/\[select\]/ig, "<select>");
- txt=txt.replace(/\[\/select\]/ig, "</select>");
- txt=txt.replace(/\[indent\]/ig,'<div style="padding-left:10px">');
- txt=txt.replace(/\[you\]/ig, ':user:');
- txt=txt.replace(/\[\/indent\]/ig, "</div>");
- txt=txt.replace(/\[xt\]/ig,'<span style="display:scroll;position:relative;top:-10px">');
- txt=txt.replace(/\[xb\]/ig,'<span style="display:scroll;position:relative;bottom:-6px">');
- txt=txt.replace(/\[\/x\]/ig, "</span>");
- txt=txt.replace(/\[OL\]/ig,'<div id="mf_content" style="padding:0px 10px 0px"><ol>');
- txt=txt.replace(/\[\/OL\]/ig, "</ol></div>");
- txt=txt.replace(/\[LI\]/ig, "<li>");
- txt=txt.replace(/\[\/LI\]/ig, "</li>");
- txt=txt.replace(/\[xp\]/ig,'<div style="padding-top:8px;padding-bottom:8px"><hr style="border-top:1px solid #aaaaaa"/></div>');
- txt=txt.replace(/\[cb\]/ig, '<span class="cb">');
- txt=txt.replace(/\[\/cb\]/ig, '</span>');
- txt=txt.replace(/\[TD\]/ig, '<td class="box" style="padding:2px">');
- txt=txt.replace(/\[\/TD\]/ig, '</td>');
- txt=txt.replace(/\[table\]/ig, '<table width="100%">');
- txt=txt.replace(/\[\/table\]/ig, '</table>');
- txt=txt.replace(/\[TR\]/ig, '<tr>');
- txt=txt.replace(/\[\/TR\]/ig, '</tr>');
- txt=txt.replace(/\[B\]/ig, '<b>');
- txt=txt.replace(/\[\/B\]/ig, '</b>');
- txt=txt.replace(/\[U\]/ig, '<u>');
- txt=txt.replace(/\[\/U\]/ig, '</u>');
- txt=txt.replace(/\[I\]/ig, '<i>');
- txt=txt.replace(/\[\/I\]/ig, '</i>');
- txt=txt.replace(/\[TD=(.+?)\]/ig,'<td width="$1" class="box" style="padding:2px">');
- txt=txt.replace(/\[FONT=(.+?)\]/ig,'<span style="font-family:$1">');
- txt=txt.replace(/\[\/FONT\]/ig, '</span>');
- txt=txt.replace(/\[COLOR=(.+?)\]/g,'<font color="$1">');
- txt=txt.replace(/\[\/COLOR\]/g, '</font>');
- txt=txt.replace(/\[FLASH\](.+?)\[\/FLASH\]/ig, '<object width="100%" height="400"><param name="movie" value="$1" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed width="100%" height="400" src="$1" quality="high" wmode="transparent" type="application/x-shockwave-flash"></embed></object>');
- txt=txt.replace(/\[SPOI(.+?)\]/ig, '<style>.spoil$1 nav{display:none} .spoil$1:hover nav{display:block} .spoil$1:hover .linkxem{display:none}</style><div class="spoil$1"><span class="linkxem" style="color:red"><b>Content</b></span><nav>');
- txt=txt.replace(/\[\/SPOI\]/ig, '</nav></div>');
- txt=txt.replace(/5/ig,'::v');
- txt=txt.replace(/\<a href="\'(.+?)'\"(.+?)>/g,'<a href="$1" target="_blank">');
- txt=txt.replace(/\[LIST\]/ig, '<div style="padding-left:10px">');
- txt=txt.replace(/\[\/LIST\]/ig, '</div>');
- txt=txt.replace(/\[\*]/ig, '• ');
- txt=txt.replace(/\[URL='(.+?)'\]/g,'<a href="$1" target="_blank">');
- txt=txt.replace(/\[\/URL\]/ig, '</a>');
- txt=txt.replace(/\[ATTACH=full\](.+?)\[\/ATTACH\]/ig, '<a href="http://c.gocmobile.net/attachments/$1/" target="_blank" title="View Original Image"><img src="http://c.gocmobile.net/attachments/$1/" alt=":get-topic(NARUTOCLANS.TK):"/></a>');
- document.getElementsByName("dpro")[i].innerHTML=txt;
- }
- </script>
- <script language="javascript">
- var msg=document.getElementsByName('video');
- for(var i=0;i<msg.length;i++){
- var txt=document.getElementsByName('video')[i].innerHTML;
- txt=txt.replace(/watch/ig,'');
- txt=txt.replace(/v=/ig,'v/');
- txt=txt.replace('?','');
- document.getElementsByName('video')[i].innerHTML=txt;
- }
- </script>
- <script type="text/javascript"> function spoi(newItem){ var item=document.getElementById(newItem); if(item.style.display=='none'){item.style.display='block';} else {item.style.display='none';}} </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement