开发者

JavaScript bookmarklet in IE7

开发者 https://www.devze.com 2023-01-21 07:50 出处:网络
I am trying to get my JavaScript working in IE7 which works smoothly in all other browsers. document.write(\'<li><a class=\"bookmarklet\" href=\"javascript:x=document;a=encodeURIComponent(x.

I am trying to get my JavaScript working in IE7 which works smoothly in all other browsers.

document.write('<li><a class="bookmarklet" href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');open(\'<?php echo createURL('bookmarks', $GLOBALS['user']); ?>?action=add&amp;popup=1&amp;address=\'+a+\'&amp;title=\'+t+\'&amp;description=\'+d,\'<?php echo jsEscTitle($GLOBALS['sitename']); ?>\',\'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=790,height=465,left=\'+(screen.width-790)/2+\',top=\'+(screen.height-425)/2);void 0;"><?php echo jsEscTitle(sprintf(T_('Share with %s '), $GLOBALS['sitename'])); ?><\/a><\/li>');

Appreci开发者_高级运维ate your help.

Thank you.


document.write('<li><a class="bookmarklet" href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');open(\'<?php echo createURL(\'bookmarks\', $GLOBALS[\'user\']); ?>?action=add&amp;popup=1&amp;address=\'+a+\'&amp;title=\'+t+\'&amp;description=\'+d,\'<?php echo jsEscTitle($GLOBALS[\'sitename\']); ?>\',\'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=790,height=465,left=\'+(screen.width-790)/2+\',top=\'+(screen.height-425)/2);void 0;"><?php echo jsEscTitle(sprintf(T_(\'Share with %s \'), $GLOBALS[\'sitename\'])); ?><\/a><\/li>');
0

精彩评论

暂无评论...
验证码 换一张
取 消