如何重载window.prompt(),设置弹出窗口的大小,背景,文字..重载后使用的地方如下name=prompt("<bean:message bundle="label" key="otv.change.folder" />: ",param.getParam("text"));
设置背景为兰色,大小为100*75,文字大小为12另外我的一个特简单的问题,100分 居然没有人回复,http://community.csdn.net/Expert/TopicView.asp?id=4348667无法散分,谁去拿分
设置背景为兰色,大小为100*75,文字大小为12另外我的一个特简单的问题,100分 居然没有人回复,http://community.csdn.net/Expert/TopicView.asp?id=4348667无法散分,谁去拿分
类似这个的也行function openAlert(str){
window.top.document.getElementById('errBoxMsg').innerHTML=str;
var alertBox = window.top.document.getElementById('errMessageBox');
alertBox.style.display='block';
alertBox.style.visibility='visible';
var alertMask = window.top.document.getElementById('errMessageBoxMask');
alertMask.style.display='block';
alertMask.style.left = alertBox.style.left;
alertMask.style.top = alertBox.style.top;
alertMask.style.width = alertBox.style.width;
alertMask.style.height = alertBox.style.height;
alertMask.style.visibility = 'visible';
}
function closeAlert(str){
document.getElementById('errMessageBox').style.display='none'
document.getElementById('errMessageBoxMask').style.display = 'none';
/*
document.getElementById('errBoxMsg').innerHTML=str;
var alertBox = document.getElementById('errMessageBox');
alertBox.style.display='block';
alertBox.style.visibility='visible';
var alertMask = document.getElementById('errMessageBoxMask');
alertMask.style.left = alertBox.style.left;
alertMask.style.top = alertBox.style.top;
alertMask.style.width = alertBox.style.width;
alertMask.style.height = alertBox.style.height;
alertMask.style.visibility = 'hidden';
*/
}function alert(str){
//prompt(str.indexOf('\n'));
str = str.replace(/\n/g,'<br/>');
openAlert(str);
return;
}
人气怎么就这么低呢?