//mutualFunds.js //Assign functions to mouseover events on chart and click events to links function initChart() { //Assign click events var linkCollection = document.getElementsByTagName("a"); for(var i=0; i
"; htm += holders + " Holders
"; htm += positionValue + " Value
"; htm += allocation + " Owned of O/S"; //Update the content of the 'rollover' div. document.getElementById("rollover").innerHTML = htm; } function hideInvestmentStyle() { document.getElementById("rollover").innerHTML = ""; } //Onload function - call function to associate areas of donut chart and links with events addEvent(window, "load", initChart);