Posted By

sondosia on 12/30/06


module design xanga blogs blogging webdesign customization

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Custom Module

 / Published in: JavaScript


Adds custom module in a xanga. Paste in webstats.

  1. <script>
  2. titleContent = 'Title Here';
  3. moduleContent = 'Module Content';
  4. sub = subTitle.parentNode.parentNode.parentNode.parentNode.parentNode
  5. sub.insertAdjacentHTML('beforeBegin','<table border="1" cellspacing="0" cellpadding="4" width="100%" class="left"><tr><th valign="top" align="left" class="left">' + titleContent + '</th></tr><tr><td valign="top" class="left">' + moduleContent)
  6. sub.insertAdjacentHTML('beforeBegin','<BR>');
  7. </script>

Report this snippet  

You need to login to post a comment.