2007-7-8 01:26
扎肉瘦腿
每篇日記加捲軸
每篇日記加捲軸
放起website度。
[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>[/code]