This effect can be used to display navigation columns and images. If your layer names are irregular (not div1, 2, 3...), you can put them in an array and then call it.
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml"> <pead> <meta http-equiv =" content-Type "content =" text/html; charset = gb2312 "/> <title> untitled document </title> <style type =" text/css "> # container {width: 60%; height: 80%; position: absolute; text-align: center} # div1, # div2, # div3, # div4, # div5, # div6, # div7, # div8, # div9, # div10, # div11, # div12 {width: 80px; height: 80px; background: # eeeeee; margin: 0 2px 2px 0; padding: 20px; border: 3px # ccc double; font: 30px Verdana, Arial, Helvetica, sans-serif; color: #666; float: left; display: none} </style> </pead> <body onload = "shoppingcat () "> 1 2 3 4 5 6 7 8 9 10 11 12 </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml"> <pead> <meta http-equiv =" content-Type "content =" text/html; charset = gb2312 "/> <title> sequential display </title> <style type =" text/css "> # container {position: absolute; border: 1px solid #666; padding: 10px ;}# container li {display: none; list-style: none; float: left; margin: 1px; padding: 20px; width: 80px; height: 80px; border: 3px # ccc double; background: # eee; font: 30px Verdana, Arial, Helvetica, sans-serif; color: #666;} # container. orderly-change {border: 3px #666 double; background: # ccc ;} </style> </pead> <body> <ul id = "container"> <li> 1 </li> <li> 2 </li> <li> 3 </li> <li> 4 </li> <li> 5 </li> <li> 6 </li> <li> 7 </li> <li> 8 </li> <li> 9 </li> <li> 10 </li> <li> 11 </li> <li> 12 </li> </ul> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]