-
scrolling problem
hey guys, i have an i-frame of a game on my site, and when u use the mouse scroll to zoom in and zoom out on the game, the page scrolls too.
is there any way i can have it, when u scroll in the game, the page stays where it is?
i would be grateful for ur help!
Last edited by liamallan; 07-03-2010 at 12:53 AM.
-
-
This depends on the browser. Sometimes it will scroll one and other times it will scroll both.
One option would be to disable the scroll wheel (and other methods, like arrows?) on the main page using a regular "disable scroling" script (javascript), but that might not work sometimes (depending on browser/security/etc) and also depending on the browser, that might actually stop scrolling in the iframe-- it's not entirely predictable. But I think that would generally work.
I guess you could try to make this more complicated as well by tracking focus on the iframe or main page...
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
The Following User Says Thank You to djr33 For This Useful Post:
-
thanx, for now i have inserted a disable mousewheel script, seems to work ok, for me at least
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks