HTML: <a href="11.html" target="main" id="map" onClick="omap()">电子地图</a>JS:
function omap(){
window.parent.document.getElementById('frames').cols="0,*";
}点击omap的时 发生事件把这段代码转换成JQ 效果一样。。 谢谢咯
function omap(){
window.parent.document.getElementById('frames').cols="0,*";
}点击omap的时 发生事件把这段代码转换成JQ 效果一样。。 谢谢咯
$("#map").click(function(){
$("#frames",window.parent.document)[0].cols="0,*";
});
});
$( "#map ").click(function(){
$(window.parent).find("#frames").attr("cols","0,*");
});
});