www.gusucode.com > 玩玩小游戏FLASH系统 2.1码程序 > show/script.js
xmlurl="../poll/poll/"+((nid-(nid%1000))/1000)+".xml"; var xmlDOM; function flash(xmlname) { flash_div.innerHTML="<br><br><br>请等待正在装<br><br>"; var sxmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); sxmlhttp.open("GET",xmlname+"?x="+Date.parse(new Date()),true); sxmlhttp.setRequestHeader("Content-Type","text/xml"); sxmlhttp.onreadystatechange=manges; sxmlhttp.send() function manges(){ if(sxmlhttp.readyState==4){ loadflashxml(sxmlhttp.responseXML.xml); } } } function loadflashxml(xml_files){ xmlDOM=new ActiveXObject("MSXML.DOMDocument"); xmlDOM.async=false; xmlDOM.loadXML(xml_files); var erxml=xmlDOM.parseError if (erxml.errorCode != 0) { flash_div.innerHTML=flashhtml+flashhtmla; }else{ var objdoc=xmlDOM.getElementsByTagName("id"+nid); if(objdoc.length==0){ flash_div.innerHTML=flashhtml+flashhtmla; }else{ bad=objdoc.item(0).getAttribute("negative"); good=objdoc.item(0).getAttribute("positive"); flashhtmlc="negative="+bad+"&positive="+good+"&id=tb_game_curi&nid="+nid+"\"></object>"; flash_div.innerHTML=flashhtml+flashhtmlc; } } } flashhtml="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"698\" height=\"93\"><param name=\"movie\" value=\"../poll/ddd.swf\"><param name=\"quality\" value=\"high\"><PARAM NAME=\"FlashVars\" VALUE=\"" flashhtmla="negative=0&positive=0&id=tb_game_curi&nid="+nid+"\"></object>" flash(xmlurl);