调用方法: < input type = " button " value = " 点击我就看到效果了哦`` " onclick = " DIVAlert('测试!!!'); " /> JS源码: < script type = " text/javascript " language = " javascript " > function DIVAlert(str) ... { var msgw,msgh,bordercolor; msgw=400;//提示窗口的宽度 msgh=100;//提示窗口的高度 titleheight=25 //提示窗口标题高度 bordercolor="#336699";//提示窗口的边框颜色 titlecolor="#99CCFF";//提示窗口的标题颜色 var sWidth,sHeight;