类似框架的js代码_javascript技巧

WBOY
WBOYオリジナル
2016-05-16 19:24:291016ブラウズ
复制代码 代码如下:



类似框架的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的内容:水煮鱼 烤鸭 香辣蟹 火锅 羊蝎子 农家菜 烧烤 小吃 

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

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

                                鲍翅 快餐快餐快餐快餐快



                    

                    

            




声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。