ajax|cssAjax Hacks-Hack 10. 使用CSS文件产生格式化的信息 让用户选择他们喜爱的消息格式。 hack向服务器发送一个请求,服务器返回一个文本信息。而用户的选择将决定信息的内容和表现形式。HTML代码有一个下拉选择,让用户选择结果的表示形式。 下面是HTML代码: “http://www.w3.org/TR/1999/REC-html401–19991224/strict.dtd”>
function setSpan( ){
document.getElementById(“instr”.onmouseover=function( ){
this.style.backgroundColor=‘yellow‘;};
document.getElementById(“instr”.onmouseout=function( ){
this.style.backgroundColor=‘white‘;};
}Find out the HTTP response headers when you "GET" a Web page
Choose the style for your message
<
Ajax Hacks-Hack 10. 使用CSS文件产生格式化的信息
80酷酷网 80kuku.com