Hey, I have this actionscript:
// **** Load XML ****************************
myXML = new XML();
myXML.ignoreWhite = true;
receiverXML = new XML();
myXML.onLoad = function(success) {
myXML.contentType = "text/xml";
if (success) {
this.showXML();
} else {
trace("Error loading XML file");
}
};
myIdentifier = Math.round(Math.random()*10000);
myXML.load("sponsor.xml?uniq="+myIdentifier);
receiverXML.onLoad = function() {
this.contentType = "text/xml";
_root.currPage = 0;
this.showXML();
};
// DinKost:
XML.prototype.showXML = function() {
dinkost.scroll = 1;
dinkost.htmlText = "";
var numItems = this.firstChild.childNodes.length;
var firstItem = numItems-(currPage*showAmount);
if (currPage == 0) {
previous._visible = false;
}
var lastItem = firstItem-showAmount;
if (lastItem<=0) {
lastItem = 0;
next._visible = false;
}
dinkost.htmlText = "DinKost" + "
";
dinkost.htmlText += this.firstChild.childNodes[0].firstChild.nodeValue+"
";
dinkost.htmlText += "- [http://www.dinkost.no](http://www.dinkost.no/)";
};
from the guestbook tutorial.
But how can I get these two lines to appear in red and have an url ? :
dinkost.htmlText = "DinKost" + "
";
dinkost.htmlText += "- [http://www.dinkost.no](http://www.dinkost.no/)";
Thanks for any help,
fatnslow