|
HTML creating functions
This shows how you can modify a string using a
variety of methods that are available in JScript . There is
also a blink method which only shows in Netscape browsers and
is also very , very annoying .
Code :
<%@ Language = "JScript" %>
<%
var strText = new String("our sample text")
//bold text
Response.Write ((strText.bold()) + "<br>");
//big text
Response.Write ((strText.big()) + "<br>");
//small text
Response.Write ((strText.small()) + "<br>");
//superscript text
Response.Write ((strText.sup()) + "<br>");
//subscript text
Response.Write ((strText.sub()) + "<br>");
//italic text
Response.Write ((strText.italics()) + "<br>");
//fontsize 4 text
Response.Write ((strText.fontsize(5)) + "<br>");
//foncolor red
Response.Write ((strText.fontcolor(990000)) + "<br>");
%>
|