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

原创
2016-05-16 15:41:51907浏览

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

这里演示显示当前状态的导航,鼠标点击左侧的导航菜单,右侧的内容就会变换,实际上是一个竖向的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程序设计有所帮助。

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。