Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Text automatically scrolling in ASP.Net

Reply
Thread Tools

Text automatically scrolling in ASP.Net

 
 
Paul S
Guest
Posts: n/a
 
      06-02-2008
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
 
Reply With Quote
 
 
 
 
Munna
Guest
Posts: n/a
 
      06-02-2008
On Jun 2, 5:08 pm, Paul S <Pa...@discussions.microsoft.com> wrote:
> 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
 
Reply With Quote
 
 
 
 
Paul S
Guest
Posts: n/a
 
      06-02-2008
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...@discussions.microsoft.com> wrote:
> > 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
>

 
Reply With Quote
 
Michael Nemtsev [MVP]
Guest
Posts: n/a
 
      06-02-2008
Hello Paul,

You need to know how much text do you have, for example number of lines
and then you can use window.scrollByLines() or window.scrollByPages()

---
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


PS> Thanks, but how do I make it scroll automatically - over and over
PS> again thanks Paul S
PS>
PS> "Munna" wrote:
PS>
>> On Jun 2, 5:08 pm, Paul S <Pa...@discussions.microsoft.com> wrote:
>>
>>> 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



 
Reply With Quote
 
Paul S
Guest
Posts: n/a
 
      06-02-2008
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.scrollByLines() or window.scrollByPages()
>
> ---
> 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
>
>
> PS> Thanks, but how do I make it scroll automatically - over and over
> PS> again thanks Paul S
> PS>
> PS> "Munna" wrote:
> PS>
> >> On Jun 2, 5:08 pm, Paul S <Pa...@discussions.microsoft.com> wrote:
> >>
> >>> 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

>
>
>

 
Reply With Quote
 
Michael Nemtsev [MVP]
Guest
Posts: n/a
 
      06-02-2008
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


PS> Hi Michael
PS> The information has a ValidFrom property and a ValidTo property
PS> indicating
PS> when it should be displayed so I have to calculate it when I
PS> generate the
PS> page. I thought of building a table dynamically.
PS> thanks
PS> Paul 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.scrollByLines() or
>> window.scrollByPages()
>>
>> ---
>> 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
>>
>> PS> Thanks, but how do I make it scroll automatically - over and over
>> PS> again thanks Paul S
>> PS>
>> PS> "Munna" wrote:
>> PS>
>>>> On Jun 2, 5:08 pm, Paul S <Pa...@discussions.microsoft.com> wrote:
>>>>
>>>>> 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



 
Reply With Quote
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      06-02-2008
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" <> wrote in message
news:329AA35D-262A-4DC5-B4E2-...
> 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


 
Reply With Quote
 
silver007 silver007 is offline
Junior Member
Join Date: Jun 2008
Posts: 1
 
      06-02-2008
Hi my friends

there are a lot of java scripts for scrolling the direction you like
and maybe the best one is
( <MARQUEE onmouseover=this.stop() onmouseout=this.start() scrollAmount=2 scrollDelay=90 direction=up align="center">you can put your text here </MARQUEE> )

and from scrollAmount you can adjust the scrolling speed
and from direction you chose whatever

i'm sorry this is line by line scrolling put if you want page by page scrolling I'll put it for you

and you know i have a lote of ways to do so

you can check our hospital website

www.alnoorhospital.com

Regards
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
smooth scrolling & auto scrolling sillyputty Firefox 1 08-24-2007 02:10 AM
automatically scrolling down the page to the bottom after adding data to it by xmlhttpreq object? zhifchen@gmail.com Javascript 1 11-09-2005 09:06 PM
Automatically scrolling a dynamic table dschectman@yahoo.com Javascript 1 11-08-2005 10:52 PM
Make scrolling text David ASP .Net 3 12-27-2004 07:52 PM
Scrolling Text Anwar ASP .Net 0 08-11-2003 10:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57