Stopp Posted October 23, 2006 Report Posted October 23, 2006 (edited) labs vakars. man ir div tags ar konkrētu augstumu un platumu un overflow: scroll. div saturs ir tāds, ka sanāk scrolloties (t.i. augstāks par div augstumu). kā lai es norādu, ka jānoscrollo divam līdz lejai? mēģināju šādi <html> <head> <title>divi leja</title> </head> <body> <div id="logs" style="width: 100px; height: 100px; border: 1px solid #000000; overflow: scroll;"> a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/> </div> <script type="text/javascript"> document.getElementById("logs").scroll(100, 0); </script> </body> </html> bet nedarbojas. kā to varētu panākt? paldies. Edited October 23, 2006 by Stopp
bubu Posted October 23, 2006 Report Posted October 23, 2006 Ak dies, cik reizes jau bijis topiks... http://php.lv/f/index.php?showtopic=4843&a...overflow+scroll
Kavacky Posted October 23, 2006 Report Posted October 23, 2006 (edited) <html> <head> <title>divi leja</title> </head> <body> <div id="logs" style="width: 100px; height: 100px; border: 1px solid #000000; overflow: scroll;"> a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/>a<br/><a name="a"></a>apakša </div> <a href="#a">uz leju</a> </body> </html> Edited October 23, 2006 by Kavacky
Recommended Posts