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 | | | | 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) | | | | 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/ | | | | 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) | | | | 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 | | | | 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 | | | | 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) | | | | 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/ | | | | 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é | | | | 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) | | | | 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. | | | | 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. | | | | 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) | | | | 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) |  | Similar JavaScript / Ajax / DHTML bytes | | | Forums
Visit our community forums for general discussions and latest on Bytes
/bytes/about
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 226,582 network members.
|