Bạn đang xem: Jquery effects
Here"s my script:
So I"m getting the product code and price from the html, modifying the html in the div then fading this in as a notification that an tác phẩm has been added to lớn the shopping cart.
This is the div that I want khổng lồ fade in:


do something lượt thích this: http://jsfiddle.net/LJsNG/1/
$(function () $(".tooltipleft").fadeIn("slow", function () $(this).delay(5000).fadeOut("slow"); ););

Use show và hide instead of fadeIn and fadeOut to lớn see if it works. If it doesnt work then your problem is somewhere else.As you see this working example the $("#foo").fadeIn().delay(2000).fadeOut();is a correct line of code.
Xem thêm: Rpa Là Gì ? Ứng Dụng Của Rpa Trong Cuộc Cách Mạng 4 Khác Biệt Giữa Rpa Và Bpm Là Gì
$("#tooltipleft").show(0).delay(5000).hide(0);
Well you dont see the fadeOut animation because you are refreshing the page. A size is submitted & location.aspx is loaded.
Thanks for contributing an answer to lớn Stack Overflow!
But avoid …
Asking for help, clarification, or responding khổng lồ other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.
Post Your Answer Discard
By clicking “Post Your Answer”, you agree khổng lồ our terms of service, privacy policy and cookie policy
Not the answer you're looking for? Browse other questions tagged jquery or ask your own question.

Site kiến thiết / hình ảnh © 2022 Stack Exchange Inc; user contributions licensed under cc by-sa. Rev2022.4.21.42004
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device & disclose information in accordance with our Cookie Policy.