自定义弹出框alert样式

韵竹

收藏于 : 2019-06-01 17:15   被转藏 : 1   

 
js代码:
// JavaScript Document
window.alert=function (txt)
{
    document.write ('<table width="350px" height="170px" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">');
    document.write ('  <tr>');
    document.write ('    <td align="center" bgcolor="#73A2D6" height="25px"><span >信息提示</span></td>');
    document.write ('  </tr>');
    document.write ('  <tr>');
    document.write (' <td bgcolor="#FFFFFF" height="100px" >'+txt+'</td>');
    document.write ('  </tr>');
    document.write ('  <tr>');
document.write(' <td align="right" height="25px">');
    document.write ('    <input type="button" name="Submit2" value="确定" onclick="window.close(this)"/></td>');
    document.write ('  </tr>');
    document.write ('</table>');
}
 
 阅读文章全部内容  
点击查看
文章点评
相关文章
韵竹 关注

文章收藏:4655

TA的最新收藏