我正在使用此功能在我的网站中打开弹出窗口。 我想向右滚动(这是RTL)窗口的内容,但它不是工作:如何滚动右侧弹出窗口
popupWins[name].scrollRight += 1000;
任何想法?
popupWins = new Array();
function windowOpener(url, name, args) {
/*******************************
the popupWins array stores an object reference for
each separate window that is called, based upon
the name attribute that is supplied as an argument
*******************************/
if (typeof(popupWins[name]) != "object"){
popupWins[name] = window.open(url,name,args);
} else {
if (!popupWins[name].closed){
popupWins[name].location.href = url;
} else {
popupWins[name] = window.open(url, name,args);
}
}
popupWins[name].scrollRight += 1000;
popupWins[name].focus();
}
你试过popupWins [名] .scrollLeft + = 1000? –
添加setTimeout有帮助吗? –