2010년 2월 24일 수요일

[오페라] ie엔진 사용을 위한 내 단추 추가 스크립트

View in IE - It show the page using IE engine inside Opera 9.5+

 

Go to page, "javascript:(function(){if(location.protocol.match(/^(javascript|about|opera):$/i))return;var l=location.href;var t=(document.getElementsByTagName('title')[0]?document.getElementsByTagName('title')[0].text:l).replace(/</g,'&lt;').replace(/>/g,'&gt;');var w=window.open('','_blank');w.document.documentElement.innerHTML='<head><title>'+t+' - using Internet Explorer rendering</title><style type=\x22text/css\x22>body{margin:0;padding:0;overflow:hidden;}embed{border:none;}</style></head><body><embed type=\x22application/x-meadco-neptune-ax\x22 width=\x22100%%\x22 height=\x22100%%\x22 param-location=\x22'+l+'\x22></embed></body>'})();",,"View in IE",View

 

 

View in IE - It show the page using IE engine inside Opera

Go to page, "javascript:(function (){var lh=location.href; if( !lh || lh.match(/^(javascript|about|opera):/i) )return; var w = window.open(); w.document.write('<html><head><title>'+(document.title?document.title:lh).replace(/</g,'<').replace(/>/g,'>')+' - using Internet Explorer rendering<\/title><\/head><body style=\'margin:0px;padding:0px;\'><script type=\'text/javascript\'>var script = document.createElement(\'script\'); var embed = \'<embed type=\\\'application\/x-meadco-neptune-ax\\\' width=\\\'100\x25\\\' height=\\\'100\x25\\\' param-location=\\\'' + lh + '\\\'><\/embed>\'; script.setAttribute(\'src\',\'data:text/javascript,document.write(embed);\'); document.body.appendChild(script);<\/script><\/body><\/html>'); })();",,"View in IE",View

 

 

View in IE (on same tab)

Go to page, "javascript:(function (){var lh=location.href; if( !lh || lh.match(/^(javascript|about|opera):/i) )return; document.write('<html><head><title>'+(document.title?document.title:lh).replace(/</g,'<').replace(/>/g,'>')+' - using Internet Explorer rendering<\/title><\/head><body style=\'margin:0px;padding:0px;\'><script type=\'text/javascript\'>var script = document.createElement(\'script\'); var embed = \'<embed type=\\\'application\/x-meadco-neptune-ax\\\' width=\\\'100\x25\\\' height=\\\'100\x25\\\' param-location=\\\'' + lh + '\\\'><\/embed>\'; script.setAttribute(\'src\',\'data:text/javascript,document.write(embed);\'); document.body.appendChild(script);<\/script><\/body><\/html>'); })();",,"View in IE",View


출처 : http://operawiki.info/CustomButtons

댓글 없음:

댓글 쓰기