向下滚动页面时如何移动页面时间

向下滚动页面时如何移动页面时间

问题描述:

我为一个页面设置了计时器,但是时间太长了,但是如果我需要看它,我必须上去看它,这浪费了我的时间.我希望它随着页面向下滚动而流动,这样我也可以在到达页面末尾时看到计时器.

请帮助我....

i have set a timer for a page which is too long but if i need to see it, i have to go up and see it, which wastes my time. i want it to flow with the page as i scroll down so that i can see the timer when i come to end of page also.

plz help me....

我了解它的需求.好主意,但实施对我来说可能有些困难.另一个想法怎么样:您可以在页面上拥有可滚动和不可滚动的部分,而显示时间的元素(不要称它为timer,这又是不同的)应该保留在不可滚动的部分上?这种技术很常见.

—SA
I understand the need of it. Good thinking, but the implementation could be somewhat difficult to me. How about an alternative idea: you can have scrollable and non-scrollable parts of the page, and your element showing time (don''t call it timer which is something different) should stay on non-scrollable part? This technique is pretty usual.

—SA


Use Two Div...<br />
In first div use Timer...<br />
In Second div apply this Style...


<div style="height:500px; overflow:auto;"></div>