改变图像 [英] change images

查看:62
本文介绍了改变图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨民谣和大师


这可能会帮助你们中的一些人(虽然可能不是大师),改变

图片:

http://www.sunnysideup.co.nz/j/ imageChange /


任何反馈意见。


干杯


Nicolaas

Hi Folk and Gurus

This may help some of you (though probably not the gurus), in changing
images:

http://www.sunnysideup.co.nz/j/imageChange/

Any feedback appreciated.

Cheers

Nicolaas

推荐答案

8月4日凌晨4:51,windandwaves< nfranc ... @ gmail.comwrote:
On Aug 4, 4:51 am, windandwaves <nfranc...@gmail.comwrote:

嗨民谣和大师


这可能会帮助你们中的一些人(虽然可能不是大师),改变

图片:

http://www.sunnysideup .co.nz / j / imageChange /


任何反馈意见。
Hi Folk and Gurus

This may help some of you (though probably not the gurus), in changing
images:

http://www.sunnysideup.co.nz/j/imageChange/

Any feedback appreciated.



XHTML 1.1不适用于网页。当然你不希望

以text / html的形式提供它。


通过innerHTML赋值预加载图像是奇怪的,远远少于

与创建Image对象的常用方法兼容。


除非你计划创建一个页面来显示没有

脚本的图片,应该制作图像,标题和包含DIV的

静态内容。使用这种

方法,您根本不需要使用innerHTML。只需一次显示一个DIV。

XHTML 1.1 is not appropriate for Web pages. Certainly you don''t want
to serve it as text/html.

Preloading the images via an innerHTML assignment is odd and far less
compatible than the usual method of creating Image objects.

Unless you plan to create a page to display the pictures without
scripting, you should make the images, captions and containing DIV''s
static content. You don''t need to use innerHTML at all with this
approach. Just display one DIV at a time.


windandwaves在2007年8月4日凌晨4:51发表以下内容:
windandwaves said the following on 8/4/2007 4:51 AM:

嗨民谣和大师


这可能会帮助你们中的一些人(虽然可能不是大师),改变

图像:

http://www.sunnysideup.co .nz / j / imageChange /


任何反馈意见。
Hi Folk and Gurus

This may help some of you (though probably not the gurus), in changing
images:

http://www.sunnysideup.co.nz/j/imageChange/

Any feedback appreciated.



这将是我在很长一段时间内看到的图像更改的更糟糕的方式/例子

脚本。


-

兰迪

机会有利于准备好的心灵

comp.lang.javascript常见问题 - http://jibbering.com/faq/index.html

Javascript最佳实践 - http://www.JavascriptToolbox.com/bestpractices /


windandwaves写道:
windandwaves wrote:

这可能会帮助你们中的一些人(尽管可能不是大师),在改变

图像:

http://www.sunnysideup.co.nz/j/imageChange/


任何反馈意见。
This may help some of you (though probably not the gurus), in changing
images:

http://www.sunnysideup.co.nz/j/imageChange/

Any feedback appreciated.



在Firefox 2.0.0.6和Windows XP上的Opera 9.22中运行,但是:


- 您正在服务XHTML 1.1 text / html,推荐

每W3C注意XHTML媒体类型。

- 您正在提供与XHTML 1.0不兼容的XHTML,

C节,为text / html。 (我们优雅地忽略了对于XHTML 1.1没有这样的HTML兼容性限制。)

- 你正在提供HTML 4.01已经足够的XHTML。 />
- 您在元素中声明UTF-8,而XML元素会被XML

解析器忽略;如果Content-Type标头设置正确,则不需要相应的XML声明



- 您使用的是专有的作者。而不是

" DC.Creator"或DCTERMS.creator或DCTERMS.creator。来自都柏林核心元数据

标准(ISO 15836-2003)。

- 通过作为text / html(见上文),这被解析为

基于SGML的解析器。但是,'script''元素中的ETAGO没有被转义为


- 由于className而在NN4中不起作用。切换,虽然NN4

能够隐藏和切换图像及其描述。

- 缺少所有W3C DOM方法的功能测试。

- 您正在将W3C DOM Level 2 HTML与专有的innerHTML

属性混合,而不对后者进行测试。

- 使用W3C DOM Level 2和innerHTML需要,

并且没有提供替代方案。

- IE 7中图像的垂直偏移太大(错误)。

- 难以维护,因为图像用数字标识而不是名字的b $ b。


我可能已经忘记了别的东西。

PointedEars

-

Prototype.js是由不懂javascript的人写的

谁不知道javascript 。不知道javascript的人不是设计使用javascript的系统的最佳建议来源。

- Richard Cornford,< f8 **** ***************@news.demon.co.uk>

Works in Firefox 2.0.0.6 and Opera 9.22 on Windows XP, however:

- You are serving XHTML 1.1 as text/html, which is recommended
against per W3C Note "XHTML Media Types".
- You are serving XHTML that is not HTML-compatible as per XHTML 1.0,
Section C, as text/html. (We are gracefully ignoring that there is
no such allowance of HTML compatibility for XHTML 1.1 anyway.)
- You are serving XHTML where HTML 4.01 would have sufficed.
- You are declaring UTF-8 in a meta element that is ignored by an XML
parser; the corresponding XML declaration, which would not be required
if the Content-Type header was set appropriately, is missing.
- You are using the proprietary "author" value instead of the
"DC.Creator" or "DCTERMS.creator" from the Dublin Core Metadata
standard (ISO 15836-2003).
- By serving as text/html (see above) this is parsed by an
SGML-based parser. However, ETAGOs in the `script'' element have not
been escaped.
- Does not work in NN4 because of "className" switching, although NN4
is capable of both hiding and switching the image and its description.
- The feature test for all W3C DOM methods called is missing.
- You are mixing W3C DOM Level 2 HTML with the proprietary innerHTML
property without testing for the latter.
- W3C DOM Level 2 and innerHTML are used without being required,
and no alternative is provided.
- Vertical offset of the image is too great (wrong) in IE 7.
- Hard to maintain because images are identified by number instead
of by name.

And probably I have forgotten something else.
PointedEars
--
Prototype.js was written by people who don''t know javascript for people
who don''t know javascript. People who don''t know javascript are not the
best source of advice on designing systems that use javascript.
-- Richard Cornford, <f8*******************@news.demon.co.uk>


这篇关于改变图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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