PDA

View Full Version : Script Help



xasx
10-12-2006, 09:34 PM
I am using this script on my site:
http://dynamicdrive.com/dynamicindex2/crosstick.htm

I stuck the head section of the code in news.js and put a include on my page:
<script type="text/javascript" src="news.js"></script>

and I put this where I wanted the scroller:
<script type="text/javascript">
//new pausescroller(name_of_message_array, CSS_ID, CSS_classname, pause_in_miliseconds)
new pausescroller(pausecontent, "pscroller1", "pscroller1", 4000)
</script>

Now my Firefox Javascript Toolbar tells me the function pausescroller is not defined. What am I doing wrong here? Thank you in advance.

PS, It worked find when I had news.js as a php include, but I needed this on a non-php page.

hacknsack
10-13-2006, 02:32 AM
You don't want the "script" tags in your .js file.

Did you remove them?

-hns

xasx
10-13-2006, 02:16 PM
Thank you, all that thinking and I missed that one little item.

hacknsack
10-13-2006, 06:32 PM
No Problem. Glad to help.