Connecting Tech Pros Worldwide Help | Site Map

DHTML Javascript DIV Scroll Sync Script?

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 17th, 2006, 04:35 AM
sravkum@gmail.com
Guest
 
Posts: n/a
Default DHTML Javascript DIV Scroll Sync Script?

Hi,

I have tried many options for this, let me explain ma problem first

Think that we have got two Layers
<Div id="layer1"with some horizontal scrolled content </div>
<Div id="layer1"with some horizontal scrolled content (has same
content as the above) </div>

so there is an horizontal scroll in both the DIV's

so when I scroll any one of the DIV's automatically the other DIV
should also be scrolled according to the amount that the other one was
scrolled.....

kindly let me know is there any solution for this

thanks in advance
http://www.mavenarts.com


  #2  
Old November 17th, 2006, 08:45 AM
Dag Sunde
Guest
 
Posts: n/a
Default Re: DHTML Javascript DIV Scroll Sync Script?

sravkum@gmail.com wrote:
Quote:
Hi,
>
I have tried many options for this, let me explain ma problem first
>
Think that we have got two Layers
<Div id="layer1"with some horizontal scrolled content </div>
<Div id="layer1"with some horizontal scrolled content (has same
content as the above) </div>
>
so there is an horizontal scroll in both the DIV's
>
so when I scroll any one of the DIV's automatically the other DIV
should also be scrolled according to the amount that the other one was
scrolled.....
>
kindly let me know is there any solution for this
All bets are off as long as the HTML is invalid!

The "id" attribute must be unique within a page. So no matter how
you have tried to make it work with JS, it won't know which div to
operate on...

Make sure your html validates first, when you have problems with
scripting...

--
Dag.



 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.