Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


Results 1 to 5 of 5

Thread: Scroll function

  1. #1

    Scroll function

    OK, so I have a swf file that is 750px X 1400px embeded in an html page. My problem is that most people have a screen resolution that will not show the entire swf within their browser window, which is fine. However, when I want to scroll the window I have to click outside the swf file and use my mouse wheel to scroll down or up. this is the only way the mouse wheel will function I can't click on a button within the swf and then scroll. I would like to know if there is a way that I can place a code within either the swf file or in the html that will allow the funtionality to scroll by mouse wheel no matter where the cursor is within the browser window.

    Would I use Java Script, how? Or is there something I can place in the html code for the page that will allow this?

    Thanx in advance.

    BiGg RiE

  2. #2
    I think you could use javascript to set the focus on the window, which would allow scrolling.

  3. #3
    Set it to full screen and actually code the scrolling into it (although if your site has high animation it will lag).

    Join #kirupa | Click the under my Username | CL | Jeff

  4. #4
    Quote Originally Posted by DangerousDan View Post
    I think you could use javascript to set the focus on the window, which would allow scrolling.
    How would I do this?

  5. #5
    something like...
    PHP Code:
    <BODY OnLoad="document.focus();"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012