Custom Module Code, But not JS.. |
Custom Module Code, But not JS.. |
Dec 5 2004, 06:32 AM
Post
#1
|
|
|
Member ![]() ![]() Group: Member Posts: 22 Joined: Nov 2004 Member No: 62,714 |
I've got a javascript code I would like to put into a custom leftside module, but the JS code doesn't work when placed within another JS code, so is there any alternative to the javascript approach?
|
|
|
|
![]() |
Dec 5 2004, 08:46 PM
Post
#2
|
|
|
Senior Member ![]() ![]() ![]() Group: Member Posts: 92 Joined: Feb 2004 Member No: 3,709 |
I wrote that code.
Why do you need the first part two go into the second? If you want custom module, just change the values of 'moduleContent' and 'titleContent'. anyway QUOTE <script>
titleContent = 'Affiliations'; moduleContent = ' stuff here '; sub = subTitle.parentNode.parentNode.parentNode.parentNode.parentNode 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) sub.insertAdjacentHTML('beforeBegin','<BR>'); encrypted = "encrypted text"; moduleContent = decrypt(encrypted); </script> |
|
|
|
protegechris Custom Module Code Dec 5 2004, 06:32 AM
protegechris More description here.
I'm putting this code... Dec 5 2004, 10:42 AM
pynk_laday what exactly is the first code that you want to pu... Dec 5 2004, 11:07 AM
protegechris it's encrypted html ;) Dec 5 2004, 11:51 AM
protegechris Someone's got to know how to do this, it's... Dec 5 2004, 06:48 PM
DaToNeViEtBoI916 don't double post. it's against our rules.... Dec 5 2004, 07:17 PM
protegechris thanks. fixed. Dec 6 2004, 10:21 AM
Sherry_Vu QUOTE(protegechris @ Dec 6 2004, 10:21 AM)tha... Dec 6 2004, 03:22 PM![]() ![]() |