|
<script type="text/Javascript"> // Put Smilies in Popup by Chris // Do not redistribute without permission of the creator var s = new Array(); function addSmiley(x){s.push(x);}
// Repeat the line below for each smiley that you want to appear in the popup. Remember that they must have been added via the admin panel. addSmiley("http://207.44.144.11/v2images/smiley__shocked.gif"); addSmiley("http://207.44.144.11/v2images/smiley__tongue.gif");
// DONT EDIT Array.prototype.inArray = function(_v){ for(var a=0;a<this.length;a++){ if(this[a] == _v){ return true; } } return false; } if(document.create_post || document.send_pm){ var f = (document.create_post?document.create_post:document.send_pm).message_color; f = f.parentNode; var d = f.getElementsByTagName("img"); var dat = ""; for(a=0;a<d.length;a++){ if(s.inArray(d[a].src)){ dat += "<a style='text-decoration: none;' href=\""+ d[a].parentNode.href.replace(/(add|document)/g, "window.opener.$1")+"; window.close();\">"+d[a].parentNode.innerHTML+"</a> "; d[a].parentNode.parentNode.style.display = "none"; } } f.innerHTML += "<font size='1'><a href='javascript:popSmiley();'>More Smilies</a></font>"; function popSmiley(){ var x = window.open(); x.document.write("<html><head><title>Smilies</title></head> <body>"+dat+"</body></html>"); } } </script> This codes let's you specify which smilies you'd like to load in a popup. Just find the editing portion and repeat the specified line. The module goes in your Global Footers.
Last Edit: May 26, 2007 17:34:44 GMT by Chris
|
|
|
|