jquery - What exactly does 'dynamic text resize with javascript' mean -


i finished , turned in homework assignment goal 'dynamically resize text javascript styles'. had few paragraphs class on them, , ones supposed resize.

now, if css file says text x size, , when page loads use javascript value & make larger. considered dynamically changing size?

what turns out teacher wanted change text size when window resized, seems asked pretty open ended.

just trying idea of qualifies dynamic resizing.

thanks insight..

            function setgreeksize() // change height of text w/ 'greek' class         {             var currentsize = parseint($("#content").css("font-size"))*1.2;             $(".greek").css("font-size", currentsize+"px");         } 

i had in function when document ready. pointless, know, said not try 'fancy' homework assignment.

dynamic resizing resizing text based on event or action... 1 size changed due event. argue resizing once page loads may valid how user know original font , new font is? person knows dynamic developer. yes if there logic or reasoning behind fine. change example add timer way user can see original size , after few seconds changes. ir maybe user clicks button , text grows...

do need sample code?


Comments