oi
Autor: Ariel Rossetti | Publicado: 2010-12-08T09:58:00-08:00

  	                     <!--	var allowLeave = 1;	var www="";	var name="DDTank"; 	function setFavorite(path,titlename,allowvalue)	{              www=path;             name=titlename;             allowLeave=allowvalue;	}	window.onbeforeunload = function(e)    	{           if(allowLeave==1)           {        	           }           if(allowLeave==2)           {        	    var browser = navigator.appName;	            if (browser == "Netscape") {	                e.preventDefault();	            } else {	                window.event.returnValue = 'Esta ação fará você sair do DDTank. Tem certeza que deseja continuar?';	            }           }           if(allowLeave==3)           {        	window.external.addFavorite(www,name);           }    }    function killErrors() //杀掉所有的出错信息    { 	    return true;     }	function sandaFillHandler ()	{		if(ibw_public.existNameSpace('sdoNewPay'))		{			ibw_public.openWidget('sdoNewPay');		}	}		function setFlashFocus()	{		//document.getElementById('7road-ddt-game').focus();	}    window.onerror = killErrors; // -->                   body        {            margin: 0px auto;            padding: 0px;            background-image: url(images/bg_all.jpg);	     background-repeat: no-repeat;        background-position: center center;        }                                                                                                                                                                        name="Main" width="1000" height="600" align="middle" id="Main">                                                                                                                                                                                                                                                                                                                       align="middle" quality="high" name="Main" allowscriptaccess="sameDomain" type="application/x-shockwave-flash"                                        pluginspage="http://www.macromedia.com/go/getflashplayer" />                                                                                                                                  <!--function isFlash10() {    var f = false, n = navigator , v = "10.0", v2 = "10.1" , fl = null;    if (n.plugins && n.plugins.length) {        for (var ii = 0; ii < n.plugins.length; ii++) {            if (n.plugins[ii].name.indexOf('Shockwave Flash') != -1) {                 fl = n.plugins[ii].description.split('Shockwave Flash ')[1];                f = fl.indexOf(v) != -1 || fl.indexOf(v2) != -1 ? true : false;            }        }    } else if (window.ActiveXObject) {         try {             fl = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + Math.floor(v) + "');");            fl = fl.GetVariable('$version').replace(/,/gi,'.');        } catch (e) { }     }    if(!fl) return false;    return (fl.indexOf(v) != -1 || fl.indexOf(v2) != -1 ? true : false); } function myDetachEvent(obj, evt, fn) {    if (obj.addEventListener)        obj.addEventListener(evt, fn, false);    else if (obj.attachEvent)        obj.attachEvent('on' + evt, fn);} Event.observe(window, 'load', function() {    if (!isFlash10()) {        //背景遮罩层        var div = document.createElement("div");        //div.style.width = window.screen.width + "px";        //div.style.height = window.screen.height * 0.96 + "px";        div.style.width = parseInt(window.screen.width) + "px";        div.style.height = parseInt(window.screen.height) * 0.85 + "px";        //div.style.overflow = "auto";        div.style.top = 0;        div.style.left = 0;        div.style.position = "absolute";        div.style.background = "white";        //div.style.wordbreak = "break-all";        document.body.style.background = "white";         //中央图片层        var centerDiv = document.createElement("div");        centerDiv.style.width = "1024px";        centerDiv.style.height = "600px";        centerDiv.style.position = "absolute";        centerDiv.style.top = (document.body.clientHeight - 600) / 2 + "px";        centerDiv.style.left = (document.body.clientWidth - 1024) / 2 + "px";        centerDiv.style.background = "url(images/flashtip.png)"; 	//iframe层	var centerIframe = document.createElement("");	centerIframe.style.width = "100%";        centerIframe.style.height = "100%";	centerIframe.style.position = "relative";	centerIframe.src = "FlashPlayer.html";         //超链接层        var hyperDiv = document.createElement("div");        hyperDiv.style.width = "70px";        hyperDiv.style.height = "18px";        hyperDiv.style.position = "relative";        //hyperDiv.style.background = "red";        hyperDiv.style.cursor = "pointer";        hyperDiv.style.top = "140px";        hyperDiv.style.left = "340px";        myDetachEvent(hyperDiv, "click", function(event) {            getUrl();        });         centerDiv.appendChild(centerIframe);        document.body.appendChild(div);        document.body.appendChild(centerDiv);    }});//-->