Scrollbar in Entries


/ Published in: CSS
Save to your folder(s)

Puts a scrollbar in xanga entries. Paste in webstats.


Copy this code and paste it in your HTML
  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>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.