1、以事件驱动JavaScript 函数
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>无标题文档</title> <script> <!-- function hello() { aa=100 cc='欢迎第'+aa+'次光临!' alert(cc) } //--> </script> </head> <body > <a href="http://www.68design.net" onmouseover="hello()"> 网页设计师联盟</a> </body> </html>