Results 1 to 4 of 4

Thread: Script Help

  1. #1
    Join Date
    Oct 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Script Help

    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.

  2. #2
    Join Date
    Nov 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You don't want the "script" tags in your .js file.

    Did you remove them?

    -hns

  3. #3
    Join Date
    Oct 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you, all that thinking and I missed that one little item.

  4. #4
    Join Date
    Nov 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No Problem. Glad to help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •