?? supershow.jsp~136~
字號(hào):
<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="mycss.css" type="text/css" rel=stylesheet/>
<title>supershow</title>
<script language="javascript" type="text/javascript">
var xmlHttp;
var globalName;
function createXMLHttp()
{
if(window.XMLHttpRequest)
xmlHttp=new XMLHttpRequest();
else if(window.ActiveXObject)
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
function startRequest(name)
{
globalName=name;
createXMLHttp();
xmlHttp.onreadystatechange=requestHandle;
xmlHttp.open("GET","/BubbleModule/xml/picture.xml",true);
xmlHttp.send(null);
}
function requestHandle()
{
if(xmlHttp.readyState==4)
{
//獲得所有的picture標(biāo)簽
var pictures=xmlHttp.responseXML.getElementsByTagName("picture");
for(var i=0;i<pictures.length;i++)
{
//獲得單個(gè)picture
var pic=pictures[i];
//獲得picture的子節(jié)點(diǎn)id的文本
var picName=pic.getElementsByTagName("name")[0].firstChild.nodeValue;
//獲得picture的子節(jié)點(diǎn)directory的文本
var picDir=pic.getElementsByTagName("directory")[0].firstChild.nodeValue;
//獲得提出請(qǐng)求的標(biāo)簽
var tagImage = document.getElementById(globalName);
//判斷獲得的文本是否和提出請(qǐng)求的標(biāo)簽的名稱(chēng)相同
if(picName==globalName)
tagImage.src=picDir;
}
globalName="";
document.getElementById("im").style.zIndex=100;
document.getElementById("im").style.display="block";
}
}
</script>
<link href="../js/mycss.css" type=text/css rel=stylesheet>
</head>
<body>
<h2>Super show</h2>
<hr>
<table width="162" border="0" cellspacing="5" cellpadding="0">
<tr>
<td>
<a href="#" class=tipS onMouseOver="startRequest('Tab11')" onmouseout="im.style.display='none';">
<img style="cursor:hand" src="../image/Tab11.jpg" width="56" height="65" alt="" />
<div id="im" class="divImg"><img id="Tab11"style="cursor:hand" alt="" src=""> </span></a>
</td>
</tr>
<tr>
<td>
<a href="#" class=tipS onMouseOver="startRequest('mall')">
<img style="cursor:hand" src="../image/mall.jpg" width="56" height="65" alt="" />
<SPAN class=popboxS><img id="mall"style="cursor:hand" alt="" src="" width="100" height="120">
</span></a>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -