Alright, so I'm working on a board and I want the chatbox located on the board to change colours whenever you change the board theme. I have a couple of questions: If I create a variable in a separate Javascript coding will it carry over to another set of Javascript code on the page?
Anyway, I'm totally winging this and I have NO experience with Javascript, but here's what I tried to do:
[CODE=javascript]<script language="Javas cript"><!--
var x = akatsuki
if (x == akatsuki){
document.Create Element("<div>< EMBED src="http://willoffirechat. chatango.com/group" bgcolor="#FFFFF F" width="500" height="500" wmode="transpar ent" allowScriptAcce ss="always" allowNetworking ="all" type="applicati on/x-shockwave-flash" flashvars = "a=CCCCCC&b=75& e=FFFFCC&h=FFFF CC&k=000000&l=9 99999&q=000000& r=100&s=1"></EMBED><br>[ <a href="http://willoffirechat. chatango.com/clonegroup">Cop y this</a> | <a href="http://chatango.com/creategroup">St art New</a> | <a href="http://willoffirechat. chatango.com">F ull Size</a> ]</div>")
}
//--></script>
[/CODE]
I realize that this is probably super wrong... >.>
Anyway, I'm totally winging this and I have NO experience with Javascript, but here's what I tried to do:
[CODE=javascript]<script language="Javas cript"><!--
var x = akatsuki
if (x == akatsuki){
document.Create Element("<div>< EMBED src="http://willoffirechat. chatango.com/group" bgcolor="#FFFFF F" width="500" height="500" wmode="transpar ent" allowScriptAcce ss="always" allowNetworking ="all" type="applicati on/x-shockwave-flash" flashvars = "a=CCCCCC&b=75& e=FFFFCC&h=FFFF CC&k=000000&l=9 99999&q=000000& r=100&s=1"></EMBED><br>[ <a href="http://willoffirechat. chatango.com/clonegroup">Cop y this</a> | <a href="http://chatango.com/creategroup">St art New</a> | <a href="http://willoffirechat. chatango.com">F ull Size</a> ]</div>")
}
//--></script>
[/CODE]
I realize that this is probably super wrong... >.>
Comment