Home  >  Article  >  Web Front-end  >  Write a form and how to make it disappear automatically after 10 seconds_html/css_WEB-ITnose

Write a form and how to make it disappear automatically after 10 seconds_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:56:17852browse

It will automatically disappear after 10 seconds after entering the page. How to do it? Please tell me


Reply to discussion (solution)

js control

$(document).ready(function() {	$("#对应id").animate({opacity:1,alpha:(opacity=100)}, 10000)});

Be specific. Write in js,

js control

$(document).ready(function() {	$("#对应id").animate({opacity:1,alpha:(opacity=100)}, 10000)});


I can’t understand your code. Can you write this directly? Still need a third party


js control

$(document).ready(function() {	$("#对应id").animate({opacity:1,alpha:(opacity=100)}, 10000)});


I can’t understand your code. Can you write this directly? Still need a third party

Reference Jquery.js



js control

$(document).ready(function() {	$("#对应id").animate({opacity:1,alpha:(opacity=100)}, 10000)});


I can’t understand your code. Should you write it directly? Still need a third party

Quote Jquery.js

How to quote Jquery.js? Do you download it? Put it in the root directory of the website. On the page How to quote



c810502d94d07361408382973b9d81b3Ahhhhhhhhhhhhhhhhhhh 16b28748ea4df4d9c2150843fecfba68
4ec11beb6c39d0703d1751d203c17053
setTimeout(function(){
document.getElementById("aaa").style.display="none";
},1000);
2cacc6d41bbb37262a98f745aa00fbf0

644d2b7d97f8b81f211235b7a45b20aaAhhhhhhhhhhhh16b28748ea4df4d9c2150843fecfba68
4ec11beb6c39d0703d1751d203c17053
setTimeout(function(){
document.getElementById ("aaa").style.display="none";
},1000);
2cacc6d41bbb37262a98f745aa00fbf0


Thank you. It has been implemented, but how can I let him log in to the page next time? It won’t be displayed, because every time I refresh it, it will be real, and then disappear,




778b16c4ed844711ff2c4255dbf29078Ahhhhhhhhhhhhhh16b28748ea4df4d9c2150843fecfba68
4ec11beb6c39d0703d1751d203c17053
setTimeout(function (){
document.getElementById("aaa").style.display="none";
},1000);
2cacc6d41bbb37262a98f745aa00fbf0


Thank you. Implemented, but How to make it so that the page will not be displayed when he logs in next time, because every time he refreshes the new page, it will be real, and then disappear,


Write cookie to judge




c810502d94d07361408382973b9d81b3Ahhhhhhhhhh950c0e09a208ea6a6c67c615a801fbc6
4ec11beb6c39d0703d1751d203c17053
setTimeout(function(){
document.getElementById("aaa").style.display="none";
},1000);
2cacc6d41bbb37262a98f745aa00fbf0


Thank you. It has been implemented, but how can I make it so that the page will not be displayed when I log in next time? Because every time I refresh the novice, it is a reality and then disappears. , This is just a set timing function. After implementation, the timing is not turned off, so you need to add the clearTimeout() method
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn