日期:2014-05-16 浏览次数:20643 次
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <script type="text/javascript" src="js/prototype1.6.js"></script> <script type="text/javascript"> function showNews(url){ new Ajax.Updater( "news",//div元素的id url,//请求的url { method:"post" } ); } </script> </head> <body> <input type="button" value="娱乐新闻" onmouseover="showNews('yule.jsp')"/> <input type="button" value="经济新闻" onmouseover="showNews('jingji.jsp')"/> <div id="news"></div> </body> </html>
?