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

类似框架的js代码_javascript技巧

WBOY
发布: 2016-05-16 19:24:29
原创
1015 人浏览过
复制代码 代码如下:



类似框架的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
最新问题
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板