原作者:http://yaldex.com

JINHO 修改 加强功能

唉,最近几天在家里天天学习js,感觉js真的是太强悍了!

目标:每天让自己的技能提升1%

<html>
    <head>
        <style type="text/css">
         
            #suspendDiv {
                position: absolute;
                width: 550px;
                border: 2px solid black;
                padding: 2px;
                background-color: #CCFFFF;
                visibility:hidden;
                word-break: break-all;
                z-index: 99;
    
                filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
            }
        </style>
        <title></title>
    </head>
    <body>
<script type="text/javascript">
        function suspendDiv(){
            this.suspendDiv = null; //悬浮层对象
   this.isHavaContent = null;//层里面是否有内容
            //初始化
            this.initSuspendDiv = function(){
                var suspendDiv = document.createElement_x("div");
    suspendDiv.id = "suspendDiv"; //+new Date().getTime();
                suspendDiv.name = "suspendDiv";
                this.suspendDiv = suspendDiv;
                this.suspendDivId = suspendDiv.id;
                //suspendDiv.className = "suspendDiv"; //这里怎么给样式不行呢?
                document.body.appendChild(suspendDiv);
            };
            //设置内容
            this.setContent = function(url, content, bgcolor, width){
    if (url) {
                    var iframe = '<iframe src='+url+'';
                    iframe += ' style="width:100%;height:100%;background-color:transparent;"';
                    iframe += ' >Yaldex Software</a>
 </div>
</body>
</html>

“七”乐无穷,尽在新浪新版博客,快来体验啊~~~请点击进入~

相关文章: