Results 1 to 4 of 4

Thread: Java dynamic text resizing in GoLive

  1. #1
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java dynamic text resizing in GoLive

    I am a web developer designing a web site for a client who would like to make their text resizable with buttons on their web pages. I discovered a java script and have attempted to make it work on my page design by following the posted instructions on dynamicdrive.com.

    http://www.dynamicdrive.com/dynamicindex9/textsizer.htm

    However, I am not programmer and am having limited success. If you have time to take a look and give me a pointer or two it would be much appreciated. I can see the script is doing something (tables shifting across the page) but the text on each page is not resizing.

    I have posted the html files at:

    http://www.brett-thayer.com/clients/java/index.html

    I have also zipped a copy of the html documents and images at:

    http://www.brett-thayer.com/clients/java/text.zip

    If there are other options for achieving the same effect please feel free.. I'm open to whatever works the best and simpliest.

    Thanks for any help

    Sincerely,

    B Thayer

  2. #2
    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

    You have the script linked to the page twice. Get rid of the link in the body, keep the one in the head. There is not much text on your page. Much of what appears to be text is actually images. To get this script to work on your page, define the font size using style and relative units. For example, where you have :
    HTML Code:
    <font size="-2"
    Use the equivalent relative style:
    HTML Code:
    <font style="font-size:.6em;"
    Then the script will work well in IE and OK in Firefox (requires two hits of the larger button at first on a freshly loaded page for some reason).
    - John
    ________________________

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

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    (sigh)
    This is going in my sig.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks

    Thanks for the help it seems to be working although your right, the "Make text bigger" button has to be clicked twice the first time.

    I'm using Adobe Golive to do my design and coding. I'm wondering about the text sizing change you suggested. I'll have to dig into that one.

    Thanks again for the help.

    Brett

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
  •