首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Ajax >

ajax示范3

2012-09-04 
ajax示例3htmlheadmeta http-equivContent-Type contenttext/html charsetUTF-8titleInse

ajax示例3

<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>

?

热点排行