Results 1 to 4 of 4

Thread: How to do zooming

  1. #1
    Join Date
    Mar 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Wink How to do zooming

    Hi,

    Does anyone know how to do zooming?

    I have a drop down list called zoom as shown below.

    HTML Code:
    <td style="text-align: center; width: 135px;"><small>Zoom:</small>
                    <select name="zoom">
                	<option value="all" selected="selected">All</option>
                	<option value="20">20%</option>
                	<option value="100">100%</option>
                	<option value="200">200%</option>
                	</select></td>
    Appreciate if someone can show me example of code.

    Thanks.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Zooming for what; an image, text, etc? If for text, then I don't know of anyway to do this outside of IE (Internet Explorer). If for an image, perhaps Javascript can do it, but not sure how.

    Hope this helps either way.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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

    Default

    Agreed. I've never seen zooming on a webpage, except as a default in the right click menu of a flash object, or with a couple cases of a javascript that allows a selected region of a small image to be blown up into a larger region just showing a higher resolution version of that section.
    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

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    What's 'All' mean? Zooming cannot actually be done but, it can be mimicked if all dimensions and font-sizes on a web page are set in ems, exs, and/or percentages. This takes some planning and trial and error, only percentages should be used for font-sizes and generally ems or exs for dimensions but, once set up that way, changing one or a few key percentages should be able 'zoom' the page.

    If there is flash or other non-HTML content, that may have to be handled separately.

    One exception to all of this is IE which does have a zoom style property for HTML content at least.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •