Bonjour,
Est-il possible de déplacer la scrollbar de la div DIVMAIN dans body ? Le but: utiliser la scrollbar de <body> pour scroller la div DIVMAIN.
Page d'exemple:
http://boxfly.free.fr/test/body-scroll.html
Voici le code:
Merci,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 <html> <head> </head> <body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 rightmargin=0 style="background-color:#eeeeee; text-align: center; height:100%;width: 100%;overflow-y:hidden;overflow-x:hidden;height: auto; min-height: 100%; _height: 100%;"> <div id="DIVMAIN" style="background-color:#dddddd;overflow-y:scroll;max-width:1100px; margin: auto; width:expression( Math.min(parseInt(this.offsetWidth), 1100) ); border-right:1px solid #333333; border-left:1px solid #333333; border-bottom:1px solid #333333;text-align:center; align:center; height: 580;"> test<br>test<br>test<br>etc... </div> </body> </html>
Vincent.
Partager