-
yeah i would like to use this code alongside some php, but i have no idea how to use javascript
Eric's weblog - Allow user to scroll and maintain position with "Scroll To Bottom of the Div" example
the php code just outputs about 3000 messages and instead of watching the top of the page on 100% cpu, i would like it to scroll down as the messages are output so you're not just sitting there
i have found some code which does scroll down, but it doesn't stop once it reaches the bottom. if possible i would prefer it to stick to the bottom until the php code is executed
thanks if anyone knows how to do this :)
-
this is totaly what php is not for. i hate javascript as much as the next guy but this is the intended purpose of it.
-
Basically, you just copy/paste the code into your PHP page and alter it as you see fit. Keep in mind that if you copy/paste it between <? ?> tags (is that what PHP still uses?) it won't work.
There's no real universal step-by-step answer to your question since it depends on your page, what it is you're trying to spit out, etc.