ได้กี่แบบ ดูตัวอย่างจาก code ข้างล่าง
<script type="text/javascript">
<!--
var myVariable = 'http://thaijavascript.blogspot.com/';
document.writeln(myVariable.big());
document.writeln(myVariable.blink());
document.writeln(myVariable.bold());
document.writeln(myVariable.fixed());
document.writeln(myVariable.fontcolor('red'));
document.writeln(myVariable.fontsize('5pt'));
document.writeln(myVariable.italics());
document.writeln(myVariable.small());
document.writeln(myVariable.strike());
document.writeln(myVariable.sub());
document.writeln(myVariable.sup());
document.writeln(myVariable.toLowerCase());
document.write(myVariable.toUpperCase());
// -->
</script>กำหนดค่าตัวอักษรได้จากคำสั่งนี้ไม่ว่าจะเป็นตัวใหญ่ตัวเล็ก
ตัวอักษรกระพริบตัวอักษรสีแดงหรืออื่นๆซึ่งคุณสามารถกำหนดได้เอง^^
0 ความคิดเห็น:
แสดงความคิดเห็น