Im making Javascript and HTML coding within one widget, however, diffrent parts of coding are interracting with each other, im making buttons that change the words above them, but the buttons are making the wrong words change and into the wrong new statement.....
then i tried putting them in seperate widgets, but they STILL interracted with each other on the homepage...
this is the code im using for the first button:
here is the code for the second one,
but they keep interracting with each other, and also, i want to combine them into one widget, ive tried to do this, but its still the same problem occuring
please help me
then i tried putting them in seperate widgets, but they STILL interracted with each other on the homepage...
this is the code im using for the first button:
- Code:
<span style="font-size: 10px; line-height: normal">
<head>
<script>
function myFunction()
{
document.getElementById("a").innerHTML="AWCA: Willowstorm,Ravenstar,<br>Oceanstorm,Hazelflower,<br>Spottedleaf,Dovewing,<br>Petalpelt,Eaglestar";
}
</script>
</head>
<p id="a">The AWCA is an Amazing group of Warrior RP forums, AWCA(awesome warrior cats aliance) is a forum cluster</p>
<button type="button" onclick="myFunction()">AWCA leaders</button>
</script>
here is the code for the second one,
- Code:
<span style="font-size: 10px; line-height: normal">
<head>
<script>
function myFunction()
{
document.getElementById("staff").innerHTML="Willowstorm,Ravenstar,<br>Oceanstorm,Hazelflower,<br>Spottedleaf,Dovewing,<br>Petalpelt,Eaglestar";
}
</script>
</head>
<p id="staff">Warriorclan staff are<br> Always about, and ready to help!</p>
<button type="button" onclick="myFunction()">Staff list</button>
</script>
but they keep interracting with each other, and also, i want to combine them into one widget, ive tried to do this, but its still the same problem occuring
please help me
Last edited by Ravenstar on September 30th 2012, 7:52 am; edited 1 time in total