473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Automatically scrolling

GG
Hello.

Is possible automatically scrolling frame using java script ???

Thank for help
GG
Jul 23 '05 #1
2 1524


GG wrote:

Is possible automatically scrolling frame using java script ???


var frame = parent.frames.frameName;
if (frame && frame.scrollBy) {
frame.scrollBy(0, 20);
}
scrolls the frame, if you want to repeat that use setInterval:

function scrollFrame (frame) {
frame.scrollBy(0, 20);
}

var timerId;
if (parent.frames.frameName) {
timerId = setInterval('scrollFrame(parent.frames.frameName); ', 50);
}

In reality you might also want to clear the interval timer once the
frame has been scrolled to the end but checking that requires browser
specific code.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
GG
thanks
Uzytkownik "Martin Honnen" <ma*******@yahoo.de> napisal w wiadomosci
news:42***********************@newsread2.arcor-online.net...


GG wrote:

Is possible automatically scrolling frame using java script ???


var frame = parent.frames.frameName;
if (frame && frame.scrollBy) {
frame.scrollBy(0, 20);
}
scrolls the frame, if you want to repeat that use setInterval:

function scrollFrame (frame) {
frame.scrollBy(0, 20);
}

var timerId;
if (parent.frames.frameName) {
timerId = setInterval('scrollFrame(parent.frames.frameName); ', 50);
}

In reality you might also want to clear the interval timer once the
frame has been scrolled to the end but checking that requires browser
specific code.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #3

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

Similar topics

1
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...
1
by: dschectman | last post by:
I have an interesting issue. I need to implement a dynamic table to mimic a select list. Each time you double click from the master list, a row is added to the list of selected items. The list...
1
by: zhifchen | last post by:
Hi guys, I have some problem about my little http/javascript/xmlhttpreq based chatroom program: I use xmlhttpreq object to add data to the current html file. It will add to a specifiy place, like...
1
by: angel duran | last post by:
Hi... i'm trying to accomplish this and i will be using some pictures so you can easily follow me along. I have this form <link>http://img30.exs.cx/my.php?loc=img30&image=4214.jpg</link> and in...
4
by: Nathan Sokalski | last post by:
I am writing code for ASP.NET, and when switching between design and HTML view in .aspx files many of the lines that are longer than the screen width automatically wrap to the next line. I do not...
2
by: P2P | last post by:
Hi I am wondering if someone know of a free cross-browsers vertical scrolling script that - is cross cross-browsers - will call the scrolling content from an external html page or from a...
5
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...
6
by: =?Utf-8?B?UGF1bCBT?= | last post by:
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.