简体   繁体   English

没有jQuery的ajax淡入或淡出效果

[英]ajax fade in or fade out effect, without jQuery

I'm looking for a way to show simple fade in or fade out effect in ajax and make it pretty with a color or background color, but without jQuery, because jQuery is not suitable for small web pages and it's too heavy for poor connections! 我正在寻找一种方法来显示简单的ajax淡入或淡出效果,并使其具有颜色或背景色,但没有jQuery,因为jQuery不适合小型网页,并且对于较差的连接而言太重了!

I need a function which I can use when OnReadyStat becomes 4, or xmlhttp.status is equal to 200, then show the result with a simple effect. 我需要一个OnReadyStat变为4或xmlhttp.status等于200时可以使用的函数,然后以简单的效果显示结果。

I think Microsoft DXImageTransform can help me, but I don't know where to start. 我认为Microsoft DXImageTransform可以帮助我,但是我不知道从哪里开始。

jQuery is perfect for any web page!! jQuery非常适合任何网页! I would suggest you go with jQuery. 我建议您使用jQuery。 Where did you hear it is not suitable for web pages or heavy for poor connections. 您在哪里听说过,它不适合用于网页或连接不良。 Go with jQuery. 使用jQuery。

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

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