|
This will add head/base images to your polls and separate them from the thread itself (so they don't look cramped.) This hack goes in your global footers.
<script type="text/Javascript"> // Poll Head/Base Images by Chris // Do not redistribute without permission of the creator
var headImg = "HEAD"; // URL of the head image var baseImg = "BASE"; // URL of the base image
// Don't edit if(location.href.match(/action=view_topic/i)){ var f = document.forms; for(a=0;a<f.length;a++){ if(typeof f[a].action == "string" && f[a].action.match(/action=do_poll/i)){ var x = f[a]; while(x.nodeName.toLowerCase() != "table") x = x.parentNode; var h = new Image(); h.src = headImg; b = h.cloneNode(false); b.src = baseImg; x.parentNode.insertBefore(document.createElement("br"), x.nextSibling); x.parentNode.insertBefore(document.createElement("br"), x.nextSibling); x.parentNode.insertBefore(b, x.nextSibling); x.parentNode.insertBefore(h, x); break; } } } </script>
|
|
|
|