Home  >  Article  >  Web Front-end  >  Jquery refresh page background image random transformation method_jquery

Jquery refresh page background image random transformation method_jquery

WBOY
WBOYOriginal
2016-05-16 17:40:291716browse

How to use: Download jquery-1.9.1.js, and then set the CSS. The image file is placed in the images/new_feed/ directory. The image naming format is bg_x.jpg. Modify the random number generation range

1. CSS code

Copy code The code is as follows:


2. Jquery code

Copy code The code is as follows:


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