JQuery font changing slider needing some adjustment

Discussion in 'jQuery' started by SuPrAiCeR69, Jul 14, 2010.

  1. #1
    I followed a tutorial here:

    http://net.tutsplus.com/tutorials/j...e-jquery-ui-to-control-the-size-of-your-text/

    Demo is here:

    http://nettuts.s3.amazonaws.com/065_jQueryTextSlider/Text Slider Demo/index.html


    The tutorial and the demo does not seem to work right.

    3 issues;

    1. The slider doesn't go all the way to the left and right when pressing the minus and plus buttons
    2. The slider doesn't go to 8 and 23 (only to 9 and 22)
    3. Dragging the slider doesn't change the font size or display the tooltip above it with the size


    If someone could advise me on how to fix this so it's working the way it should, it would be much appreciated! Thanks
     
    SuPrAiCeR69, Jul 14, 2010 IP
  2. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nothing you've done mate. His code is buggy, doesn't work in IE8 or FF3.6
     
    Deacalion, Jul 14, 2010 IP
  3. SuPrAiCeR69

    SuPrAiCeR69 Peon

    Messages:
    216
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Deacalion.

    I haven't figured out how I could fix it.. any idea?

    Thanks again.
     
    SuPrAiCeR69, Jul 14, 2010 IP
  4. sainirohit

    sainirohit Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ffjsdhfkurhfd vbfv flvd fdff v fd

    ------------------------------------------------
     
    sainirohit, Jul 15, 2010 IP
  5. SuPrAiCeR69

    SuPrAiCeR69 Peon

    Messages:
    216
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    kindly comment if you have something relevant to say and on-topic.

    anyone have some advice on the broken code?
    thanks
     
    SuPrAiCeR69, Jul 15, 2010 IP
  6. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It does not go to 8 and 23 because he is using < and >. Change line 65 to if (newFontSize <= 23) , then change line 84 to if (newFontSize >= 8)
     
    Cash Nebula, Jul 20, 2010 IP
  7. ashishhbti

    ashishhbti Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    @Deacalion . Thanks for info ....
     
    ashishhbti, Jul 21, 2010 IP