473,396 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Javascript News Scroller

I'm looking for a javascipt vertical news scroller that will scroll
from the bottom of the page to the top showing many new items.

Would really appreciate some help. The scroller I'm using at the
moment only shows one news item at a time, can anyone suggest code I
could insert to show many news items?

Mars

May 17 '07 #1
14 8856
Mars wrote on 17 mei 2007 in comp.lang.javascript:
I'm looking for a javascipt vertical news scroller that will scroll
from the bottom of the page to the top showing many new items.

Would really appreciate some help. The scroller I'm using at the
moment only shows one news item at a time, can anyone suggest code I
could insert to show many news items?
Why use js?

<marquee
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 17 '07 #2
Evertjan. wrote :
Mars wrote on 17 mei 2007 in comp.lang.javascript:
>I'm looking for a javascipt vertical news scroller that will scroll
from the bottom of the page to the top showing many new items.

Would really appreciate some help. The scroller I'm using at the
moment only shows one news item at a time, can anyone suggest code I
could insert to show many news items?

Why use js?

<marquee
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>
One possible reason would be because <marqueeis not valid HTML 4.01.
Another reason is that <marqueeis not accessible: the user can not
control it, can not make it stop, slow down, restart, etc.

Other possible alternatives for the OP:

http://devedge-temp.mozilla.org/tool...js-loader.html

http://devedge-temp.mozilla.org/tool...ch-pauser.html

http://devedge-temp.mozilla.org/tool...-combined.html

http://devedge-temp.mozilla.org/tool.../index_en.html
and
http://developer.mozilla.org/en/docs...e:Stock_Ticker

One good example (cross-browser, using validated markup code,
accessible) of using a right to left DHTML marquee:
http://developer.mozilla.org/samples/StockTicker/

Gérard
--
Using Web Standards in your Web Pages (Updated Apr. 2007)
http://developer.mozilla.org/en/docs...your_Web_Pages
May 17 '07 #3
Gérard Talbot said the following on 5/17/2007 10:22 AM:
Evertjan. wrote :
>Mars wrote on 17 mei 2007 in comp.lang.javascript:
>>I'm looking for a javascipt vertical news scroller that will scroll
from the bottom of the page to the top showing many new items.

Would really appreciate some help. The scroller I'm using at the
moment only shows one news item at a time, can anyone suggest code I
could insert to show many news items?

Why use js?

<marquee
direction='up'
scrollamount='2'blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>

One possible reason would be because <marqueeis not valid HTML 4.01.
Neither is 99% of the HTML on the web but that doesn't stop people :)

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 17 '07 #4
Gérard Talbot wrote on 17 mei 2007 in comp.lang.javascript:
vertjan. wrote :
>Mars wrote on 17 mei 2007 in comp.lang.javascript:
>>I'm looking for a javascipt vertical news scroller that will scroll
from the bottom of the page to the top showing many new items.

Would really appreciate some help. The scroller I'm using at the
moment only shows one news item at a time, can anyone suggest code I
could insert to show many news items?

Why use js?

<marquee
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>

One possible reason would be because <marqueeis not valid HTML 4.01.
See Randy's answer
Another reason is that <marqueeis not accessible: the user can not
control it, can not make it stop, slow down, restart, etc.
cannot?

<marquee id='m'
style='border:red dotted 4px;width:200px;'
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>

<script type='text/javascript'>

var m = document.getElementById('m')
m.direction = 'down'
m.scrollAmount = '20'
m.height = '120'

</script>

<button
onclick='m.stop();'>
Stop
</button>

<button onclick='m.start();'>
Start
</button>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 17 '07 #5
Evertjan. wrote :
Gérard Talbot wrote on 17 mei 2007 in comp.lang.javascript:
>vertjan. wrote :
>>Mars wrote on 17 mei 2007 in comp.lang.javascript:

I'm looking for a javascipt vertical news scroller that will scroll
from the bottom of the page to the top showing many new items.

Would really appreciate some help. The scroller I'm using at the
moment only shows one news item at a time, can anyone suggest code I
could insert to show many news items?

Why use js?

<marquee
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>
One possible reason would be because <marqueeis not valid HTML 4.01.

See Randy's answer
>Another reason is that <marqueeis not accessible: the user can not
control it, can not make it stop, slow down, restart, etc.

cannot?

<marquee id='m'
style='border:red dotted 4px;width:200px;'
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>

