﻿// JScript 文件

//<object id="MediaPlayer1" width=180 height=200 

//classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"

//codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"

//standby="Loading Microsoft® Windows® Media Player components..." 

//type="application/x-oleobject" align="middle">

//<param name="FileName" value="server/path/your-file.asx ">

//<param name="ShowStatusBar" value="True">

//<param name="DefaultFrame" value="mainFrame">

//<embed type="application/x-mplayer2" 

//pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"

//src=" http://server/path/your-file.asx " align="middle"

//width=176

//height=144

//autostart=1

//showcontrols=0>

//</embed> 

//</object>


document.write('<div id="china_ads_div405" >');
document.write('<object id="MediaPlayer1" width=0 height=0  classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"');

document.write('"Loading Microsoft® Windows® Media Player components..." ');

document.write('"application/x-oleobject" align="middle">');

document.write('<param name="FileName" value="http://gk.canpoint.cn/《全品之歌》mp3.mp3">');

document.write('<param name="ShowStatusBar" value="True">');

document.write('<param name="DefaultFrame" value="mainFrame">');

document.write('<embed type="application/x-mplayer2"  id="MediaPlayerff"');

document.write('pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"');

document.write('src="http://gk.canpoint.cn/《全品之歌》mp3.mp3" align="middle"');

document.write('width=0');

document.write('height=0');

document.write('showcontrols=0>');

document.write('</embed> ');

document.write('</object>');

document.write('<div style="text-align:right;padding-right:5px;font-weight:500;cursor: pointer;font-size:12px;color:#000067;background:#CAEBFE;border:1px #245286 solid;border-bottom:0" onclick="divclose()">关闭</div>');
document.write('<div>');

document.write('<a href="http://gk.canpoint.cn/《全品之歌》mp3.mp3" target="_blank"><img src="images/qpzhg1.jpg"   /></a></div>');
document.write('</div>');
function divclose() {

    if ($.browser.msie) {
        document.getElementById("MediaPlayer1").stop();
    }
    else {
        var Player = document.getElementById("MediaPlayerff");
        Player.controls.stop();
    }

    $("#china_ads_div405").remove();

}
var Class = {
    create: function() {
        return function() {
            this.initialize.apply(this, arguments);
        }
    }
}
Function.prototype.bind = function() {
    var __method = this, args = $A(arguments), object = args.shift();
    return function() {
        return __method.apply(object, args.concat($A(arguments)));
    }
}
var $A = Array.from = function(iterable) {
    if (!iterable) return [];
    if (iterable.toArray) {
        return iterable.toArray();
    } else {
        var results = [];
        for (var i = 0; i < iterable.length; i++)
            results.push(iterable[i]);
        return results;
    }
}
var Float = Class.create();
Float.prototype = {
    initialize: function(elem, options) {
        this.toDo = options.toDo || function() { },
   this.bodyScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
   this.bodyScrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft,
   this.element = document.getElementById(elem);
        this.dely = options.dely || 500;
        this.top = options.top || 0;
        this.left = options.left || 0;

    },
    start: function() {
        if (!this.element) {
            ('please set a element first!');
            return false;
        }
        this.element.style.position = 'absolute';
        this.toDo();
        setInterval(this.toDo.bind(this), this.dely)
    }
}
var f = new Float('china_ads_div405', { dely: 100,
    toDo: function() {
        var isIE = document.all && window.external;
        this.bodyScrollTop = document.documentElement.scrollTop || document.body.scrollTop;
        this.bodyScrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
        if (isIE) {
            this.docWidth = document.documentElement.clientWidth || document.body.clientWidth;
            this.docHeight = document.documentElement.clientHeight || document.body.clientHeight;
        } else {
            this.docWidth = (document.body.clientWidth > document.documentElement.clientWidth) ? document.documentElement.clientWidth : document.body.clientWidth;
            this.docHeight = (document.body.clientHeight > document.documentElement.clientHeight) ? document.documentElement.clientHeight : document.body.clientHeight;
        }
        this.element.style.top = (this.docHeight - parseInt(this.element.offsetHeight, 10)) + parseInt(this.bodyScrollTop, 10) + 'px';
        this.element.style.left = (this.docWidth - parseInt(this.element.offsetWidth, 10)) + parseInt(this.bodyScrollLeft, 10) + 'px';
    }
});
f.start();
 
