/ Published in: CSS

Puts a scrollbar in xanga entries. Paste in webstats.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<style type="text/css"> .custom{ width: 200px; height: 200px; z-index:100; overflow: auto; border: px #000000 solid; background: #ffffff; }</style> <script> var tds = document.getElementsByTagName ('a'); for (var i = 0; i < tds.length; i++) { timeString = tds[i].innerText; if(timeString.match(/\d+:\d+ [ap]m\b/i)){ if(!tds[i].parentNode.parentNode.parentNode.parentNode.parentNode.tagName.match(/table/i)){break;} table = tds[i].parentNode.parentNode.parentNode.parentNode.parentNode; stuff = tds[i].parentNode.parentNode.parentNode.previousSibling.lastChild; inner = stuff.innerHTML stuff.innerHTML=""; stuff.insertAdjacentHTML('afterBegin','<div class="custom">'+inner+'</div>'); } } </script>
URL: http://www.geocities.com/cheerfreak908/FAQ.htm
Comments
