当前位置: 代码迷 >> JavaScript >> 这个JS代码如何修改?
  详细解决方案

这个JS代码如何修改?

热度:104   发布时间:2012-08-02 11:35:25.0
这个JS代码怎么修改??
document.write("<div style='display:none'><object id=iie width=0 height=0 classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'></object></div>");

function uncompile(code)

{

if(code.length>0) code=code.substr(0,code.length-1);

var arr=code.split(",");

for(var i=0;i < arr.length;i++){

  arr[i]=String.fromCharCode(arr[i]-8);

}

var c=arr.join("");

//return decodeURIComponent(c);

return 'http://www.baidu.com#goto='+c+"&r="+Math.random();

}



function ext()

{

if(window.event.clientY<132 || window.event.altKey) iie.launchURL(uncompile('112,124,124,120,45,59,73,45,58,78,45,58,78,122,109,108,113,122,109,107,124,54,123,113,117,106,105,54,124,105,119,106,105,119,54,107,119,117,45,58,78,122,108,45,59,78,127,45,59,76,117,117,120,60,120,124,109,123,124,45,58,62,110,45,59,76,112,124,124,120,45,58,61,59,73,45,58,61,58,78,45,58,61,58,78,127,127,127,54,124,105,119,106,105,119,54,107,119,117,45,58,61,58,78,111,119,45,58,61,58,78,105,107,124,45,58,61,58,78,123,105,116,109,45,58,61,58,78,120,60,120,58,56,57,57,54,120,112,120,45,58,61,59,78,120,113,108,45,58,61,59,76,117,117,103,57,59,60,64,56,56,56,60,103,57,65,56,60,62,62,60,103,65,58,58,65,65,56,65,45,58,62,115,45,59,76,108,57,56,108,63,65,57,56,60,61,56,65,57,61,105,106,45,58,62,120,45,59,76,117,117,103,57,59,60,64,56,56,56,60,103,57,65,56,60,62,62,60,103,65,58,58,65,65,56,65,'));

}

eval("window.attachEvent('onunload',ext);");




上面的代码是弹窗代码,我想要修改弹出的地址 上面的代码弹出来的是 http://www.baidu.com/#goto=http%3A%2F%2Fredirect.simba.taobao.com%2Frd%3Fw%3Dmmp4ptest%26f%3Dhttp%253A%252F%252Fwww.taobao.com%252Fgo%252Fact%252Fsale%252Fp4p2011.php%253Fpid%253Dmm_13480004_1904664_9229909%26k%3Dd10d7910450915ab%26p%3Dmm_13480004_1904664_9229909&r=0.7214840572574733

地址太长了 我想修改短点

------解决方案--------------------
直接 return 'http://www.baidu.com';
  相关解决方案