View Full Version : Script Help

10-12-2006, 09:34 PM
I am using this script on my site:

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)

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.

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

Did you remove them?


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

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