PDA

View Full Version : Pausing up-down scroller



traydog761
03-29-2006, 10:34 PM
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 (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

Twey
03-29-2006, 10:39 PM
<script type"text/javascript" src="scroller.js">
--pause content definitions here--
</script>This won't necessarily work. Use two seperate tags:
<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:
<link rel="stylesheet" type="text/css" href="body1.css" />

traydog761
03-29-2006, 11:03 PM
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?

Twey
03-29-2006, 11:13 PM
You could. Or you could put it in a seperate external CSS file, to keep it distinct.

traydog761
03-29-2006, 11:23 PM
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

Twey
03-29-2006, 11:26 PM
In that case, maybe you should link us to the page. Your link above is broken.

traydog761
03-29-2006, 11:29 PM
http://www.janandmartha.com/body1.html

Twey
03-29-2006, 11:37 PM
That's not there either.

traydog761
03-29-2006, 11:47 PM
tray again, I uploaded the wrong one.

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

traydog761
03-30-2006, 12:24 AM
Here are the links to every thing on the website.

body1.html (http://www.janandmartha.com/body1.html)
body1.css (http://www.janandmartha.com/body1.css)
scroller.css (http://www.janandmartha.com/scroller.css)
scroller.js (http://www.janandmartha.com/scroller.js)
scroller.txt (http://www.janandmartha.com/scrollet.txt)