sponsored ads |
<html>
<head>
<title>Javascript Example</title>
<script>
function draw(opt)
{
var st=new String("Tutorials by Kashid");
switch (opt)
{
case 1:st=st.big();
break;
case 2:st=st.small();
break;
case 3:st=st.strike();
break;
case 4:st=st.bold();
break;
case 5:st=st.italics();
break;
case 6:st=st.toLowerCase();
break;
case 7:st=st.toUpperCase();
break;
}
div1.innerHTML=st;
}
</script>
</head>
<body bgcolor='#cccfaa'>
<div id='div1'>Tutorials by Kashid</div>
<input type=radio name=r1 onclick="draw(1);"/>Big<br/>
<input type=radio name=r1 onclick="draw(2);" />Small<br/>
<input type=radio name=r1 onclick="draw(3);" />Strike<br/>
<input type=radio name=r1 onclick="draw(4);" />Bold<br/>
<input type=radio name=r1 onclick="draw(5);" />Italics<br/>
<input type=radio name=r1 onclick="draw(6);" />Lcase<br/>
<input type=radio name=r1 onclick="draw(7);" />Ucase<br/>
Font Color:<input type=radio name=r2 onclick="div1.style.color='green'" />Green
<input type=radio name=r2 onclick="div1.style.color='#FF6600'" />Orange
</body>
</html>
No comments:
Post a Comment
Thanks for visiting my Blog!