<script type='text/javascript'>

var m = document.getElementById('m')
m.direction = 'down'
m.scrollAmount = '20'
m.height = '120'

</script>

<button
onclick='m.stop();'>
Stop
</button>

<button onclick='m.start();'>
Start
</button>
Yes, it can be controlled (stop, slow down, restart,etc) by the user
with javascript. BTW, you incidentally answered your own question: why
use js? For normal basic accessibility and usability reasons.

The webpage at
http://devedge-temp.mozilla.org/tool.../index_en.html
may offer more power, customization, configurability to people
potentially interested in implementing a news ticker, DHTML-marquee.

Gérard
--
Using Web Standards in your Web Pages (Updated Apr. 2007)
http://developer.mozilla.org/en/docs...your_Web_Pages
May 18 '07 #6
Randy Webb wrote :
Gérard Talbot said the following on 5/17/2007 10:22 AM:
>One possible reason would be because <marqueeis not valid HTML 4.01.

Neither is 99% of the HTML on the web but that doesn't stop people :)
Valid markup code is always better, should always be considered or
proposed/submitted as the best recommended solution for all the websites
out there.

I think the 99% may be exagerated a bit. It's possibly 90% - 95% now
(just a hunch). Recently, Chris Wilson said (I can not/no longer find
where..., can't recall wehre) that out of 200 major websites on the web
which were not using web standards in 2001, about 100 of them are now
using web standards in their websites. Things are moving, improving
slowly (I hope).

Gérard
--
Using Web Standards in your Web Pages (Updated Apr. 2007)
http://developer.mozilla.org/en/docs...your_Web_Pages
May 18 '07 #7
Gérard Talbot wrote on 18 mei 2007 in comp.lang.javascript:
Yes, it can be controlled (stop, slow down, restart,etc) by the user
with javascript. BTW, you incidentally answered your own question: why
use js? For normal basic accessibility and usability reasons.
No, you are mixing the Qs up, Gérard.

A JS scroller was asked for in the OQ, I suggested <marqueewhich is not a
js scroller, but can be controlled by js, which had been negated by you.

You wrote:
Another reason is that <marqueeis not accessible: the user can not
control it, can not make it stop, slow down, restart, etc.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 18 '07 #8
Gérard Talbot said the following on 5/18/2007 5:35 PM:
Randy Webb wrote :
>Gérard Talbot said the following on 5/17/2007 10:22 AM:
>>One possible reason would be because <marqueeis not valid HTML 4.01.

Neither is 99% of the HTML on the web but that doesn't stop people :)

Valid markup code is always better, should always be considered or
proposed/submitted as the best recommended solution for all the websites
out there.
Absolutely :)
I think the 99% may be exagerated a bit. It's possibly 90% - 95% now
(just a hunch). Recently, Chris Wilson said (I can not/no longer find
where..., can't recall wehre) that out of 200 major websites on the web
which were not using web standards in 2001, about 100 of them are now
using web standards in their websites. Things are moving, improving
slowly (I hope).
If it took 7 years for 50% to create valid markup, it looks promising to
get to 90% by 2020 :-)

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 19 '07 #9
ASM
Evertjan. a écrit :
Mars wrote on 17 mei 2007 in comp.lang.javascript:
>I'm looking for a javascipt vertical news scroller that will scroll
from the bottom of the page to the top showing many new items.
<marquee
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>

Too much ! ! That works in my FF, Safari and Opera !
Thought it was IE slang !

The tag 'marquee' is part of HTML 4 ?

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
May 19 '07 #10
ASM wrote on 19 mei 2007 in comp.lang.javascript:
Evertjan. a ‚crit :
>Mars wrote on 17 mei 2007 in comp.lang.javascript:
>>I'm looking for a javascipt vertical news scroller that will scroll
from the bottom of the page to the top showing many new items.
><marquee
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>


Too much ! ! That works in my FF, Safari and Opera !
Thought it was IE slang !

The tag 'marquee' is part of HTML 4 ?
It was said in this thread it is not.

The proof of the pudding is in the eating however.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 19 '07 #11
Evertjan. wrote:
ASM wrote on 19 mei 2007 in comp.lang.javascript:
>Evertjan. a ‚crit :
>>Mars wrote on 17 mei 2007 in comp.lang.javascript:

