Hi
I have a screen display news data stored in a database. Sometimes the amount
of data displayed exceeds the screen size. How can I make this scroll
automatically over and over again ?
thank Paul S 6 1487
On Jun 2, 5:08 pm, Paul S <Pa...@discussi ons.microsoft.c omwrote:
Hi
I have a screen display news data stored in a database. Sometimes the amount
of data displayed exceeds the screen size. How can I make this scroll
automatically over and over again ?
thank Paul S
Hi
to scroll page or document element you can use
window.scrollTo
or
window.scrollBy
dom methods...
when your page's content change check the height of the document
element
if it exceeds the screen size make scroll your content..
Best of luck
Munna www.munna.shatkotha.com www.munna.shatkotha.com/blog www.shatkotha.com
Thanks, but how do I make it scroll automatically - over and over again
thanks Paul S
"Munna" wrote:
On Jun 2, 5:08 pm, Paul S <Pa...@discussi ons.microsoft.c omwrote:
Hi
I have a screen display news data stored in a database. Sometimes the amount
of data displayed exceeds the screen size. How can I make this scroll
automatically over and over again ?
thank Paul S
Hi
to scroll page or document element you can use
window.scrollTo
or
window.scrollBy
dom methods...
when your page's content change check the height of the document
element
if it exceeds the screen size make scroll your content..
Best of luck
Munna www.munna.shatkotha.com www.munna.shatkotha.com/blog www.shatkotha.com
Hello Paul,
You need to know how much text do you have, for example number of lines
and then you can use window.scrollBy Lines() or window.scrollBy Pages()
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
PSThanks, but how do I make it scroll automatically - over and over
PSagain thanks Paul S
PS>
PS"Munna" wrote:
PS>
>On Jun 2, 5:08 pm, Paul S <Pa...@discussi ons.microsoft.c omwrote:
>>Hi I have a screen display news data stored in a database. Sometimes the amount of data displayed exceeds the screen size. How can I make this scroll automatical ly over and over again ? thank Paul S
Hi
to scroll page or document element you can use
window.scrollT o or window.scrollB y dom methods...
when your page's content change check the height of the document element if it exceeds the screen size make scroll your content.. Best of luck
Munna www.munna.shatkotha.com www.munna.shatkotha.com/blog www.shatkotha.com
Hi Michael
The information has a ValidFrom property and a ValidTo property indicating
when it should be displayed so I have to calculate it when I generate the
page. I thought of building a table dynamically.
thanks
Paul S
"Michael Nemtsev [MVP]" wrote:
Hello Paul,
You need to know how much text do you have, for example number of lines
and then you can use window.scrollBy Lines() or window.scrollBy Pages()
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
PSThanks, but how do I make it scroll automatically - over and over
PSagain thanks Paul S
PS>
PS"Munna" wrote:
PS>
On Jun 2, 5:08 pm, Paul S <Pa...@discussi ons.microsoft.c omwrote:
Hi I have a screen display news data stored in a database. Sometimes the amount of data displayed exceeds the screen size. How can I make this scroll automaticall y over and over again ? thank Paul S
Hi
to scroll page or document element you can use
window.scrollTo
or
window.scrollBy
dom methods...
when your page's content change check the height of the document
element
if it exceeds the screen size make scroll your content..
Best of luck
Munna www.munna.shatkotha.com www.munna.shatkotha.com/blog www.shatkotha.com
Hello Paul,
why to do in on server side?! rely on client, and do it via DOM model, because
you can't be sure about the opened size of browser window.
javascript will do this job smoothly
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
PSHi Michael
PSThe information has a ValidFrom property and a ValidTo property
PSindicating
PSwhen it should be displayed so I have to calculate it when I
PSgenerate the
PSpage. I thought of building a table dynamically.
PSthanks
PSPaul S
PS"Michael Nemtsev [MVP]" wrote:
PS>
>Hello Paul,
You need to know how much text do you have, for example number of lines and then you can use window.scrollBy Lines() or window.scrollB yPages()
--- WBR, Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo
PSThanks, but how do I make it scroll automatically - over and over PSagain thanks Paul S PS> PS"Munna" wrote: PS>
>>>On Jun 2, 5:08 pm, Paul S <Pa...@discussi ons.microsoft.c omwrote:
Hi I have a screen display news data stored in a database. Sometimes the amount of data displayed exceeds the screen size. How can I make this scroll automatical ly over and over again ? thank Paul S Hi
to scroll page or document element you can use
window.scrol lTo or window.scrol lBy dom methods... when your page's content change check the height of the document element if it exceeds the screen size make scroll your content.. Best of luck Munna www.munna.shatkotha.com www.munna.shatkotha.com/blog www.shatkotha.com
Try using one of the JavaScript scrollers out there. You will have to load
the text from your code behind, but that should be all you have to do to get
it working, at least in a basic implementation. If you want reuse, you will
make a server control that spits out the JavaScript.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it: http://gregorybeamer.spaces.live.com/
*************** *************** *************** ****
| Think outside the box!
|
*************** *************** *************** ****
"Paul S" <Pa***@discussi ons.microsoft.c omwrote in message
news:32******** *************** ***********@mic rosoft.com...
Hi
I have a screen display news data stored in a database. Sometimes the
amount
of data displayed exceeds the screen size. How can I make this scroll
automatically over and over again ?
thank Paul S
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Midas NDT Sales |
last post by:
I have been looking at a simple example of a scrolling text box (the one in
the SAM book) as below:
<script language="JavaScript">
var pos=100;
function Scroll() {
if (!document.getElementById) return;
obj=document.getElementById("thetext");
pos -=1;
if (pos < 0-obj.offsetHeight+130) return;
|
by: Cat Laugel |
last post by:
Hello,
I am redesigning my website and would like to have the text scroll within
the webpage without the page itself scrolling.... if you understand what I
mean... ;-)
I want a very sleek look and would like to use little arrows that people
could press to see more of the text rather than have a very long page....
How should I go about that? I use DW3. Can it be done????
Thanks for any info!! ;-)
|
by: laura |
last post by:
Can anyone help me to decide the best way to do this please.
I'm writing an intranet and I need to put something like a non-editable
scrolling text box on the home page where daily announcements can be placed.
I've tried adding a scrolling text box, but I am not sure how to make it
non-editable. Is there any way I can fill the textbox using something like
textstream? I would imagine one person in the organisation would be in
charge of...
|
by: Will Gillen |
last post by:
I need to have a "scrolling" text label or textbox at the bottom of my
window to show the URL of where a song is being played from. I want the
text to scroll on a single line from left to right in case the URL is longer
than the width of the textbox/text label.
Is there a native way to do this in VB.NET?
|
by: pigeonrandle |
last post by:
Hi,
I have seen loads of different ways to do this, but the all seem to
yield the same result - text that doesn't flicker when it's moving too
slowly!
Does anyone know 'the best way' to make text scroll...
eg
Override OnPain and OnPaintBackground
Override WndProc
| |
by: PythonistL |
last post by:
I am a newbie with Javascript. I have this simple script for scrolling
text
<HTML>
<HEAD>
<TITLE>Scrolling Message Script</TITLE>
<SCRIPT language="JavaScript"><!--
var msg = 'My scrolling text.. '
function scrollMsg(){
|
by: Thorsten Kleinweber |
last post by:
Hello,
I did some first steps in programming a site for a friend and have some
questions concerning web design.
The site is http://www.stevanez-juls.de:
1. On my tft display (with low brightness adjustment) the site is correctly
bright but on some other monitors it's very dark, does somebody know why?
2. Does somebody know why scrolling the white text on black background is
deforming the text? If I change the background to a brighter...
|
by: =?Utf-8?B?UGhpbCBKb2huc29u?= |
last post by:
Hi
I am pretty new to asp.net gridviews.
I need to get the text in one column to scroll, I have little screen space
and one column is normally empty, but is sometimes quite long.
Has anybody done this? Can I just put a Marquee into the column to acheive
this? if so, how do I do that?
|
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...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |