图像过渡 [英] image transition

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

问题描述

我写了一个简单的图像旋转脚本。


现在我需要在JS中的图像之间有一些过渡效果


做什么你建议吗?


谢谢

I wrote a simple script for image rotation.

now i need to have some transition effect betwean images in JS

What do you suggest ?

Thank you

推荐答案

Gale写道:
Gale wrote:
我写了一个简单的图像旋转脚本。


网址? [tm]

现在我需要在JS
中的图像之间有一些转换效果

这不是编程语言的问题,而是DOM的问题。

您有什么建议?
I wrote a simple script for image rotation.
URL? [tm]
now i need to have some transition effect betwean images in JS
It is not a matter of the programming language, but of the DOM.
What do you suggest ?




我建议您访问


< URL:http ://pointedears.de/scripts/test/dom/img-transition>





< URL:http:// msdn.microsoft.com/workshop/author/filter/filters.asp>

PointedEars



I suggest you visit

<URL:http://pointedears.de/scripts/test/dom/img-transition>

and

<URL:http://msdn.microsoft.com/workshop/author/filter/filters.asp>
PointedEars




Gale写道:

Gale wrote:
我写了一个简单的图像旋转脚本。
现在我需要在JS中的图像之间有一些过渡效果

你有什么建议?
I wrote a simple script for image rotation.

now i need to have some transition effect betwean images in JS

What do you suggest ?




如果你能提供一个

的工作实例,你更有可能得到一个好答案什么类型的

转换你的想法。


有许多可能的转换效果。 IE浏览器内置了一些

转换,但大多数其他浏览器没有。你通常可以使用这些IE转换而不会受到伤害 - 它们只是不显示不支持它们的

浏览器。


也许处理这种事情的最好方法是使用XML

语言SMIL,其中包含大量简单易用的内置
转换,以及他们可以精确计时。但是,大多数

浏览器还不支持SMIL。然而,最近版本的Real

播放器内置了SMIL支持。这对于

a一般网页来说不是一个好选择,因为很多人没有最近的Real

玩家安装或其他玩家或鲜为人知的浏览器将支持它。但是,它可能是私人页面或

网络的选项。


有时可能会有一些依赖于javascript的dhtml效果,例如

将图像移出屏幕,在设定的时间后隐藏图像,

使图像变大或变小等等。我不知道你是否

会考虑任何此类影响作为一种过渡类型,你需要考虑




You are much more likely to get a good answer if you can provide a
working example of what you have so far and describe what type of
transition you have in mind.

There are many possible transition effects. IE browsers have a few
transitions built in, but most other browsers do not. You usually can
use these IE transitions without harm - they just do not show up for
browsers that do not support them.

Perhaps the best way to handle this sort of thing is to use the XML
language SMIL, which has a huge number of simple to elaborate
transitions built in, and they can be precisely timed. However, most
browsers do not support SMIL yet. However recent versions of the Real
Player have SMIL support built in. This would not be a good choice for
a general web page, because many people do not have a recent Real
player installed or another player or lesser known browser that will
support it. However, it might be an option for a private page or a
network.

Some dhtml effects that rely on javascript are sometimes possible, such
as moving your image off the screen, hiding the image after a set time,
making the image grow larger or smaller, etc. I do not know if you
would consider any such effects as a type of transition that you have
in mind.




cwdjrxyz写道:

cwdjrxyz wrote:
也许处理这类事情的最好方法是使用XML
语言SMIL,它有大量简单易懂的内容
转换内置,它们可以精确定时。但是,大多数浏览器还不支持SMIL。然而,最新版本的Real
播放器内置了SMIL支持。这对于一般网页来说不是一个好选择,因为很多人没有安装最近的Real
播放器或者另一个玩家或鲜为人知的浏览器将支持它。但是,它可能是私人页面或
网络的选项。
Perhaps the best way to handle this sort of thing is to use the XML
language SMIL, which has a huge number of simple to elaborate
transitions built in, and they can be precisely timed. However, most
browsers do not support SMIL yet. However recent versions of the Real
Player have SMIL support built in. This would not be a good choice for
a general web page, because many people do not have a recent Real
player installed or another player or lesser known browser that will
support it. However, it might be an option for a private page or a
network.




我有一个用SMIL编写的页面 http://www.cwdjr.net/ram/realmix.ram

使用多个SMIL转换。我给的.ram网址只是

一个Real重定向文件,强制Real播放器打开实际的

SMIL xml页面,扩展名为.smil。这样做的原因是

Apple的QT播放器有一些SMIL支持,但不是几乎所有SMIL页面所需的近乎完整的SMIL 2支持。根据您设置玩家的方式,如果您不使用.ram重定向文件,.smil页面可以转到QT播放器而不是

Real播放器。


最重要的是你拥有最新的Real玩家,或者b
或者之前的一两个玩家。浏览器无关紧要,因为

SMIL是在Real播放器中处理的。事实上,你甚至可以在没有先连接到网络的情况下调出真实播放器,然后输入.ram的网址。

。然后玩家可以连接。这个页面将

工作在一个非常好的56 K拨号连接上。然而,宽带

连接是最好的。对于无法与页面保持同步的慢速拨号连接,页面通常会在第二次正常工作。

Real播放器有一个特殊的Real缓存。如果你用chttp来调用视频,图像,音乐,

等网址...而不是http ...,就像我在这里做的那样,这就是真实播放器的信号

存储在Real缓存中,这会降低第二遍所需的比特率
。页面可能需要一些时间才能启动,因此在连接到页面后必须进行设置。



I have a page written in SMIL at http://www.cwdjr.net/ram/realmix.ram
that uses several of the SMIL transitions. The .ram url I give is just
a Real redirector file that forces the Real player to open the actual
SMIL xml page that has an extension .smil. The reason for this is that
Apple''s QT player has a bit of SMIL support, but not the nearly full
SMIL 2 support needed for many SMIL pages. Depending on how you set up
your players, the .smil page could go to the QT player rather than the
Real player if you do not use the .ram redirector file.

The most important thing is that you have the most recent Real player,
or perhaps one or two before it. The browser does not matter, as the
SMIL is processed within the Real player. In fact, you may even be able
to bring up the Real player without first connecting to the web and
enter the url of the .ram. The player may then connect. This page will
work on a very good 56 K dialup connection. However a broadband
connection is best. For a slow dialup connection that can not keep up
with the page, often the page will work properly the second time. The
Real player has a special Real cache. If you call video, images, music,
etc urls with chttp... rather than http..., as I do here, this signals
the Real player to store in the Real cache, which reduces the bit rate
needed on a second pass. It may take a bit of time for the page to
start, as much has to be set up after you connect to it.


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

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