Posted By

sondosia on 12/30/06


Tagged

design xanga blogs blogging webdesign entries scrolling


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


Scrollbar in Entries


 / Published in: CSS
 

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

Puts a scrollbar in xanga entries. Paste in webstats.

  1. <style type="text/css">
  2. .custom{
  3. width: 200px;
  4. height: 200px;
  5. z-index:100;
  6. overflow: auto;
  7. border: px #000000 solid;
  8. background: #ffffff;
  9. }</style>
  10. <script>
  11. var tds = document.getElementsByTagName ('a');
  12. for (var i = 0; i < tds.length; i++) {
  13. timeString = tds[i].innerText;
  14. if(timeString.match(/\d+:\d+ [ap]m\b/i)){
  15. if(!tds[i].parentNode.parentNode.parentNode.parentNode.parentNode.tagName.match(/table/i)){break;}
  16. table = tds[i].parentNode.parentNode.parentNode.parentNode.parentNode;
  17. stuff = tds[i].parentNode.parentNode.parentNode.previousSibling.lastChild;
  18. inner = stuff.innerHTML
  19. stuff.innerHTML="";
  20. stuff.insertAdjacentHTML('afterBegin','<div class="custom">'+inner+'</div>');
  21.  
  22. }
  23. }
  24. </script>

Report this snippet  

You need to login to post a comment.