So Annoyed, Script from Xanga Scripts Forum Not Working |
So Annoyed, Script from Xanga Scripts Forum Not Working |
Feb 4 2007, 07:39 PM
Post
#1
|
|
|
Member ![]() ![]() Group: Member Posts: 24 Joined: Feb 2005 Member No: 97,382 |
I've been trying to make a custom right module using the following code and pasting it in my webstats and it's not working. Yes, I do have premium if that's a question. I'm wondering why this code doesn't work anymore when I used to use it before and it worked just fine?
<!-- start code provided by createblog.com --> <!-- Script by Paul Chen --> <td id="customRight" style="display:none" vAlign="top" width="200"> <!-- module:start --> <table class="left" cellSpacing="0" cellPadding="4" width="100%" border="1"> <tr><th class="left" vAlign="top" align="center"> module title here </th></tr> <tr><td class="left" vAlign="top"> module stuff here </td></tr> </table> <br/> <!-- module:end --> <!-- module:start --> <table class="left" cellSpacing="0" cellPadding="4" width="100%" border="1"> <tr><th class="left" vAlign="top" align="center"> module title here </th></tr> <tr><td class="left" vAlign="top"> module content here </td></tr> </table> <br/> <!-- module:end --> </td> <script> extra=false; j=document.getElementById('MoreoverModule1_lblModuleTitle') if(j){extra=true} index=0; var mytds = document.getElementsByTagName('td'); var i = 0; for(i=0;i<mytds.length-1;i++){ if(mytds[i].width=="200"){ index++; if(index==(extra ? 2 : 1)){break;}} } var sidebar = (extra ? mytds[i]: mytds[i].parentNode) var tsibpc = document.getElementById('customRight'); var rightSide = tsibpc.cloneNode(true); rightSide.style.display = "block"; sidebar.appendChild(rightSide); </script> <!-- end code provided by createblog.com --> Also, I have this code in my webstats to disable the left side of my Xanga. Is it conflicting with the other code for some reason? <!-- begin code provided by createblog.com --> <style type='text/css'> .mainleft { display:none; } </style> <!-- end code provided by createblog.com --> Can anyone tell me why this isn't working anymore? It used to work before Xanga made all of the new upgrades these last few months. |
|
|
|
![]() |
Feb 4 2007, 08:01 PM
Post
#2
|
|
|
Member ![]() ![]() Group: Member Posts: 24 Joined: Feb 2005 Member No: 97,382 |
Found this script to post in webstats for custom modules too and it doesn't work either. [sigh] I don't want to sound like I am "desparate" but I kind of am. I can't get my new graphics and theme up without a custom module and I don't want to resort to using the boring plain module on the left that Xanga says is a "custom module" when really it isn't, it's just where they want you to put any extra info. Such a bummer...
Oops! Forgot to post the script in that last one that I had found that said it was a java script for Xanga. <script>titleContent = 'Title Here';moduleContent = 'Module Content';sub = subTitle.parentNode.parentNode.parentNode.parentNode.parentNodesub.insertAdjacen HTML('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)sub.insertAdjacentHTML('beforeBegin','<BR>');</script> |
|
|
|
| *Kathleen* |
Feb 5 2007, 02:49 PM
Post
#3
|
|
Guest |
In regards to the first post of yours, I just tried that exact code (both of them, actually), and it still works. The only difference is that by adding the second code disables the original left module completely and you're left with the custom modules. Mrrm. Then again, I don't have Premium, but I don't think that should be the problem. Can I see your Xanga?
|
|
|
|
Feb 5 2007, 09:59 PM
Post
#4
|
|
|
Member ![]() ![]() Group: Member Posts: 24 Joined: Feb 2005 Member No: 97,382 |
Sending you the URL to my Xanga in a pm here at the forums so check your inbox.
|
|
|
|
![]() ![]() |