js实现显示当前状态的导航效果代码

时间:2021-05-26

本文实例讲述了js实现显示当前状态的导航效果代码。分享给大家供大家参考。具体如下:

这里演示显示当前状态的导航,鼠标点击左侧的导航菜单,右侧的内容就会变换,实际上是一个竖向的TAB选项卡,作为菜单来用的话,它正好可以显示当前的菜单位置,比较经典。

运行效果截图如下:

在线演示地址如下:

http://demo.jb51.net/js/2015/js-show-nav-style-status-codes/

具体代码如下:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://e on over here and love me,<br /> You know what I want you to say.<br /> Dont be cruel to a heart thats true.<br /> Why should we be apart?<br /> I really love you baby, cross my heart.</p> <p>Lets walk up to the preacher<br /> And let us say I do,<br /> Then youll know youll have me,<br /> And Ill know that Ill have you,<br /> Dont be cruel to a heart thats true.<br /> I dont want no other love,<br /> Baby its just you Im thinking of.</p> <p>Dont be cruel to a heart thats true.<br /> Dont be cruel to a heart thats true.<br /> I dont want no other love,<br /> Baby its just you Im thinking of.</p> </div> <div id="teddyBear"> <h2>Teddy Bear</h2> <p>Baby let me be,<br /> Your lovin teddy bear<br /> Put a chain around my neck,<br /> And lead me anywhere<br /> Oh let me be<br /> Your teddy bear.</p> <p>I dont wanna be a tiger<br /> Cause tigers play too rough<br /> I dont wanna be a lion<br /> cause lions aint the kind<br /> You love enough.<br /> Just wanna be, your teddy bear<br /> Put a chain around my neck<br /> And lead me anywhere<br /> Oh let me be<br /> Your teddy bear.</p> <p>Baby let me be, around you every night<br /> Run your fingers through my hair,<br /> And cuddle me real tight.</p> </div></div></body></html>

希望本文所述对大家的javascript程序设计有所帮助。

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章