Return to Snippet

Revision: 2114
at December 30, 2006 09:47 by sondosia


Initial Code
<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>

Initial URL
http://www.geocities.com/cheerfreak908/FAQ.htm

Initial Description
Puts a scrollbar in xanga entries. Paste in webstats.

Initial Title
Scrollbar in Entries

Initial Tags
design

Initial Language
CSS