473,325 Members | 2,816 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,325 software developers and data experts.

Urgente Help Please with Frame Scroll

Hello, excuse me bu I'm not a programmer.
I have two frames, left navigation, right main
In the left I have two buttons (up and down), I need to scroll the
mainFrame up when I push the up button and down when I press the down
button.
I have search in google, but I have not found a working script.

Please anyone can help me?

Thanks
Bubu
Oct 19 '06 #1
3 1496
ASM
Bubu a écrit :
Hello, excuse me bu I'm not a programmer.
I have two frames, left navigation, right main
I understand you work with a framed page
In the left I have two buttons (up and down), I need to scroll the
mainFrame up when I push the up button and down when I press the down
button.
why don't you let the browser to display the vertical lift in your
mainFrame ? (lift = scrollbar)
I have search in google, but I have not found a working script.
perhaps could you try something like :

<button onclick="parent.mainFrame.scrollBy(0,12);">down</button>
<button onclick="parent.mainFrame.scrollBy(0,-12);">up</button>

or :

<a href="#"
onmouseover="truc=setInterval(function() {
parent.mainFrame.scrollBy(0,5);},100}"
onmouseout="clearInterval(truc);"
onclick="return false;"><img src="down.jpg"></a>
<a href="#"
onmouseover="truc=setInterval(function() {
parent.mainFrame.scrollBy(0,-5);},100}"
onmouseout="clearInterval(truc);"
onclick="return false;"><img src="up.jpg"></a>
Not tested ...

--
ASM
Oct 19 '06 #2
ASM
ASM a écrit :
>
or :
correction :

<a href="#"
onmouseover="truc=setInterval(function() {
parent.mainFrame.scrollBy(0,5);},100);"
onmouseout="clearInterval(truc);"
onclick="return false;"><img src="down.jpg"></a>
<a href="#"
onmouseover="truc=setInterval(function() {
parent.mainFrame.scrollBy(0,-5);},100);"
onmouseout="clearInterval(truc);"
onclick="return false;"><img src="up.jpg"></a>

if too fast change 5 in bigger number
if too slow change 5 in smaller number

you can also play with 100

and ... no more tested !

--
ASM
Oct 19 '06 #3
if too fast change 5 in bigger number
if too slow change 5 in smaller number

you can also play with 100

and ... no more tested !
Many thanks, and sorry for the double post.

Bubu
Oct 19 '06 #4

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

Similar topics

1
by: Boniface Frederic | last post by:
Hello, I have frame displaying the last posted messages. I set <meta http-equiv="refresh" content="5"/> to automatically refresh the frame every 5s My problem is; if I scroll the frame to see...
0
by: Toph | last post by:
Bonjour a tous, Hi, I am developing a software in Python using Tkinter. The choice of my team is not to use pyton MegaWidgets. I would like to scroll a frame. This is a peace of my code : #...
1
by: Toph | last post by:
Hi, I am developing a software in Python using Tkinter. The choice of my team is not to use pyton MegaWidgets. I would like to scroll a frame. This is a peace of my code : #...
2
by: TeknoCat | last post by:
Hey everyone, I may be repeating myself here, but if someone sent a reply then I missed it, and I can't get Outlook Express to download any messages more than 2 days old. Anyway, I'm having a...
2
by: hq105862 | last post by:
Hi, Is it possible to simulate frames behaviour with CSS? Currently, I've used CSS to create the visual look of my old framed site. For this I've used styles that place the images at absolute...
2
by: Fokke Nauta | last post by:
Hi all. I have a simple frame set (frame.htm) with a header and a main page. The header (header.htm) contains 2 buttons: scroll-up and scroll-down. The main page (main.htm) contains text only....
3
by: Ron Croonenberg | last post by:
Hello, I have a script that basically creates output in a frame in a browser. However when the page gets longer I want to scroll them. Of course I can add scroll bars to the frame and scroll...
1
by: John L. | last post by:
How do I invoke the scroll() method of a window object for a scrollable IFRAME element in an HTML document? I am using IE 7.0, and I thought the following would work: ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.