I-See 論壇 » 網上日記區 » XANGA專區 » [轉]整到每篇日記刀*有一條野拉泥拉去

2007-5-4 05:06 PM YAMMI
[轉]整到每篇日記刀*有一條野拉泥拉去

<style type="text/css">
.custom{
width: 600px; height: 500px; z-index:100; overflow: auto; border: px #000000 solid; background: :#fffdfc; }</style>
<script>
var tds = document.getElementsByTagName (a);
for (var i = 0; i < tds.length; i++) {
timeString = tds.innerText;
if(timeString.match(/\d+:\d+ [ap]m\b/i)){
if(!tds.parentNode.parentNode.parentNode.parentNode.parentNode.tagName.match(/table/i)){break;}
table = tds.parentNode.parentNode.parentNode.parentNode.parentNode;
stuff = tds.parentNode.parentNode.parentNode.previousSibling.lastChild;
inner = stuff.innerHTML
stuff.innerHTML="";
stuff.insertAdjacentHTML(afterBegin,<div class="custom">+inner+</div>);
}
}
</script>
放ws

頁: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.