IE6阻止(安全)内容 [英] IE6 blocking (safe) content

查看:67
本文介绍了IE6阻止(安全)内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


在我的许多网站中,我的代码如下:


< SCRIPT language =" JavaScript" type =" text / javascript">

<! -

user =" USER";

isp =" DOMAINNAME.XXX" ;;

document.write(''< a href = \" mailto:''+ user +''@''+ isp +''\"> ;'');

document.write(用户+'''''+ isp +''< \ / a>'');

// - >

< / SCRIPT>


对某些我只是使用:


< a href =" javascript :void(window.open(''XXX.htm'',''Picture'',

''width = XXX,height = XXX ''))">文字< / a>


打开窗户,里面有放大的照片和


< a href = "的JavaScript的 的:window.close()的">关闭< / A>关闭它们。


然而,IE6认为这是不安全的!并阻止剧本 -


我可以改变我的设置以允许他们,但访客可能不会....


我能做什么解决这个问题?有什么想法吗?


谢谢


Jon


jon - at - compasscomputing - dot - co - dot - uk

Hi there,

In many of my sites I have code like:

<SCRIPT language="JavaScript" type="text/javascript">
<!--
user = "USER";
isp = "DOMAINNAME.XXX";
document.write(''<a href=\"mailto:'' + user + ''@'' + isp + ''\">'');
document.write(user + ''@'' + isp + ''<\/a>'');
// -->
</SCRIPT>

on some I simply use:

<a href="javascript:void(window.open(''XXX.htm'', ''Picture'',
''width=XXX,height=XXX''))">Text</a>

to open windows with zoomed pictures therein and

<a href="javascript:window.close()">Close</a> to close them.

However, IE6 thinks this is unsafe!!!! and blocks the script -

I can alter my settings to permit them, but visitors might not....

What can I do to resolve this? Any thoughts?

Thanks

Jon

jon - at - compasscomputing - dot - co - dot - uk

推荐答案

" Jon" < jon@SPAM_OFFtheexperts.co.uk>写在

新闻:ci ********** @ hercules.btinternet.com:
"Jon" <jon@SPAM_OFFtheexperts.co.uk> wrote in
news:ci**********@hercules.btinternet.com:
你好,
<在我的许多网站中,我的代码如下:

< SCRIPT language =" JavaScript" type =" text / javascript">
<! -
user =" USER";
isp =" DOMAINNAME.XXX" ;;
document.write (''< a href = \" mailto:''+ user +''@''+ isp +''\">'');
document.write(user +' '@''+ isp +''< \ / a>'');
// - >
< / SCRIPT>

在某些我身上只需使用:

< a href =" javascript :void(window.open(''XXX.htm'',''Picture'',
''width = XXX,height = XXX''))">文字< / a>

打开窗口,其中放大图片和

< a HREF ="的JavaScript的 的:window.close()的">关闭< / A>关闭它们。

然而,IE6认为这是不安全的!并阻止剧本 -

我可以改变我的设置以允许他们,但访客可能不会....

我该怎么做才能解决这个问题?有什么想法?
Hi there,

In many of my sites I have code like:

<SCRIPT language="JavaScript" type="text/javascript">
<!--
user = "USER";
isp = "DOMAINNAME.XXX";
document.write(''<a href=\"mailto:'' + user + ''@'' + isp + ''\">'');
document.write(user + ''@'' + isp + ''<\/a>'');
// -->
</SCRIPT>

on some I simply use:

<a href="javascript:void(window.open(''XXX.htm'', ''Picture'',
''width=XXX,height=XXX''))">Text</a>

to open windows with zoomed pictures therein and

<a href="javascript:window.close()">Close</a> to close them.

However, IE6 thinks this is unsafe!!!! and blocks the script -

I can alter my settings to permit them, but visitors might not....

What can I do to resolve this? Any thoughts?




不要依赖于启用javascript。

使用表单加服务器端脚本来处理

''电子邮件查询'',并且不要在您的网站访问者上强制新窗口




-

Dave Patton

加拿大协调员,学位合流项目
http://www.confluence.org/

我的网站: http://members.shaw.ca/davepatton/


从Jon开始引用< ci **** ******@hercules.btinternet.com>:
begin quote from Jon in <ci**********@hercules.btinternet.com>:
你好,

在我的很多网站上,我的代码如下:

< SCRIPT language =" JavaScript" type =" text / javascript">
<! -
user =" USER";
isp =" DOMAINNAME.XXX" ;;
document.write (''< a href = \" mailto:''+ user +''@''+ isp +''\">'');
document.write(user +' '@''+ isp +''< \ / a>'');
// - >
< / SCRIPT>


[我在这里写的HTML编写视角,只是交叉

,因为原文是交叉的,我不确定OP是否阅读

ciwahtml,虽然后续内容是针对这一组的。]


哪些浏览器会在没有脚本的情况下中断。您如何期望这些

用户通过电子邮件发送给您? (不,缺少脚本并不会自动意味着

某人是垃圾邮件发送者,而且电子邮件收获机器人几乎可以肯定

变得足够复杂以便在未来。)

我只是简单地使用:

< a href =" javascript :void(window.open(''XXX) .htm'',''图片'',
''width = XXX,身高= XXX''))">文字< / a>


哪些浏览器会在没有脚本的情况下中断,增加的问题是

用户得到的东西看起来像链接但实际上并没有带走

任何地方。

打开窗户,里面有放大的照片和

< a href =" javascript :窗口.close()">关闭< / A>关闭它们。

然而,IE6认为这是不安全的!并阻止脚本 -


然而,无聊的IE的行为是(当然,这是一个微软的产品,所以它很可能是cluelessness探测器将挂钩),你不应该b $ b依赖于脚本。

我可以改变我的设置以允许它们,但访客可能不会...... br />
我该怎么做才能解决这个问题?有什么想法?
Hi there,

In many of my sites I have code like:

<SCRIPT language="JavaScript" type="text/javascript">
<!--
user = "USER";
isp = "DOMAINNAME.XXX";
document.write(''<a href=\"mailto:'' + user + ''@'' + isp + ''\">'');
document.write(user + ''@'' + isp + ''<\/a>'');
// -->
</SCRIPT>
[I''m writing from the HTML authoring perspective here, only crossposting
because the original was crossposted and I''m not sure if the OP reads
c.i.w.a.html, though followups are directed to this group.]

Which will break on browsers without scripting. How do you expect these
users to e-mail you? (And no, lack of scripting does not automatically mean
someone is a spammer, and e-mail harvesting bots will almost certainly
become sophisticated enough to get around this in the future.)
on some I simply use:

<a href="javascript:void(window.open(''XXX.htm'', ''Picture'',
''width=XXX,height=XXX''))">Text</a>
Which will break on browsers without scripting, with the added problem that
users get something that looks like a link but doesn''t actually take them
anywhere.
to open windows with zoomed pictures therein and

<a href="javascript:window.close()">Close</a> to close them.

However, IE6 thinks this is unsafe!!!! and blocks the script -
However clueless IE''s behavior is (and of course, this is a Microsoft
product so it''s likely the cluelessness detector will peg), you shouldn''t
rely on scripting anyway.
I can alter my settings to permit them, but visitors might not....

What can I do to resolve this? Any thoughts?




尝试浏览自己的网站,脚本完全禁用一段时间,

假装重新启用它的选项没有甚至存在。


有些情况下,根据用户启用脚本是

显然是荒谬的。基本功能永远不需要在

正确创作的网站上。


-

Shawn K. Quinn



Try browsing your own sites with scripting completely disabled for a while,
pretending the option to re-enable it doesn''t even exist.

There are situations where depending on a user to have scripting enabled is
patently ridiculous. Essential functionality should never require it on a
properly authored site.

--
Shawn K. Quinn


Jon写道:
你好,

在我的很多网站上,我的代码如下:
< SCRIPT language =" JavaScript" type =" text / javascript">
<! -
user =" USER";
isp =" DOMAINNAME.XXX" ;;
document.write (''< a href = \" mailto:''+ user +''@''+ isp +''\">'');
document.write(user +' '@''+ isp +''< \ / a>'');
// - >
< / SCRIPT>

在某些我身上只需使用:

< a href =" javascript :void(window.open(''XXX.htm'',''Picture'',
''width = XXX,height = XXX''))">文字< / a>

打开窗口,其中放大图片和

< a HREF ="的JavaScript的 的:window.close()的">关闭< / A>关闭它们。


您假设访问者启用了javascript支持。

您还尝试强制访问新窗口。

但是,IE6认为这是不安全的!并阻止脚本 -


关闭您创建的窗口的脚本过多。

我可以更改我的设置以允许它们,但访问者可能不会。 ...

我该怎么做才能解决这个问题?有什么想法吗?

谢谢Jon

jon - at - compasscomputing - dot - co - dot - uk
Hi there,

In many of my sites I have code like:

<SCRIPT language="JavaScript" type="text/javascript">
<!--
user = "USER";
isp = "DOMAINNAME.XXX";
document.write(''<a href=\"mailto:'' + user + ''@'' + isp + ''\">'');
document.write(user + ''@'' + isp + ''<\/a>'');
// -->
</SCRIPT>

on some I simply use:

<a href="javascript:void(window.open(''XXX.htm'', ''Picture'',
''width=XXX,height=XXX''))">Text</a>

to open windows with zoomed pictures therein and

<a href="javascript:window.close()">Close</a> to close them.

You assume visitors have javascript support is enabled.
You also try to force new windows on visitors.
However, IE6 thinks this is unsafe!!!! and blocks the script -

The script to close the windows you created is excessive.
I can alter my settings to permit them, but visitors might not....

What can I do to resolve this? Any thoughts?

Thanks

Jon

jon - at - compasscomputing - dot - co - dot - uk




有一种简单的方法可以让你的照片不被封锁

由MSIE 6或任何弹出窗口拦截器:不要试图强制弹出窗口

javascript伪协议(javascript链接),只知道

会产生问题。将这些问题留给用户自己。


DU

-

该网站称使用Internet Explorer 5或更高版本..所以我转到了

Netscape 7.2 :)



There is simple way to permit your pictures without having them blocked
by MSIE 6 or any popup blocker: don''t try to force popup windows with
javascript pseudo-protocol (javascript links) which are known to just
create problems. Leave these issues to users themselves.

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Netscape 7.2 :)


这篇关于IE6阻止(安全)内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