Click to See Complete Forum and Search --> : How to make text scroll across an area of the screen?
mchief111
07-10-2007, 06:51 AM
I feel kinda stupid asking this with Html 4 For Dummies sitting next to me, but i simply can't find it: how do you make a certain text float across the screen? An example of this is the "welcome to gwe" from my clan homepage, *****
WebJoel
07-10-2007, 07:01 AM
<marquee>Scrolling text part goes in here</marquee>
Adjustments for width, direction, repeat, etc. Look for "marquee" in your book or Google the term. I have not used marquee in years so, do not recall the specifics.
Major Payne
07-11-2007, 03:32 AM
HTML Marquee Code (http://www.quackit.com/html/codes/html_marquee_code.cfm)
Ron
felgall
07-11-2007, 03:38 AM
Of course Marquee is a proprietary tag that only works in some browsers. If you want something that works in all browsers you need to use JavaScript.
Also the scrolling is a behaviour and not part of the content and so if you are writing your HTML semantically the way you ought to then such tags as marquee should never be used even if they were part of the standards (which they never will be).
WebJoel
07-11-2007, 08:28 AM
Never say never... I read a small report that something similar to the "marquee" tag will or might be used in CSS3... (or perhaps this was wishful thinking for the author of that page/site which I didn't bookmark...)
felgall
07-11-2007, 03:09 PM
Well it would make more sense as CSS than as HTML since it could be argued that it is part of the appearance of the page as much as it is part of the behaviour of the page. It certainly isn't part of the content though.
Major Payne
07-11-2007, 03:44 PM
CSS# may yet support it:
http://www.w3.org/TR/css3-box/#marquee
Ron
Augur
07-11-2007, 04:09 PM
I was thinking about doing something like the scrolling headlines on this page, but with custom headlines that I choose. This isn't a Marquee command, it says "ticker" in the sourcecode.
What is the difference, and how hard is this to implement?
thanks
Major Payne
07-11-2007, 04:16 PM
Something like this?:
News Ticker Code Source Demo (http://www.ucl.ac.uk/web-services/silva-docs/functionailty/ticker-demo)
Java (not JavaScript) Ticker Code (http://www.eubusiness.com/syndication/syndicate_ticker_code.html)
Ron
Augur
07-11-2007, 05:11 PM
oops. I forgot to add the link
http://www.breitbart.com/article.php?id=070711162154.zr8euodr&show_article=1&catnum=-1
thanks. i'll check out the links
Major Payne
07-11-2007, 05:43 PM
oops. I forgot to add the link
http://www.breitbart.com/article.php?id=070711162154.zr8euodr&show_article=1&catnum=-1
thanks. i'll check out the linksThat LINK (http://www.breitbart.com/includes/webticker_lib.js?jsview) uses JS for ticker. Rest within page is styling and layout for ticker info and display.
Ron
Augur
07-11-2007, 08:19 PM
Thanks for tracking that down, Ron.
That's a little too rich for me right now, but I will keep it in mind.
However, Mioplanet also seems to offer a free and cheaper alternative here.
http://www.mioplanet.com/rsc/newsticker_javascript.htm
I've got it to work with text as the ticker, but not pulling from an rss.feed, which it says it can do
<DIV ID="TICKER" STYLE="overflow:hidden; width:520px" onmouseover="TICKER_PAUSED=true" onmouseout="TICKER_PAUSED=false">
<? include "feed.xml" ?>
</DIV>
<script type="text/javascript" src="webticker_lib.js" language="javascript"></script>
Any ideas? What I want to happen is to click on the title in the ticker and have it open in a new window.
thanks, steve
Major Payne
07-11-2007, 08:55 PM
Not sure that's gonna work without you making a php file for the RSS feed.
Ron
Augur
07-11-2007, 09:39 PM
Not sure that's gonna work without you making a php file for the RSS feed.
Ron
oy! That is not something I know how to do. I guess I am off to the php thread.
Major Payne
07-11-2007, 09:56 PM
OK. Let me know if someone gets it to work for you as I might want to play around with it myself.
Ron
Augur
07-11-2007, 10:16 PM
Here's the thread Ron. Thanks for any extra light you can shed!
steve
http://www.webdeveloper.com/forum/showthread.php?p=776418#post776418
felgall
07-12-2007, 02:10 AM
Ticker/Marquee javaScripts are extremely simple.
I have one anyone can copy at http://javascript.about.com/library/bltick1.htm
To scroll vertically instead of horizontally see http://javascript.about.com/library/blscroll1.htm
Major Payne
07-12-2007, 02:19 AM
He wants to use the one where he can install the RSS feed instead of what is offered at about.com.
Ron
Augur
07-12-2007, 07:16 AM
Ron's right. I've got the ticker working, it is loading it from a RSS feed that is the challenge.
Your site is great, btw. Lots of info there for me to learn. Thanks.