...

View Full Version : Dynamic Textareas



questionable
11-23-2011, 03:25 AM
Alright I've seen these a few places. Gmail being the most common. How does gmail take a textarea and make the font dynamic and all the neat these they do?

Thanks!

Sammy12
11-23-2011, 03:30 AM
Hi questionable!

Maybe this will help you
https://mail.google.com/mail/im/emotisprites/smile0.png

if you type in :) into a textarea here's the code:



<img src="images/cleardot.gif" onload="_GM_EmoticonHandler(&quot;load&quot;, this)"
onmouseover="_GM_EmoticonHandler(&quot;mouseover&quot;, this)" width="13" height="12" alt=":)"
pattern="smile" createtime="1322015453462" iconset="classic"
style="background-image: url(https://mail.google.com/mail/im/emotisprites/smile0.png); background-position: 0px -132px; " framecount="40">


So we're looking at some javascript here. Additionally, the _bold_ "tricks" are also javascript

As for the font user interfaces, go ahead and google Javascript Rich Text Editor (https://www.google.com/search?rlz=1C1CHOL_enUS408US408&aq=f&gcx=c&ix=c2&sourceid=chrome&ie=UTF-8&q=javascript+text+editor+#pq=javascript+text+editor+&hl=en&cp=12&gs_id=4&xhr=t&q=javascript+rich+text+editor&tok=p75JI8_1qOLFkLLbe0NLdg&pf=p&sclient=psy-ab&safe=off&rlz=1C1CHOL_enUS408US408&source=hp&pbx=1&oq=javascript+rtext+editor&aq=0&aqi=g4&aql=&gs_sm=&gs_upl=&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=9cdb3b786bc20d6b&biw=1366&bih=643)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum