Connecting Tech Pros Worldwide Help | Site Map

Javascript News Scroller

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 17th, 2007, 11:05 AM
Mars
Guest
 
Posts: n/a
Default 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


  #2  
Old May 17th, 2007, 11:15 AM
Evertjan.
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

Mars wrote on 17 mei 2007 in comp.lang.javascript:
Quote:
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)
  #3  
Old May 17th, 2007, 02:25 PM
=?ISO-8859-1?Q?G=E9rard_Talbot?=
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

Evertjan. wrote :
Quote:
Mars wrote on 17 mei 2007 in comp.lang.javascript:
>
Quote:
>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
  #4  
Old May 17th, 2007, 04:45 PM
Randy Webb
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

Gérard Talbot said the following on 5/17/2007 10:22 AM:
Quote:
Evertjan. wrote :
Quote:
>Mars wrote on 17 mei 2007 in comp.lang.javascript:
>>
Quote:
>>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/
  #5  
Old May 17th, 2007, 05:35 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

Gérard Talbot wrote on 17 mei 2007 in comp.lang.javascript:
Quote:
vertjan. wrote :
Quote:
>Mars wrote on 17 mei 2007 in comp.lang.javascript:
>>
Quote:
>>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
Quote:
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)
  #6  
Old May 18th, 2007, 09:35 PM
=?ISO-8859-1?Q?G=E9rard_Talbot?=
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

Evertjan. wrote :
Quote:
Gérard Talbot wrote on 17 mei 2007 in comp.lang.javascript:
>
Quote:
>vertjan. wrote :
Quote:
>>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
>
Quote:
>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
  #7  
Old May 18th, 2007, 09:45 PM
=?ISO-8859-1?Q?G=E9rard_Talbot?=
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

Randy Webb wrote :
Quote:
Gérard Talbot said the following on 5/17/2007 10:22 AM:
Quote:
Quote:
>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
  #8  
Old May 18th, 2007, 10:25 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

Gérard Talbot wrote on 18 mei 2007 in comp.lang.javascript:
Quote:
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:
Quote:
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)
  #9  
Old May 19th, 2007, 08:45 AM
Randy Webb
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

Gérard Talbot said the following on 5/18/2007 5:35 PM:
Quote:
Randy Webb wrote :
Quote:
>Gérard Talbot said the following on 5/17/2007 10:22 AM:
>
Quote:
Quote:
>>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 :)
Quote:
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/
  #10  
Old May 19th, 2007, 04:05 PM
ASM
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

Evertjan. a écrit :
Quote:
Mars wrote on 17 mei 2007 in comp.lang.javascript:
>
Quote:
>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.
Quote:
<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é
  #11  
Old May 19th, 2007, 05:55 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

ASM wrote on 19 mei 2007 in comp.lang.javascript:
Quote:
Evertjan. a ‚crit :
Quote:
>Mars wrote on 17 mei 2007 in comp.lang.javascript:
>>
Quote:
>>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.
>
Quote:
><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)
  #12  
Old May 20th, 2007, 12:55 AM
-Lost
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

Evertjan. wrote:
Quote:
ASM wrote on 19 mei 2007 in comp.lang.javascript:
>
Quote:
>Evertjan. a ‚crit :
Quote:
>>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.
  #13  
Old May 20th, 2007, 01:05 AM
-Lost
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

Evertjan. wrote:
Quote:
Gérard Talbot wrote on 17 mei 2007 in comp.lang.javascript:
>
Quote:
>vertjan. wrote :
Quote:
>>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
>
Quote:
>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.
  #14  
Old May 20th, 2007, 07:35 AM
Evertjan.
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

-Lost wrote on 20 mei 2007 in comp.lang.javascript:
Quote:
Quote:
Quote:
>>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?
Quote:
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)
  #15  
Old May 20th, 2007, 07:35 AM
Evertjan.
Guest
 
Posts: n/a
Default Re: Javascript News Scroller

-Lost wrote on 20 mei 2007 in comp.lang.javascript:
Quote:
Quote:
><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
Quote:
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)
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.