var xmlhttp;var tempdiv;var url="";function createxmlhttp(){if(window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}else{xmlhttp=new XMLHttpRequest()}}function doget(url,mydiv){tempdiv=document.getElementById(mydiv);createxmlhttp();xmlhttp.open("GET",url,true);xmlhttp.onreadystatechange=xmlhttponchange;xmlhttp.send(null);}function xmlhttponchange(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){tempdiv.innerHTML="";tempdiv.innerHTML=xmlhttp.responseText}}}

var ob=document.getElementById("yipin");
var a=ob.getElementsByTagName("a");
for(i=0;i<a.length;i++)
{
	var img=a[i].getElementsByTagName("img");
	if(img[0]=='' || img[0]==undefined)
	{
		//a[i].setAttribute("onmouseover","doget('"+mylink+".html','xiala')");
		a[i].onmouseover=function()
		{
			var mylink=this.innerHTML;
			mylink=mylink.replace("<br />","");
			mylink=mylink.replace("<br>","");
			mylink=mylink.replace("<BR>","");
			mylink=mylink.replace(/ /g,"-");
			mylink=mylink+".html"
			doget(mylink,"xiala")
			}
		}
	else
	{
	//img[0].setAttribute("onmouseover","doget('"+imgtitle+".html','xiala')");
	img[0].onmouseover=function()
	{
		var imgtitle=this.getAttribute("alt");
		imgtitle=imgtitle.replace(/ /g,"-");
		imgtitle=imgtitle+".html";
		doget(imgtitle,"xiala")
		}
	}
	}




//引用代码示例(图片外面要有一个唯一的标签包含img标签)  <a href="1a-wet-process-resin.html"> <img src="1-pu-resin/1-1s.jpg" alt="" onmousemove="setBigPic('1-pu-resin/2-1b.jpg',200,200,-20,-20,'5','#333',this)" onmouseout="ResetPic('1-pu-resin/1-1s.jpg',this)"/></a>
function setBigPic(bigpic,width,height,moveX,moveY,borderWidth,borderColor,ob){ob.parentNode.style.cssText="position:relative;z-index:999;";ob.style.cssText="position:absolute;left:"+moveX+"px; top:"+moveY+"px;border:"+borderWidth+"px solid "+borderColor;ob.setAttribute("src",bigpic);ob.setAttribute("width",width);ob.setAttribute("height",height);}
function ResetPic(smallPic,ob){ob.setAttribute("src",smallPic);ob.removeAttribute("width");ob.removeAttribute("height");ob.removeAttribute("border");ob.style.cssText="position:inherit;";ob.parentNode.style.cssText="z-index:-999";}
