简体   繁体   English

swf文件为html-css-js

[英]swf file to html-css-js

I don't know if stackoverflow is the correct place for this question. 我不知道stackoverflow是否是此问题的正确位置。 If not, feel free to move it in the correct site. 如果没有,请随时将其移至正确的位置。

I have two swf files: 我有两个swf文件:

http://www.austintxgaragedoor.com/special-mail.swf http://www.austintxgaragedoor.com/special-mail.swf

http://www.austintxgaragedoor.com/special.swf http://www.austintxgaragedoor.com/special.swf

My client wants to convert them to something so the text will be in the html code. 我的客户希望将它们转换为某种东西,以便文本将在html代码中。 I thought to use two gif files. 我想使用两个gif文件。 When the user hover the specific div then the second gif replace the first and gives the effect. 当用户将鼠标悬停在特定的div上时,第二个gif替换第一个gif并产生效果。 The text will be positioned with css. 文本将使用css定位。 I am not sure if this a proper way to do it, or there is a better way. 我不确定这是否是正确的方法,还是有更好的方法。

What is your opinion? 你有什么意见?

Yes, you could probably but this together using 3 gif files: 1 for the static image, 1 animated gif with the in-sweep, and 1 animated gif with the out-sweep... and use JavaScript/Jquery to switch between these images based on hover state. 是的,您可能可以同时使用3个gif文件:1个用于静态图像,1个用于扫描的gif动画,1个用于外部扫描的gif动画,并使用JavaScript / Jquery在这些图像之间切换基于悬停状态。 Static at first, sweep-in on mouse-over, and sweep-out on mouse-out. 首先为静态,鼠标悬停时为扫入,鼠标移出时为扫出。

This may be unwanted advice but if possible, I would recommend that you urge your client to allow you to just use a simple CSS hover and changing either basic styling or swapping a background image - which you can do in a couple of minutes. 这可能是不需要的建议,但是如果可能的话,我建议您敦促客户端允许您仅使用简单的CSS悬停并更改基本样式或交换背景图片-您可以在几分钟内完成。 Your client may not be understanding that having this specific effect won't cause any more people to click on it. 您的客户可能并不了解具有这种特定效果不会引起更多人点击它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM