<style type="text/css"> @import url(menu_style2.css); </style> <? $sql="select * from tb_type"; $result=mysql_db_query($db_Name,$sql); $i=0; while($rs=mysql_fetch_array($result)) { $id_type=$rs[id_type]; $name_type=$rs[name_type]; $i++; if($i%2==0){ $bg ="#9900FF"; }else{ $bg = "0099FF"; } echo" <table width='198'border='1'> <tr> <td width='198'><ul id='menu2'><li><div align='left'><a href='prd_list.php?id_type=$id_type'><img src='photo/home.png' width='40' height='40' />$name_type</a></div></li></td> </tr> </table> "; } ?>
#menu2 { background: #333; float: left; list-style: none; margin: 0; padding: 0; width: 200; } #menu2 li { float: left; font: 100% "Lucida Sans Unicode", "Bitstream Vera Sans", "Trebuchet Unicode MS", "Lucida Grande", Verdana, Helvetica, sans-serif; margin: 0; padding: 0; } #menu2 a { background: #777 url("images/seperator.gif") bottom right no-repeat; color: #ccc; display: block; float: center; margin: 0; padding: 6px 8px; text-decoration: 100%; } #menu2 a:hover { background: #1000a2 url("images/hover.gif") bottom center no-repeat; color: #fff; padding-bottom: 6px;
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง