PDA

View Full Version : Ajax Ticker



adnauseam
04-15-2008, 04:37 PM
1) Script Title: Ajax Ticker

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ajaxticker.htm


3) Describe problem:

When I attempt to run this script on my web server; I get the message
Initializing Ticker....
And nothing else.
Here is the code I am using in full:

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#ajaxticker1{
width: 160px;
height: 140px;
padding: 3px;
font-family : verdana, arial, sans-serif; font-size : 9px; line-height : 10px; color : #4A4A4A;}
}
#ajaxticker1 div{ /*IE6 bug fix when text is bold and fade effect (alpha filter) is enabled. Style inner DIV with same color as outer DIV*/

}

.someclass{ //class to apply to your scroller(s) if desired
}
-->
</style>
<script src="ajaxticker.js" type="text/javascript">
/***********************************************
* Ajax Ticker script (txt file source)- Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
</script>

</head>




<body>
<script type="text/javascript">

var xmlfile="currentnews.txt" //path to ticker txt file on your server.

//ajax_ticker(xmlfile, divId, divClass, delay, optionalfadeornot)
new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 5000, "fade")
</script>
</body>
</html>

ddadmin
04-15-2008, 04:53 PM
Make sure currentnews.txt as specified inside your script exists and in the current directory the script is on. Also, locally you should use Firefox (not IE) to see if the script is working.