上面是一个函数shopinfo是一个动态的值,我如何把值放到 “ onMouseover="showtip2(this,event,'??')” 问好里面??
showtip2是一个函数名我向里面传参数
function setshop(shopinfo){
var t = shopinfo;
}
<div align="CENTER" id="divTest" STYLE="cursor: hand" onMouseover="showtip2(this,event,'??');"
onMouseout="hidetip2();" name="divTest">
</div>
showtip2是一个函数名我向里面传参数
function setshop(shopinfo){
var t = shopinfo;
}
<div align="CENTER" id="divTest" STYLE="cursor: hand" onMouseover="showtip2(this,event,'??');"
onMouseout="hidetip2();" name="divTest">
</div>
th.innerHTML = value;}
onMouseover="showtip2(this,event,'??');"
function setshop(shopinfo){
var t = shopinfo;
}
function setshop(shopinfo){
t = shopinfo;
}
function getT(){
return t;
}
onMouseover="showtip2(this,event,getT());"
onMouseover="showtip2(this,event,'??');"
function setshop(shopinfo){
var t = shopinfo;
}
onMouseover="showtip2(this,event,'??');"
function setshop(shopinfo){
var t = shopinfo;
}