是否有一种方法来创建一个图像翻转到另一边(另一个页面)时,点击或点击?



用户有一张两面的名片。它的正面是主要信息,背面是次要细节。她希望当她把名片发给她的联系人时,他们应该只看到名片的正面。点击后,它应该会翻转到另一边。该图像应该只是一个gif或任何其他图像格式独立于任何程序。

我所能想到的是创建一个gif,在间隔后改变到另一边,这不能满足她的要求,只有当点击时才会改变。

我想到了带有热点的ImageMap,但这也需要链接网络上的另一边(页面),这违背了图像的独立性。

在这方面的任何帮助都是非常感谢的。

GIF89a标准(我们今天使用的标准)包括所谓的User Input标志,正是为此而设计的。
该标志,被设置在某一帧,应该告诉GIF解码器不显示下一帧,直到超时用户与当前用户交互。
零超时加上非零User Input意味着解码器应该无限期地等待交互。

引自标准:

v) User Input Flag - Indicates whether or not user input is
expected before continuing. If the flag is set, processing will
continue when user input is entered. The nature of the User input
is determined by the application (Carriage Return, Mouse Button
Click, etc.).
Values :    0 -   User input is not expected.
1 -   User input is expected.
When a Delay Time is used and the User Input Flag is set,
processing will continue when user input is received or when the
delay time expires, whichever occurs first.

不幸的是,没有GIF解码器,我知道甚至麻烦处理这个标志正确-所以我猜你最好的办法是给两帧合理的超时,10±5秒左右。

最新更新