日期:2014-05-16  浏览次数:20435 次

prototype.js 冲突? 如果去掉prototype.js 这个叶面运行正常 麻烦熟悉prototype.js 的指导一下
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN "   >
<HTML>
<HEAD>
<title> a </title>
<META   http-equiv= "Content-Type "   content= "text/html;   charset=utf-8 ">
        <META   content= "MSHTML   6.00.3790.2666 "   name= "GENERATOR "> </HEAD>
<SCRIPT   language= "JavaScript "   src= "/dbfdc/control/js/prototype.js "   type= "text/javaScript "> </SCRIPT>
<meta   name= "vs_targetSchema "   content= "http://schemas.microsoft.com/intellisense/ie5 ">
</HEAD>
<body   MS_POSITIONING= "GridLayout ">
<form   id= "Form1 "   method= "post "   runat= "server ">
<DIV   id= "com_item "> </DIV>
<SCRIPT   language= "JavaScript ">
this.sel   =   new   Array();
this.urlArr   =   new   Array();
this.imgArr   =   new   Array();
this.sel_num   =   0;

function   comchk()   {
if(sel_num   <   2)   {
alert( '请至少选择两个楼盘! ')
}else   {
out   =   ' ';
i=0;
for(keay   in   sel){
++i;
//out   +=   "seq "   +   i   +   "= "   ;
out   +=keay+ ', ';

}
//var   str   =   "http://localhost/notebook/cgi-bin/notebook/compare.php?d_id= "+out;
var   str   =   "http://php.tech.sina.com.cn/notebook/compare.php?d_id= "+out;
window.open(str);
//window.open(str);
//window.open(str);
}
}
function   addhouse(idd,nm,myImg,myURL)   {
if(!sel[idd])   {
if(sel_num   > =   4)   {
alert( '最多只能有4个楼盘参加比较! ');
}else   {
sel_num++;
sel[idd]   =   nm;
imgArr[idd]   =   myImg;
urlArr[idd]   =   myURL;

}
}else   {
alert(   nm+ '   已选择! ');
}
draw();
}
function   delhouse(id)   {
sel2   =   new   Array();
for(keay   in   sel)   {
if(id!=keay)   {
sel2[keay]   =   sel[keay];
}
}
sel   =   sel2;
sel_num--;
draw();
}
function   draw()   {
out   =   ' ';
alert(sel);
for(keay   in   sel)   {
out   +=   " <table   width=150   border=0   cellpadding=0   cellspacing=0> <tr> <td   height=6   background=images/nt050.gif> </td> </tr> <tr> <td> <img   src=http://image2.sina.com.cn/IT/notebook/hz/images/nt031.gif   width=150   height=6> </td> </tr> <tr> <td   background=images/nt032.gif   align=right   style= 'padding-right:3px; '> <a   href=javascript:del( ' "+keay+ " ')> <img   src=images/nt049.gif   width=12   height=12> </a> </td> </tr> <tr> <td   background=images/nt032.gif   style= 'paddi