Home  >  Article  >  Web Front-end  >  求最好的JS半透明悬浮窗的代码_html/css_WEB-ITnose

求最好的JS半透明悬浮窗的代码_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:03:081727browse

各位大牛有没有实现最好的JS半透明悬浮窗的代码。
就是凤凰网打开时后,会出现一个半透明的遮盖了大半个屏幕的广告,过了一段时间会自动消失,同时也可以手动关闭,优酷首页也有的。如图所示:


回复讨论(解决方案)

你看它的源代码不就看到了实现的代码了吗

他那个广告时间性的,有cookie的,关了就没了,隔天后就没了

用position:fixed+setTimeout呗

http://blog.csdn.net/kabulore/article/details/25159287

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