I want to get this class to show up with the var newCaption. Below the Javascript I have linked the CSS Class.
window.onload = function() {
var caption = document.getElementsByTagName("caption");
var oldCaption = caption[0].innerHTML;
var newCaption = oldCaption + "CAPTION";
caption[0].removeChild(caption[0].firstChild);
caption[0].appendChild(document.createTextNode(newCaption));
Here's my CSS Class:
.hoverNode{
background-color:#FFFFCC;
border: solid 1px black;
width:100px;
height:100px;
position:relative;
float:top;
font-size:10pt;
margin:5px;
padding:3px;
color:black;
}