Results 1 to 3 of 3

Thread: scrolling problem

  1. #1
    Join Date
    Feb 2010
    Location
    Falkirk, Scotland
    Posts
    142
    Thanks
    21
    Thanked 4 Times in 4 Posts

    Exclamation 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.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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

  3. The Following User Says Thank You to djr33 For This Useful Post:

    liamallan (07-03-2010)

  4. #3
    Join Date
    Feb 2010
    Location
    Falkirk, Scotland
    Posts
    142
    Thanks
    21
    Thanked 4 Times in 4 Posts

    Default

    thanx, for now i have inserted a disable mousewheel script, seems to work ok, for me at least

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •