Log In · Register

 
Custom Module Code, But not JS..
protegechris
post 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?
 
 
Start new topic
Replies
coyote
post 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'.

_dry.gif some bastard detagged my name here...
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>
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: