|
smilies
Jan 27, 2012 19:09:19 GMT -4
Post by MonsterControl on Jan 27, 2012 19:09:19 GMT -4
<script> /*Smiley Gallery Extra Smilies*/ var w_e_smile = [ ["http://s2.images.proboards.com/laugh.gif", ":lol:"], ["http://s2.images.proboards.com/laugh.gif", ":lol:"], ["http://s2.images.proboards.com/laugh.gif", ":lol:"]//<<< NO COMMA ON THIS LINE! ]; </script>
<script> /*Smiley Gallery Created By Wrighty Do not: rip, repost or claim*/
var s = { d: document.getElementsByTagName('td'), win: function(){ var g = window.open("","Smilies", "width=325,height=10,scrollbars=yes").document.body.appendChild( this.x.cloneNode(true) ); }, link: '<a href = "javascript: s.win();">Smiley Gallery</a>', x: document.createDocumentFragment(), s: '', init: function(){ if(document.postForm){ this.build(); } }, build: function(){ for(a = 0; a < this.d.length; a++){ if(/Smilies:/.test(this.d[a].innerHTML) && /windowbg2/.test(this.d[a].className)){ this.d[a+1].innerHTML = this.d[a+1].innerHTML.replace(/add/g, 'window.opener.add'); this.s = this.d[a+1].firstChild.cloneNode(true); this.d[a+1].firstChild.innerHTML = this.link; break; } } this.x.appendChild(document.createElement('br')); var d = document.createElement('center'); d.appendChild(this.s); if(typeof w_e_smile != 'undefined'){ for(a = 0; a < w_e_smile.length; a++){ var x = document.createElement('a'); var y = document.createElement('img'); y.src = w_e_smile[a][0]; y.border = '0'; x.appendChild(y); x.href = 'javascript:window.opener.add(" ' + w_e_smile[a][1] + '")'; d.appendChild(x); d.appendChild(document.createTextNode(' ')); } } d.appendChild(document.createElement('br')); var ar = document.createElement('a'); ar.href = 'javascript: window.close();'; ar.appendChild(document.createTextNode('Close Window')); d.appendChild(ar); this.x.appendChild(d); } }; s.init(); </script>
|
|