dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Javascript Resize function

  1. #1
    Join Date
    Jan 2006
    Posts
    18

    Javascript Resize function

    Hi,

    I would like to ask for a help for those who probably encounter this too.

    I am trying to use javascript to resize the content of a page ( mostly texts), it works fine in exception with one, the frame stay the same... the texts will go large but bigger than the frame.

    I'm only knew on doing some adjustments with CSS, so please be patient with me

    Hope I have explained this well.

    Thanks in advance

  2. #2
    Join Date
    Jun 2008
    Posts
    106
    Can you show your code?

  3. #3
    Join Date
    Jan 2006
    Posts
    18
    Hi thanks for your reply, here's the code I used:
    <script type="text/javascript">

    var mytextsizer=new fluidtextresizer({
    controlsdiv: "sizecontroldiv", //id of special div containing your resize controls. Enter "" if not defined
    targets: ["body"], //target elements to resize text within: ["selector1", "selector2", etc]
    levels: 3, //number of levels users can magnify (or shrink) text
    persist: "session", //enter "session" or "none"
    animate: 200 //animation duration of text resize. Enter 0 to disable
    })

    </script>

    Im a little bit confuse how to customize this code.

    Thanks

  4. #4
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,670
    target elements to resize text within: ["selector1", "selector2", etc]
    did you include that iframe in this list?

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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



Recent Articles