# I need help. I'm trying to figure out how to change the text color on a rollover

**URL:** <https://forum.kirupa.com/t/i-need-help-im-trying-to-figure-out-how-to-change-the-text-color-on-a-rollover/199950>\
**Category:** Uncategorized\
**Created:** [September 7, 2006, 2:01pm UTC](https://forum.kirupa.com/t/i-need-help-im-trying-to-figure-out-how-to-change-the-text-color-on-a-rollover/199950 "2006-09-07T14:01:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![soupee](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@soupee](https://forum.kirupa.com/u/soupee)\
**Post date:** [September 7, 2006, 2:01pm UTC](https://forum.kirupa.com/t/i-need-help-im-trying-to-figure-out-how-to-change-the-text-color-on-a-rollover/199950/1 "2006-09-07T14:01:05Z")

</div>

On the rollover, how do i reference the text color of the specific show\*.mcshow

Anyone? much appreciated for any feedback

//-----------------------  
function loadXML(loaded) {  
if (loaded) {  
xmlNode = this.firstChild;  
showdate = [];  
showtime = [];  
showlength = [];  
showtitle = [];  
showurl = [];  
episodetitle = [];  
episodeurl = [];  
total = xmlNode.childNodes.length;  
for (i=0; i\<total; i++) {  
showdate\* = xmlNode.childNodes\*.childNodes[0].firstChild.nodeValue;  
showtime\* = xmlNode.childNodes\*.childNodes[1].firstChild.nodeValue;  
showlength\* = xmlNode.childNodes\*.childNodes[2].firstChild.nodeValue;  
showtitle\* = xmlNode.childNodes\*.childNodes[3].firstChild.nodeValue;  
showurl\* = xmlNode.childNodes\*.childNodes[4].firstChild.nodeValue;  
episodetitle\* = xmlNode.childNodes\*.childNodes[5].firstChild.nodeValue;  
episodeurl\* = xmlNode.childNodes\*.childNodes[6].firstChild.nodeValue;

}  
mainSchedule();  
} else {  
content = “file not loaded!”;  
}  
}

bgdbuttons = Array()  
bgds = new Array();  
bgds.push()

xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“info.xml”);

function mainSchedule() {  
if (loaded == filesize) {  
for (var i=0; i\<total; i++) {  
this[“show” + i].mc\_time.text = showtime\*;  
this[“show” + i].mc\_show.text = showtitle\*;  
this[“show” + i].mc\_episode.text = “Episode:”;  
this[“show” + i].mc\_episodename.text = episodetitle\*;  
this[“show” + i].mcClick1.index=i;  
this[“show” + i].mcClick2.index=i;  
this[“show” + i].mcClick1.onRelease = function() {  
getURL(\_root.showurl[this.index]);  
}  
this[“show” + i].mcClick1.onRollOver = function() {  
\_root.show[this.index].mc\_show.color = 0x000000;

}

this[“show” + i].mcClick2.onRelease = function() {  
getURL(\_root.episodeurl[this.index]);  
}  
}  
}  
}
