smc Posted May 12, 2008 Share Posted May 12, 2008 I am currently making an installation script for a PHP kit I've made. During the installation process it outputs the results, ie: Database field 1 installed. Database field 2 installed. Database connection made. New files created. I intend to have up to 3 pages worth of text during the installation. I would like, however, for the page to scroll down with the text as it is created so that the user is always on the bottom of the page. I have seen this kind of installation with a few scripts and the ModernBill software. Any info you've got on how to do this would be much appreciated. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/105218-solved-outputting-text-from-php-but-making-the-page-scroll-down-with-it/ Share on other sites More sharing options...
The Little Guy Posted May 12, 2008 Share Posted May 12, 2008 That would be javascript: (untested) var objDiv = document.getElementsByTagName("body"); objDiv.scrollTop = objDiv.scrollHeight;[code] [/code] Quote Link to comment https://forums.phpfreaks.com/topic/105218-solved-outputting-text-from-php-but-making-the-page-scroll-down-with-it/#findComment-538780 Share on other sites More sharing options...
xoligy Posted May 12, 2008 Share Posted May 12, 2008 Sorry but i dont have the answer i was wondering do you have a decent site for creating an install file? Quote Link to comment https://forums.phpfreaks.com/topic/105218-solved-outputting-text-from-php-but-making-the-page-scroll-down-with-it/#findComment-538784 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.