»
Tiếng AnhTiếng PhápTiếng Việt

In - Trình tạo chữ - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Ứng dụng » Trình tạo chữ
URL: https://www.javascriptbank.com/write-text.html

Trình tạo chữ © JavaScriptBank.comMột công cụ dùng để tạo chữ trên trang web với nhiều định dạng khác nhau. Đồng thời nó cũng xuất ra mã HTML cho người dùng.

Phiên bản đầy đủ: jsB@nk » Ứng dụng » Trình tạo chữ
URL: https://www.javascriptbank.com/write-text.html



JavaScript
<script>all1=""all=""function GO1(){mtop="margin-top:"+document.jigga.in6.value+"px;"mleft="margin-left:"+document.jigga.in7.value+"px;"color="color:"+document.jigga.in4.value+";"color2="background:"+document.jigga.in5.value+";"size="font-size:"+document.jigga.in2.value+"px;"what=document.jigga.in1.valuehigh="line-height:"+document.jigga.in3.value+"px;"all="<div align=center style='"+mtop+mleft+size+color2+color+high+"'>"+what+"</div>"dipstick.innerHTML=all+all1user1.innerText=all}function GO2(){mtop1="margin-top:"+document.jigga.in106.value+"px;"mleft1="margin-left:"+document.jigga.in107.value+"px;"color1="color:"+document.jigga.in104.value+";"color21="background:"+document.jigga.in105.value+";"size1="font-size:"+document.jigga.in102.value+"px;"what1=document.jigga.in101.valuehigh1="line-height:"+document.jigga.in103.value+"px;"all1="<div align=center style='"+mtop1+mleft1+size1+color21+color1+high1+"'>"+what1+"</div>"dipstick.innerHTML=all+all1user2.innerText=all1}function overallbg(colorbg){dipstick.bgColor=colorbg}function CLEARME(){document.jigga.in1.value=""document.jigga.in2.value=""document.jigga.in3.value=""document.jigga.in4.value=""document.jigga.in5.value=""document.jigga.in6.value=""document.jigga.in7.value=""document.jigga.in101.value=""document.jigga.in102.value=""document.jigga.in103.value=""document.jigga.in104.value=""document.jigga.in105.value=""document.jigga.in106.value=""document.jigga.in107.value=""user1.innerHTML=""user2.innerHTML=""dipstick.innerHTML=""all=""all1=""}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form name="jigga"><table border="1" bordercolor="white" width="710" cellpadding="10" cellspacing="0"><tbody><tr><td bgcolor="black" align="center" style="color: white;">text<br><input type="text" size="3" name="in1" value="text"></td><td bgcolor="black" align="center" style="color: white;">size<br><input type="text" size="3" name="in2" value="200"></td><td bgcolor="black" align="center" style="color: white;">line-height<br><input type="text" size="3" name="in3" value="200"></td><td bgcolor="black" align="center" style="color: white;">fgcolor<br><input type="text" size="3" name="in4" value="black"></td><td bgcolor="black" align="center" style="color: white;">bgcolor<br><input type="text" size="3" name="in5" value=""></td><td bgcolor="black" align="center" style="color: white;">M-top<br><input type="text" size="3" name="in6" value="0"></td><td bgcolor="black" align="center" id="mofo"><font color="white">M-left</font><br><input type="text" size="3" name="in7" value="0"></td><td bgcolor="black" align="center"><input type="button" value="&lt;--Write it" onclick="GO1()"></td></tr><tr><td bgcolor="black" align="center" style="color: white;">text<br><input type="text" size="3" name="in101" value="text"></td><td bgcolor="black" align="center" style="color: white;">size<br><input type="text" size="3" name="in102" value="200"></td><td bgcolor="black" align="center" style="color: white;">line-height<br><input type="text" size="3" name="in103" value="200"></td><td bgcolor="black" align="center" style="color: white;">fgcolor<br><input type="text" size="3" name="in104" value="black"></td><td bgcolor="black" align="center" style="color: white;">bgcolor<br><input type="text" size="3" name="in105" value=""></td><td bgcolor="black" align="center" style="color: white;">M-top<br><input type="text" size="3" name="in106" value="0"></td><td bgcolor="black" align="center"><font color="white">M-left</font><br><input type="text" size="3" name="in107" value="0"></td><td bgcolor="black" align="center" colspan="8"><input type="button" value="&lt;--Write it" onclick="GO2()"></td></tr><tr><td bgcolor="black" align="center" colspan="100"><input type="text" size="7" name="bg"><input type="button" value="&lt;--Underlying bgcolor" onclick="overallbg(document.jigga.bg.value)"><input type="button" onclick="CLEARME()" value="clear all"></td></tr><tr><td colspan="100" align="center" bgcolor="gold" fgcolor="black"><div id="user1" align="center">&nbsp;</div><div id="user2" align="center">&nbsp;</div></td></tr></tbody></table></form><table border="1" cellpadding="30" cellspacing="0"><tbody><tr><td bgcolor="white" id="dipstick"></td></tr></tbody></table><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->