js实现显示当前状态的导航效果代码_javascript技巧
这里演示显示当前状态的导航,鼠标点击左侧的导航菜单,右侧的内容就会变换,实际上是一个竖向的TAB选项卡,作为菜单来用的话,它正好可以显示当前的菜单位置,比较经典。
运行效果截图如下:
在线演示地址如下:
http://demo.jb51.net/js/2015/js-show-nav-style-status-codes/
具体代码如下:
显示当前状态的导航 A list of links (styled, selected state, onclick, return false, and does something)
Heartbreak Hotel
Well, since my baby left me,
I found a new place to dwell.
Its down at the end of lonely street
At heartbreak hotel.
You make me so lonely baby,
I get so lonely,
I get so lonely I could die.
And although its always crowded,
You still can find some room.
Where broken hearted lovers
Do cry away their gloom.
You make me so lonely baby,
I get so lonely,
I get so lonely I could die.
Well, the bell hops tears keep flowin,
And the desk clerks dressed in black.
Well they been so long on lonely street
They aint ever gonna look back.
You make me so lonely baby,
I get so lonely,
I get so lonely I could die.
Hey now, if your baby leaves you,
And you got a tale to tell.
Just take a walk down lonely street
To heartbreak hotel.
Blue Suede Shoes
Well, its one for the money,
Two for the show,
Three to get ready,
Now go, cat, go.
But dont you step on my blue suede shoes.
You can do anything but lay off of my blue suede shoes.
Well, you can knock me down,
Step in my face,
Slander my name
All over the place.
Do anything that you want to do, but uh-uh,
Honey, lay off of my shoes
Dont you step on my blue suede shoes.
You can do anything but lay off of my blue suede shoes.
You can burn my house,
Steal my car,
Drink my liquor
From an old fruitjar.
Do anything that you want to do, but uh-uh,
Honey, lay off of my shoes
Dont you step on my blue suede shoes.
You can do anything but lay off of my blue suede shoes.
Hound Dog
You aint nothin but a hound dog
Cryin all the time.
You aint nothin but a hound dog
Cryin all the time.
Well, you aint never caught a rabbit
And you aint no friend of mine.
When they said you was high classed,
Well, that was just a lie.
When they said you was high classed,
Well, that was just a lie.
You aint never caught a rabbit
And you aint no friend of mine.
Don't Be Cruel
You know I can be found,
Sitting home all alone,
If you cant come around,
At least please telephone.
Dont be cruel to a heart thats true.
Baby, if I made you mad
For something I might have said,
Please, lets forget the past,
The future looks bright ahead,
Dont be cruel to a heart thats true.
I dont want no other love,
Baby its just you Im thinking of.
Dont stop thinking of me,
Dont make me feel this way,
Come on over here and love me,
You know what I want you to say.
Dont be cruel to a heart thats true.
Why should we be apart?
I really love you baby, cross my heart.
Lets walk up to the preacher
And let us say I do,
Then youll know youll have me,
And Ill know that Ill have you,
Dont be cruel to a heart thats true.
I dont want no other love,
Baby its just you Im thinking of.
Dont be cruel to a heart thats true.
Dont be cruel to a heart thats true.
I dont want no other love,
Baby its just you Im thinking of.
Teddy Bear
Baby let me be,
Your lovin teddy bear
Put a chain around my neck,
And lead me anywhere
Oh let me be
Your teddy bear.
I dont wanna be a tiger
Cause tigers play too rough
I dont wanna be a lion
cause lions aint the kind
You love enough.
Just wanna be, your teddy bear
Put a chain around my neck
And lead me anywhere
Oh let me be
Your teddy bear.
Baby let me be, around you every night
Run your fingers through my hair,
And cuddle me real tight.
希望本文所述对大家的javascript程序设计有所帮助。
推荐阅读
-
用javascript来实现动画导航效果的代码_javascript技巧
-
JS仿淘宝实现的简单滑动门效果代码_javascript技巧
-
两种简单实现菜单高亮显示的JS类代码_javascript技巧
-
JS实现点击图片在当前页面放大并可关闭的漂亮效果_javascript技巧
-
Js保留小数点的4种效果实现代码分享_javascript技巧
-
两种简单实现菜单高亮显示的JS类代码_javascript技巧
-
js通过更改按钮的显示样式实现按钮的滑动效果_javascript技巧
-
Js保留小数点的4种效果实现代码分享_javascript技巧
-
js实现无限级树形导航列表效果代码_javascript技巧
-
JS实现网页顶部向下滑出的全国城市切换导航效果_javascript技巧