- Регистрация
- 31.12.2013
- Сообщения
- 104
- Благодарностей
- 4
- Баллы
- 18
网站类是http://www.pinterest.com/ 需要在IE导航安装个按钮。才可以提交图片。http://www.pinterest.com/网站我会写JS代码、我给的基础代码是下面的
void((function(){
var e=document.createElement('script');
e.setAttribute('type','text/javascript');
e.setAttribute('charset','UTF-8');
e.setAttribute('src','XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
document.body.appendChild(e)
})());
下面的是我需要的网站的IE上面的JS代码
javascriptfunction(){try{var d=document; var h=d.getElementsByTagName('head')[0];var http='';if(navigator.appName!='Microsoft Internet Explorer'){http='https:';}var scr = document.getElementById('stylowi_pin_button_script');if(!scr || scr == null || scr == ''){var s = document.createElement('script');s.setAttribute('src',http+'//stylowi.pl/res/js/pin_button.js?aa='+Math.floor((new Date()).getTime()/(1000*60)));s.setAttribute('id', 'stylowi_pin_button_script'); h.appendChild(s);} else {run();}} catch(e) {window.location.href='https://stylowi.pl/dodaj?url=' escape(window.location.href);}})();
请给我转换成ZP5里面的JS代码
void((function(){
var e=document.createElement('script');
e.setAttribute('type','text/javascript');
e.setAttribute('charset','UTF-8');
e.setAttribute('src','XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
document.body.appendChild(e)
})());
下面的是我需要的网站的IE上面的JS代码
javascriptfunction(){try{var d=document; var h=d.getElementsByTagName('head')[0];var http='';if(navigator.appName!='Microsoft Internet Explorer'){http='https:';}var scr = document.getElementById('stylowi_pin_button_script');if(!scr || scr == null || scr == ''){var s = document.createElement('script');s.setAttribute('src',http+'//stylowi.pl/res/js/pin_button.js?aa='+Math.floor((new Date()).getTime()/(1000*60)));s.setAttribute('id', 'stylowi_pin_button_script'); h.appendChild(s);} else {run();}} catch(e) {window.location.href='https://stylowi.pl/dodaj?url=' escape(window.location.href);}})();
请给我转换成ZP5里面的JS代码