by Guest Fri 11 Nov - 20:06
For some reason, there is some extra things in the script:
- Code:
<dl class="codebox"><dd><code><pre class="prettyprint linenums"><ol class="linenums"><li class="L0"><span class="pln"><script type"text/javascript"</span></li><li class="L1"><span class="pln">var cb_new=1;</span></li><li class="L2"><span class="pln">var cbmp3='http://bit.ly/rupblD';</span></li><li class="L3"><span class="pln">jQuery(document).ready(function(){</span></li><li class="L4"><span class="pln">jQuery('body').append('</span><span class="tag"><span</span><span class="pln"> </span><span class="atn">id</span><span class="fmvip">=</span><span class="atv">"cbalarm"</span><span class="tag">></span><span class="fmvip"><</span><span class="str">/span>');</span></li><li class="L5"><span class="str">});</span></li><li class="L6"><span class="str">jQuery('body').append('<div style="border-top: 7px solid yellow;border-left: 7px solid yellow; border-radius: 20px 0 0 0; z-index: 10000; -moz-border-radius: 20px 0 0 0; -webkit-border-radius: 20px 0 0 0; background-color: black; position: fixed; bottom: 0px; right: 0px;" onMousever="stopINT()" onClick="stopINT()" onClick="stopINT()" onMouseOut="stopINT()" id="chatbox_ret_cont"><div style="font-size: 12px; font-family: \'trebuchet ms\', serif; cursor: pointer; padding: 3px;"Â onClick="(document.getElementById(\'chatbox_ret\').style.display==\'block\')?my_setcookie(\'chatbox_ret\',\'0\',0,0):my_setcookie(\'chatbox_ret\',\'1\',0,0); jQuery(\'#chatbox_ret\').toggle(\'normal\');"><span style="color:black" id="chat1">ChatBox</</span><span class="pln">span</span><span class="fmvip">><</span><span class="pln">span id</span><span class="fmvip">=</span><span class="str">"chat2"</span><span class="fmvip">></</span><span class="pln">span</span><span class="fmvip">></</span><span class="pln">div</span><span class="fmvip">><</span><span class="pln">iframe src</span><span class="fmvip">=</span><span class="str">"/chatbox/index.forum"</span><span class="pln"> id</span><span class="fmvip">=</span><span class="str">"chatbox_ret"</span><span class="pln"> name</span><span class="fmvip">=</span><span class="str">"chatbox_ret"</span><span class="pln"> scrolling</span><span class="fmvip">=</span><span class="str">"no"</span><span class="pln"> marginwidth</span><span class="fmvip">=</span><span class="str">"0"</span><span class="pln"> marginheight</span><span class="fmvip">=</span><span class="str">"0"</span><span class="pln"> frameborder</span><span class="fmvip">=</span><span class="str">"0"</span><span class="pln"> style</span><span class="fmvip">=</span><span class="str">"width: 740px; height: 400px; display: none;"</span><span class="pln"> onLoad</span><span class="fmvip">=</span><span class="str">"if(cb_new) { cb_start(); cb_new=0; }"</span><span class="fmvip">></</span><span class="pln">iframe</span><span class="fmvip">></</span><span class="pln">div</span><span class="fmvip">></span><span class="str">')</span></li><li class="L7"><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parseInt</span><span class="fmvip">(</span><span class="pln">my_getcookie</span><span class="fmvip">(</span><span class="str">'chatbox_ret'</span><span class="fmvip">))==</span><span class="lit">1</span><span class="fmvip">)</span><span class="pln"> document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_ret'</span><span class="fmvip">).</span><span class="pln">style</span><span class="fmvip">.</span><span class="pln">display</span><span class="fmvip">=</span><span class="str">'block'</span><span class="fmvip">;</span></li><li class="L8"><span class="kwd">if</span><span class="fmvip">(!</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'i_icon_mini_login'</span><span class="fmvip">)){</span><span class="kwd">var</span><span class="pln"> oldCCB</span><span class="fmvip">;</span><span class="kwd">var</span><span class="pln"> oldDCB</span><span class="fmvip">;</span><span class="kwd">var</span><span class="pln"> pageTitle</span><span class="fmvip">=</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">title</span><span class="fmvip">;</span><span class="pln"> </span><span class="kwd">var</span><span class="pln"> INTCB</span><span class="fmvip">;</span><span class="kwd">function</span><span class="pln"> stopINT</span><span class="fmvip">(){</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">INTCB</span><span class="fmvip">!=</span><span class="kwd">undefined</span><span class="fmvip">){</span><span class="pln">clearInterval</span><span class="fmvip">(</span><span class="pln">INTCB</span><span class="fmvip">);</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">title</span><span class="fmvip">=</span><span class="pln">pageTitle</span><span class="fmvip">;}</span><span class="pln"> </span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">true</span><span class="fmvip">;}</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> checkCB</span><span class="fmvip">(){</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">connected</span><span class="fmvip">){</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_members'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">==</span><span class="lit">2</span><span class="fmvip">)</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_members'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="lit">0</span><span class="fmvip">].</span><span class="pln">className</span><span class="fmvip">==</span><span class="str">'member-title away'</span><span class="fmvip">)</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chat1'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="str">"Chat"</span><span class="fmvip">;</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chat2'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="str">"Box"</span><span class="fmvip">;</span><span class="pln"> </span><span class="fmvip">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chat2'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="str">"Box"</span><span class="fmvip">;</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chat1'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="str">"Chat"</span><span class="fmvip">;</span><span class="pln"> </span><span class="fmvip">}</span><span class="pln"> </span><span class="fmvip">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_members'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">></span><span class="lit">2</span><span class="fmvip">)</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_ret_online'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_members'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="lit">1</span><span class="fmvip">].</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">;</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_ret_offline'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_members'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="lit">5</span><span class="fmvip">].</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">;</span><span class="pln"> </span><span class="fmvip">}</span></li><li class="L9"><span class="pln">Â parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'refresh_auto'</span><span class="fmvip">).</span><span class="pln">checked</span><span class="fmvip">=</span><span class="kwd">true</span><span class="fmvip">;</span><span class="pln"> </span><span class="kwd">var</span><span class="pln"> newDCB</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">-</span><span class="lit">1</span><span class="fmvip">].</span><span class="pln">firstChild</span><span class="fmvip">.</span><span class="pln">innerHTML</span><span class="fmvip">;</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">newDCB</span><span class="fmvip">!=</span><span class="pln">oldDCB</span><span class="fmvip">){</span><span class="pln">oldDCB</span><span class="fmvip">=</span><span class="pln">newDCB</span><span class="fmvip">;</span><span class="kwd">var</span><span class="pln"> newCCB</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">-</span><span class="lit">1</span><span class="fmvip">].</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="lit">2</span><span class="fmvip">].</span><span class="pln">innerHTML</span><span class="fmvip">;</span><span class="pln"> stopINT</span><span class="fmvip">();</span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">newCCB</span><span class="fmvip">!=</span><span class="pln">oldCCB</span><span class="fmvip">){</span><span class="pln"> oldCCB</span><span class="fmvip">=</span><span class="pln">newCCB</span><span class="fmvip">;</span><span class="pln"> jQuery</span><span class="fmvip">(</span><span class="str">'#cbalarm'</span><span class="fmvip">).</span><span class="pln">html</span><span class="fmvip">(</span><span class="str">'<object id="cbalarm" type="application/x-shockwave-flash" data="http://tinyurl.com/minidew-fa" width="0" height="0" style="visibility:hidden"><param name="movie" value="http://tinyurl.com/minidew-fa" /><param name="flashvars" value="mp3='</span><span class="fmvip">+</span><span class="pln">cbmp3</span><span class="fmvip">+</span><span class="str">'&autoplay=1" /></object>'</span><span class="fmvip">);</span><span class="pln">INTCB</span><span class="fmvip">=</span><span class="pln">setInterval</span><span class="fmvip">(</span><span class="str">"document.title=(document.title==pageTitle)?'!!! New Message !!!':pageTitle;"</span><span class="fmvip">,</span><span class="lit">500</span><span class="fmvip">);</span><span class="pln"> setTimeout</span><span class="fmvip">(</span><span class="str">'stopINT()'</span><span class="fmvip">,</span><span class="lit">300000</span><span class="fmvip">);}}}</span><span class="kwd">else</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln">Â stopINT</span><span class="fmvip">();}}</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> cb_start</span><span class="fmvip">()</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">connected</span><span class="fmvip">)</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> oldDCB</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">-</span><span class="lit">1</span><span class="fmvip">].</span><span class="pln">firstChild</span><span class="fmvip">.</span><span class="pln">innerHTML</span><span class="fmvip">;</span><span class="pln">oldCCB</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">-</span><span class="lit">1</span><span class="fmvip">].</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="lit">2</span><span class="fmvip">].</span><span class="pln">innerHTML</span><span class="fmvip">;</span><span class="pln"> </span><span class="fmvip">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> oldDCB</span><span class="fmvip">=</span><span class="str">''</span><span class="fmvip">;</span><span class="pln"> oldCCB</span><span class="fmvip">=</span><span class="str">''</span><span class="fmvip">;</span><span class="pln"> </span><span class="fmvip">}</span><span class="pln"> setInterval</span><span class="fmvip">(</span><span class="str">'checkCB()'</span><span class="fmvip">,</span><span class="lit">1000</span><span class="fmvip">);</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">onfocus</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">onkeypress</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">onclick</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">onblur</span><span class="fmvip">=</span><span class="pln">stopINT</span><span class="fmvip">;}}</span><span class="tag"></script></span></li></ol></pre></code></dd></dl>
Copy this code:
http://kafs.123.st/h233-tert and replace the current code.
For the widget, copy this code:
- Code:
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://www.rateoffire.com/h10-chatbox" type="text/javascript"></script>
and replace the current code.