news ticker problum
hai all,
this is srinath.m
i have problum that news ticker is not working on mozilla,in ie it is working below is my html snippet
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Ajax Mail</title>
<link rel="stylesheet" type="text/css" href="styles/AjaxMail.css" />
<link rel="stylesheet" type="text/css" href="styles/panelHeading.css" />
<link rel="stylesheet" type="text/css" href="styles/chat.css" />
<script type="text/javascript" src="scripts/zxml.js"></script>
<script type="text/javascript" src="scripts/json.js"></script>
<script type="text/javascript" src="scripts/xparser.js"></script>
<script type="text/javascript" src="scripts/newsticker.js"></script>
<script type="text/javascript">
var wClip = ["http://rss.news.yahoo.com/rss/topstories"];
/* var wClip = ["http://rss.cnn.com/rss/cnn_topstories",
"http://rss.news.yahoo.com/rss/topstories",
"http://news.bbc.co.uk/go/rss/-/sport1/hi/cricket/6540621.stm"];*/
function webClipping()
{ //alert("sdfsd");
var clipLength = wClip.length;
//var rand_no = Math.floor((clipLength-0)*Math.random()) + 1;
var rand_no = Math.floor(clipLength*Math.random());
//var str = wClip[rand_no]; //if random used then
var str = wClip[0];
var newsTicker = new NewsTicker();
newsTicker.add(str);
}
setTimeout(webClipping, 1000);
</script>
</head>
<body>
<div id="scrollDiv"><span id="spnScroll"><script type="text/javascript">webClipping();</script></span></div>
</body>
</html>
In newsticker.js file at line
NewsTickerFeed.prototype.populateTicker = function (sXml) {
var oParser = new XParser(sXml, true);
xParser is not define error iam getting.
please give solution for this.
Thanks
Sri
|