473,804 Members | 3,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8896
Mars wrote on 17 mei 2007 in comp.lang.javas cript:
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.javas cript:
>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.javas cript:
>>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='u p'
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.javas cript 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.javas cript:
vertjan. wrote :
>Mars wrote on 17 mei 2007 in comp.lang.javas cript:
>>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='u p'
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:r ed 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.getEle mentById('m')
m.direction = 'down'
m.scrollAmount = '20'
m.height = '120'

</script>

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

<button onclick='m.star t();'>
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.javas cript:
>vertjan. wrote :
>>Mars wrote on 17 mei 2007 in comp.lang.javas cript:

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:r ed 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.getEle mentById('m')
m.direction = 'down'
m.scrollAmount = '20'
m.height = '120'

</script>

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

<button onclick='m.star t();'>
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.javas cript:
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.javas cript 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.javas cript:
>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

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

Similar topics

4
2246
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 MYSQL table. I read these using PHP and the result is an array if you will of each of the 'lines' or records that the user wants displayed in the scroller. $msgctr is an integer that is the total number of records passed by PHP
2
1638
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 almost identical. Each has a slide show, a image loading progress bar and a message scroller. The message scroller is done with an <iframe>.
1
1867
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 scrolling javascript news item. I want to have a function on my scroller that when clicked on it calls the frameset for the news area and it replaces the entire current frameset.
3
2408
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? thanks, alex.
8
2447
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
1909
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 students at our school. However - we want to have multiple client PCs running a web interface that will allow them to type in their name / a message, and then this message appears on the "scroller" page, which will be on a projector.
3
1556
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 (albeit with the ability for a non technical person being able to update the links / headlines).
2
2185
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 file(newsscroller.js) in my ASP page, everything works great in a normal HTML page, I can see the scroller just fine, but in an ASP page it just does not show, I get some error message that the control has not been initialize, so far I've been...
5
1827
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 the same thing. My problem is that the Java always has code to place "fixed" or "static" text for scrolling. So I have to manually enter the words I need scrolled. Now . . I am also using a service called "FlexWindow" (www.flexwindow.com) where you...
0
9711
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9591
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10343
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10331
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10087
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9166
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7631
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.