Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Urgente Help Please with Frame Scroll

Reply
Thread Tools

Urgente Help Please with Frame Scroll

 
 
Bubu
Guest
Posts: n/a
 
      10-19-2006
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
 
Reply With Quote
 
 
 
 
ASM
Guest
Posts: n/a
 
      10-19-2006
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
 
Reply With Quote
 
 
 
 
ASM
Guest
Posts: n/a
 
      10-19-2006
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
 
Reply With Quote
 
Bubu
Guest
Posts: n/a
 
      10-19-2006
> 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
 
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
Ultimo driver Ati SAPPHIRE RADEON X1950XT? URGENTE!! st.lucky@katamail.com Computer Information 0 05-06-2007 03:34 PM
Urgent Help Please with Frame Scroll Bubu Javascript 0 10-19-2006 11:37 AM
prevent mouse scroll to scroll in a dropdownlist nicholas ASP .Net 0 12-07-2004 11:26 AM
Urgente. Javier Perl 2 05-11-2004 11:45 AM
URGENTE Buon libro C++ in italiano Fabry C++ 3 07-20-2003 02:09 PM



Advertisments