Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Apr 2007
    Posts
    60
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Zoom the whole page emulating ctrl + keys

    I want to add buttons for my site that can zoom whole page (both text and images) including my left and right frames. I see ie7 ff and opera uses crtl and + to zoom in, is there a script that emulate this ctrl + and ctrl - function so without adding codes to thousands of page, visitors can zoom in and zoom out via clicking buttons on one of my frame (the code will be on the left frame and when clicked it will zoom the whole page including right frame).

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,029
    Thanks
    203
    Thanked 2,539 Times in 2,517 Posts
    Have a look at:-

    http://obiewebsite.sourceforge.net/o...=zoom_function



    It is your responsibility to die() if necessary….. - PHP Manual

  • #3
    New Coder
    Join Date
    Apr 2007
    Posts
    60
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks but how to add a button in order to visitors use it?

    And how to add <BODY onLoad="changeFontSize(0, 0, true);"> line. I tried several combinations but all gives error. I think it should be like this?

    <BODY onLoad="changeFontSize(0, 0, true);">
    <SCRIPT src="zoom.js"></SCRIPT>
    </body>



    ORIGINAL SCRIPT:

    USING

    NOTE: This function may works with only Internet Explorer 5.5 or greaters and Mozilla browsers

    First download the compressed code to your PC. Please unCompress it.

    1 . Easy to use, simply add this line

    <SCRIPT src="zoom.js"></SCRIPT>

    to anywhere in your HTML code (between and tags is recommended). And this line

    <BODY onLoad="changeFontSize(0, 0, true);">

    into your BODY tag.
    TIP: You should use the button, not hotkey on other browser.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,029
    Thanks
    203
    Thanked 2,539 Times in 2,517 Posts
    This should be in the <head> section:-

    <SCRIPT src="zoom.js"></SCRIPT>

  • #5
    New Coder
    Join Date
    Apr 2007
    Posts
    60
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Still error on page and no sign of a button.
    I think button must be added to code but I don't know how to.


  •  

    Posting Permissions

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