Ceocio's WebLog

ASP, IIS, .NET

December 2003 - Posts

A KB search engine
I saw a KB search engine on ASPfaq.com
http://www.aspfaq.com/kbsearch.asp
now supported ASP,IIS,MS Sql Server,Access

We've added and enhanced many new features, including printer-friendly articles, a better KB search engine, site and article statistics, and an RSS feed.
Use CSS to change style

1.Use CSS to change style:
<head>
<script>
function StyleChange(StyleName)
{ChangeStyle.className=StyleName;}
</script>

<style>
<!--
.style1  { FONT-FAMILY: Georgia; }
.style2  { FONT-FAMILY: Arail; }
-->
</style>

</head>

<span onclick=StyleChange("style1") style="cursor:hand">Style1</span>
<span onclick=StyleChange("style2") style="cursor:hand">Style2</span>

<table>
<tr>
<td id=ChangeStyle>
1981-11-19
</td>
</tr>
</table>

2.another one:
<script language=javascript>
function FontChange(fontsize)
{
 document.getElementById('fontchange').style.fontSize=fontsize+'px'
}
</script>

<a href="javascript:FontChange(48)">click here</a>

<span id="FontChange">1981-11-19</span>