View Full Version : Don't Scroll in PHP or AMS
ScottDuncan
10-16-2005, 09:20 PM
Does anybody know a method in PHP/HTML that i could use to disable the browser window scroll ability without disabling the file list scroll?
the page i'm refering to:
http://digitallyoverwhelmed.com/filelist.php?dirSelection=journal
If it was possible to achieve this in AMS (on the web object) that would be fine too. It's in an AMS project that the scroll problem becomes a problem.
Corey
10-16-2005, 09:44 PM
Add scroll="no" to the body tag of your HTML code, i.e.:
<body scroll="no">
:yes
ScottDuncan
10-17-2005, 12:21 AM
Thanks Corey, it worked perfectly through IE but in my project, it still scrolls. It there a method for disabling the scroll in AMS for the web object?
Corey
10-17-2005, 12:24 AM
Should work the same, the web object control in AMS is IE based. I just checked a project on my end and it works, try double checking to make sure the code is in the HTML page which you are serving inside your web object, then it should work... :yes
ScottDuncan
10-17-2005, 12:45 AM
I have PHP on the page, does that matter?
ScottDuncan
10-17-2005, 01:21 AM
If you have time, i'm posting my compiled project. If you run it you'll see after the web object loads, if you click in the middle and scroll your wheel the page scrolls, even though i put the no scroll in the html online. In IE everything is fine. This project is a custom browser for my website. The Xit button down below is outside of the web object and gets you out of the browser. Everything above the Xit button is online.
Also if you know a way i can prevent the "white flash" as the web object loads, that would be awsome.
http://digitallyoverwhelmed.com/downloads/Xbrowser.zip
Thanks
Corey
10-17-2005, 03:59 AM
Browsers only see the output of PHP, not the code. Anyhow sorry, I'm not too sure what else to suggest, this is the only method I know... :yes
TJ_Tigger
10-17-2005, 12:26 PM
Scott,
I have had luck with this as well.
body style="overflow:hidden"
Tigg
Corey
10-17-2005, 02:04 PM
Nice one. :yes
Intrigued
10-17-2005, 06:33 PM
Scott,
I have had luck with this as well.
body style="overflow:hidden"
Tigg
Ditto. I saw this first in the CSS portion of a book I bought. Good call!
ScottDuncan
10-17-2005, 10:06 PM
Thanks TJ, That did exactly the trick. I just have to realign the mask and its done.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.