Heim > Web-Frontend > js-Tutorial > 类似框架的js代码_javascript技巧

类似框架的js代码_javascript技巧

WBOY
Freigeben: 2016-05-16 19:24:29
Original
1009 Leute haben es durchsucht
复制代码 代码如下:



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

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

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

                                鲍翅 快餐快餐快餐快餐快



                    

                    

            




Verwandte Etiketten:
Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage