首頁 > web前端 > js教程 > 类似框架的js代码_javascript技巧

类似框架的js代码_javascript技巧

WBOY
發布: 2016-05-16 19:24:29
原創
1045 人瀏覽過
复制代码 代码如下:



类似框架的JS导航菜单


<script> <BR> function secBoard(n) <BR> { <BR> for(i=1;i<6;i++) <BR> { <BR> eval("document.getElementById('cel"+i+"').background=''"); <BR> } <BR> eval("document.getElementById('cel"+n+"').background=''"); <BR> for(i=1;i<6;i++) <BR> eval("tbx0"+i+".style.display='none'"); <BR> eval("tbx0"+n+".style.display='block'"); <BR> } <br><br></script>




    
        
            
            
        
        

            
                
                    
                
            

                    

                        
                            
                                
                            
                            
                                
                            
                            
                                
                            
                            
                                
                            
                            
                                
                            
                        
链接1
链接2
链接3
链接4
链接5

                    

                    

            

            
                
                    
                
            

                    

                        
                            
                                
                            
                        
border=0>









cellSpacing=5 cellPadding=0 width="100%" 
align=center border=0>



                                


                                链接1的内容:酒水 香烟 鲁菜 东北 官府 湘菜 苏菜 陕西 
湖北 淮扬 西餐 酒水 香烟 鲁菜 东北 官府 湘菜 苏菜 陕西 
湖北 淮扬 西餐酒水 香烟 鲁菜 东北 官府 湘菜 苏菜 陕西 
湖北 淮扬 西餐酒水 香烟 鲁菜 东北 官府 湘菜 苏菜 陕西 
湖北 淮扬 西餐


cellSpacing=5 cellPadding=0 width="100%" 
align=center border=0>



                                


                                链接2的内容:观前街 人民路 广济路 石路 朱家庄 西单 崇文门 
                                

                                苏州街 方庄 石路 朱家庄 西单 崇文门 
                                

                                苏州街 方庄 石路 朱家庄 西单 崇文门 
                                

                                苏州街 方庄 观前街 人民路 广济路 石路 朱家庄 西单 崇文门 
                                

                                苏州街 方庄 石路 朱家庄 西单 崇文门 
                                

                                苏州街 方庄 石路 朱家观前街 人民路 广济路 石路 朱家庄 西单 崇文门 
                                

                                苏州街 方庄 石路 朱家庄 西单 崇文门 
                                

                                苏州街 方庄 石路 朱家


cellSpacing=5 cellPadding=0 width="100%" 
align=center border=0>



                                


                                链接3的内容:水煮鱼 烤鸭 香辣蟹 火锅 羊蝎子 农家菜 烧烤 小吃 
鲍翅 快餐 
                                鱼 烤鸭 香辣蟹 火锅 羊蝎子 农家菜 烧烤鱼 烤鸭 香辣蟹 火锅 羊蝎子 农家菜 烧烤香辣蟹 
                                火锅 羊蝎子 农家菜 烧烤鱼 烤鸭 香辣蟹 火锅 羊蝎子 农家菜 烧烤香辣蟹 火锅 羊蝎子 
                                农家菜 烧烤鱼 烤鸭 香辣蟹 火锅 羊蝎子 农家菜 烧烤


                                cellSpacing=5 cellPadding=0 width="100%" 
align=center border=0>



                                


                                链接4的内容:水煮鱼 烤鸭 香辣蟹 火锅 羊蝎子 农家菜 烧烤 小吃 
鲍翅 快餐 
                                农家菜 烧烤 小吃 
鲍翅 快餐 农家菜 烧烤 小吃 
鲍翅 快餐 煮鱼 烤鸭 
                                香辣蟹 火锅 羊蝎子 农家菜 烧烤 小吃 
鲍翅 快餐 
                                农家菜 烧烤 小吃 
鲍翅 快餐 农家菜 烧烤 小吃 
鲍翅 快餐 


                                cellSpacing=5 cellPadding=0 width="100%" 
align=center border=0>



                                


                                链接5的内容:水煮鱼 烤鸭 香辣蟹 火锅 羊蝎子 农家菜 烧烤 小吃 

                                鲍翅 快餐快餐快餐快餐快餐快餐快餐快餐快餐快餐快餐快餐快餐快餐 煮鱼 烤鸭 香辣蟹 
                                火锅 羊蝎子 农家菜 烧烤 小吃 

                                鲍翅 快餐快餐快餐快餐快煮鱼 烤鸭 香辣蟹 火锅 羊蝎子 农家菜 烧烤 小吃 

                                鲍翅 快餐快餐快餐快餐快



                    

                    

            




相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板