I'm looking for a javascipt vertical news scroller that will scroll
from the bottom of the page to the top showing many new items.
<marquee
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>

Too much ! ! That works in my FF, Safari and Opera !
Thought it was IE slang !

The tag 'marquee' is part of HTML 4 ?

It was said in this thread it is not.

The proof of the pudding is in the eating however.
This strikes me as really odd. In Firefox 1.5.0.11 the marquee tag
malfunctions if JavaScript is not enabled.

Anyone else see this in Firefox?

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 20 '07 #12
Evertjan. wrote:
Gérard Talbot wrote on 17 mei 2007 in comp.lang.javascript:
>vertjan. wrote :
>>Mars wrote on 17 mei 2007 in comp.lang.javascript:

I'm looking for a javascipt vertical news scroller that will scroll
from the bottom of the page to the top showing many new items.

Would really appreciate some help. The scroller I'm using at the
moment only shows one news item at a time, can anyone suggest code I
could insert to show many news items?

Why use js?

<marquee
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>
One possible reason would be because <marqueeis not valid HTML 4.01.

See Randy's answer
>Another reason is that <marqueeis not accessible: the user can not
control it, can not make it stop, slow down, restart, etc.

cannot?

<marquee id='m'
style='border:red dotted 4px;width:200px;'
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>

<script type='text/javascript'>

var m = document.getElementById('m')
m.direction = 'down'
m.scrollAmount = '20'
m.height = '120'
In what browser, UA, or viewing device were you able to set height or
width? I get unable to set a getter.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 20 '07 #13
-Lost wrote on 20 mei 2007 in comp.lang.javascript:
>>The tag 'marquee' is part of HTML 4 ?

It was said in this thread it is not.

The proof of the pudding is in the eating however.

This strikes me as really odd.
What does? The above or the below?
In Firefox 1.5.0.11 the marquee tag
malfunctions if JavaScript is not enabled.

Anyone else see this in Firefox?


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 20 '07 #14
-Lost wrote on 20 mei 2007 in comp.lang.javascript:
><marquee id='m'
style='border:red dotted 4px;width:200px;'
direction='up'
scrollamount='2'>
blah 1<br>
blah 2<br>
blah 3<br>
blah 4
</marquee>

<script type='text/javascript'>

var m = document.getElementById('m')
m.direction = 'down'
m.scrollAmount = '20'
m.height = '120'

In what browser, UA, or viewing device were you able to set height or
width?
IE7
I get unable to set a getter.
Are you perhaps unable to get a setter?

alt.dogs.setters.marketplace
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 20 '07 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Owen Parker | last post by:
Hi all I am not a java programmer but i can hack at it a bit. I am trying to allow a user to define the text in a simple javascript text scroller. The data is stored as multiple records in a...
2
by: Terry | last post by:
Hello, http://free.hostdepartment.com/j/javashop/this_works.htm http://free.hostdepartment.com/j/javashop/this_doesnot.htm Please take a look of the above two links. The two pages are...
1
by: lindsey.crocker | last post by:
I have a problem calling a framset from javascript - I will explain as best I can. I have a site with 2 frames. Left frame contains a javascript menu. Right frame contains the page and a...
3
by: Alex D. | last post by:
does any body knows about some horizontal news scrollers that supports relative position or that resizes automatically to fit the whole horizontal space when viewed in different resolutions? ...
8
by: Boni | last post by:
Dear all, imagine this is scroll bar. Min|-------------|scroller|---------|Max The position of scroller is set with Value. How do I change the width of scroller? Thank you in advance, Boni
9
by: paul | last post by:
Hi All, We have a small dilemma. We have the following page: http://giggsey.com/m00Cow.php (don't ask about the content) that we want to turn into an interactive application for some new intake...
3
by: David Smithz | last post by:
Hi there, I need to build a news ticker tool just like the one of the following website: http://www.scottwilson.com/ I coincidentally came across this and thought it is what I needed...
2
by: verci | last post by:
Hi guys, sorry if this seems stupid but I'm a newbie, I'm running Windows XP Pro SP2, IE 7, VS2005, ASP.net 2.0 The problem is that I'm trying to display this news scroller made in a Javascript...
5
by: CartmanCreative | last post by:
I am totally new to Javascript, and would desperately like some help. I have downloaded a Javascript Text Scroller that uses DHTML to scroll text up and down. There are other Java scrollers that do...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.