View Full Version : Scrolling
dntget0wned
05-01-2006, 09:34 PM
On my site http://www.andrewspitstop.com i have several games from various websites on many of these games you have to use the arrowkeys well my problem is that when you press the down arrow you scroll down and when you press the up arrow you scroll up. I need this not to happen. How can i do this?
-thanks
(games link)http://www.andrewspitstop.com/online/all.php
dntget0wned
05-03-2006, 10:53 PM
Can someone please help i have been working on this problem for months!
mellamokb
05-04-2006, 06:42 PM
Try putting the game in an iframe. Make the iframe the same width and height as the game itself. When you press arrow keys, scrolling will be done in the iframe if the iframe has the focus (you may have to give it focus via JavaScript, I don't know). As long as the iframe is the right size (i.e., unable to scroll), any arrow keys will only try to scroll the unscrollable iframe. Then everything should stay in place.
I am unable to test this out at this time; it's just an idea I came up with. Please let me know if it doesn't work.
mellamokb
dntget0wned
05-06-2006, 06:10 PM
OK, thankyou for your reply I have tried what you suggested before, but because of your reply i tried again spending a little more time on it. this HTML/PHP code:
<iframe src=\"frame.php?id=$no\" WIDTH=\"$wi\" HEIGHT=\"$hi\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" vspace=\"0\" hspace=\"0\" scrolling=\"no\"></iframe>
Was what i was using, but i went over it a few times and tried this:
i changed scrolling=\"no\" to scrollbar=\"no\" which for somereason made the difference
-thanks
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.