Results 1 to 10 of 10

Thread: Pausing up-down scroller

  1. #1
    Join Date
    Mar 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pausing up-down scroller

    Script: Pausing up-down scroller
    http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

    I would like to cut down on the scripts in my header tags, because I'm designing this site for my church. I want to try to reference this script in an external file so that I can still have the script working, just referenced outside of the original document. This is just a little of what I have done and what the </head> tags look like:

    <style type"text/css">
    @import url("body1.css");
    </style>

    <style type"text/css">
    <--scroller CSS styles here-->
    </style>

    <script type"text/javascript" src="scroller.js">
    --pause content definitions here--
    </script>


    http://www.janandmartha.com/body_test.html

    Here is the page where its going to be. When I put it in the "Latest News:" area, I get nothing. There is something else that happens when I reference the script to the external file. When I do this, the whole header with the "Latest News" area disappears. This very frustrating.

    Please help because i'm on a deadline-esque situation and need a possibly prompt response.

    I;m on yahoo messenger now, if you would like to chat about this, you can add me to your buddy list:
    username: traydog761

    Thanks and Much Appreciated,
    Travis

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    <script type"text/javascript" src="scroller.js">
    --pause content definitions here--
    </script>
    This won't necessarily work. Use two seperate tags:
    Code:
    <script type="text/javascript" src="scroller.js"></script>
    <script type="text/javascript">
    --pause content definitions here--
    </script>
    Also, @import isn't supported by some browsers (mostly older ones), and there is a more widely-supported alternative available:
    Code:
    <link rel="stylesheet" type="text/css" href="body1.css" />
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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

    Default

    Where the CSS style is referenced to the pausescroller "look" could I put that in the "body1.css" file also? or would it be good where it is?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You could. Or you could put it in a seperate external CSS file, to keep it distinct.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    CRAP!!! I'm backed into a corner now. I have done everything. I have put the acutal "innards" of the scroller file into a seperate .js file, I have put the scroller style definitions into a seperate CSS file, and linked and referenced them into the document.....I get nothing...not even text...I'm pissed..


    Don't know Twey, could ya help out a little bit more..

    -Travis

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    In that case, maybe you should link us to the page. Your link above is broken.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Mar 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    That's not there either.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Mar 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    tray again, I uploaded the wrong one.

    http://www.janandmartha.com/body1.html

  10. #10
    Join Date
    Mar 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Here are the links to every thing on the website.

    body1.html
    body1.css
    scroller.css
    scroller.js
    scroller.txt

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
  •