Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   General Discussions (http://forums.winamp.com/forumdisplay.php?f=1)
-   -   Javascript help anyone? (http://forums.winamp.com/showthread.php?t=201305)

protegechris 6th December 2004 12:30

Javascript help anyone?
 
I'm working on my xanga... Yeah, I use xanga :p Everyone I know uses it, so I'd rather use it as well than host my own with nobody looking at it ;)

Anyways. Here are the two codes I am working with.

The Custom Module Code:
code:

<script>
titleContent = 'Title Here';
moduleContent = 'Content 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>');
</script>


(breaks put in to stop from breaking frames)

And, in the "content here" space, I need to somehow include this:
code:
<script type="text/javascript">document.write('\u003c\u0069\u0066\u0072\u0061\
u006d\u0065\u0020\u0073\u0072\u0063\
u003d\u0022\u0068\u0074\u0074\u0070\
u003a\u002f\u002f\u0077\u0077\u0077\u002e\u0066\u0072\u0065\u0065\u0070\u0067\u0073\u002e\u0063\u006f\u006d\u002f\u0070\u0072\u006f\u0074\u0065\u0067\u0065\u0063\u0068\u0072\u0069\u0073\u002f\u0072\u0061\u0064\u0069\u006f\u002e\u0062\u006c\u006f\u006 7\u002f\u0069\u006e\u0064\u0065\u0078\u002e\u0070\u0068\u0070\u0022\u0020\u006e\u0061\u006d\u0065\u003d\u0022\u0052\u0041\u0044\u0049\u004f\u0042\u004c\u004f\u0047\u0022\u0020\u0073\u0063\u0072\u006f\u006c\u006c\u0069\u006e\u0067\u003d\u0022\u006e\u0 06f\u0022\u0020\u0066\u0072\u0061\u006d\u0065\u0062\u006f\u0072\u0064\u0065\u0072\u003d\u0022\u0030\u0022\u0020\u0077\u0069\u0064\u0074\u0068\u003d\u0022\u0032\u0032\u0032\u0022\u0020\u0068\u0065\u0069\u0067\u0068\u0074\u003d\u0022\u0033\u0030\u0030\ u0022\u003e\u003c\u002f\u0069\u0066\u0072\u0061\u006d\u0065\u003e')</script>



But I'm not sure how you would include a JS code inside of a JS code :weird:

Any help is appreciated ;)


All times are GMT. The time now is 11:12.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.