網站首頁 網站建設 公司動態 行業新聞 案例展示 關于我們

文章內容

顯示當前狀態的導航

日期:2013-12-13  來源:攀枝花惠康網絡公司


I dont want no other love,<br />

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
“http://www.w3.org/TR/html4/strict.dtd“>
<html lang=”en”>
<head>
<style type=”text/css”>
body { font-family:verdana; }
#content { float:left; width:400px; border:1px solid #ccc; margin-left:20px; padding:2px 10px 10px 10px; }
ul { margin:0; padding:0; list-style: none; width:200px; float:left; }
ul li a {
display:block;
padding:8px;
text-decoration:none;
background: #eee;
Well, you aint never caught a rabbit<br />
color: #039;
}
ul li a:hover {
background: #ffc;
}
ul li a.selected {
background: #c63;
Dont be cruel to a heart thats true.</p>
Dont you step on my blue suede shoes.<br />
color:#fff;
#content div { display:none; }
#content div.on { display:block; }
</style>
<script type=”text/javascript”>
Your teddy bear.</p>
function applySelectedTo(link) {
var ul = document.getElementsByTagName(“ul”)[0]; // get the first ul tag on the page
var allLinks = ul.getElementsByTagName(“a”); // get all the links within that ul
for (var i=0; i<allLinks.length; i++) { // iterate through all those links
allLinks[i].className = “”; // and assign their class names to nothing
}
link.className = “selected”; // finally, assign class=”selected” to our chosen link
You still can find some room.<br />
var allDivs = document.getElementsByTagName(“div”);
allDivs[k].className = “”;
}
var lyricId = link.getAttribute(“href”).split(“#”)[1];
And Ill know that Ill have you,<br />
lyricId = document.getElementById(lyricId);
lyricId.className = “on”;
<body>
<h1>A list of links (styled, selected state, onclick, return false, and does something)</h1>
<ul>
Your teddy bear.</p>
<li><a onclick=”applySelectedTo(this);return false;” href=http://www.css88.com/archives/”#heartbreakHotel”>Heartbreak Hotel</a></li>
<li><a onclick=”applySelectedTo(this);return false;” href=http://www.css88.com/archives/”#blueSuedeShoes”>Blue Suede Shoes</a></li>
<li><a onclick=”applySelectedTo(this);return false;” href=http://www.css88.com/archives/”#houndDog” class=”selected”>Hound Dog</a></li>
<li><a onclick=”applySelectedTo(this);return false;” href=http://www.css88.com/archives/”#dontBeCruel”>Don’t Be Cruel</a></li>
<li><a onclick=”applySelectedTo(this);return false;” href=http://www.css88.com/archives/”#teddyBear”>Teddy Bear</a></li>
<p>You make me so lonely baby,<br />
</ul>
All over the place.</p>
<div id=”content”>
<div id=”heartbreakHotel”>
<h2>Heartbreak Hotel</h2>
<p>Well, since my baby left me,<br />
I found a new place to dwell.<br />
Baby its just you Im thinking of.</p>
Its down at the end of lonely street<br />
At heartbreak hotel.</p>
<p>You make me so lonely baby,<br />
I get so lonely,<br />
Dont make me feel this way,<br />
I get so lonely I could die.</p>
<p>And although its always crowded,<br />
Where broken hearted lovers<br />
Do cry away their gloom.</p>
<p>You make me so lonely baby,<br />
I get so lonely,<br />
I get so lonely I could die.</p>
<p>Well, the bell hops tears keep flowin,<br />
ul li { margin:0 0 1px 0; padding:0; }
And the desk clerks dressed in black.<br />
Well they been so long on lonely street<br />
They aint ever gonna look back.</p>
I get so lonely,<br />
I get so lonely I could die.</p>
<p>Hey now, if your baby leaves you,<br />
And you got a tale to tell.<br />
Just take a walk down lonely street<br />
To heartbreak hotel.</p>
</div>
<div id=”blueSuedeShoes”>
<h2>Blue Suede Shoes</h2>
<p>Well, its one for the money,<br />
<p>You can burn my house,<br />
</head>
<title>Dynamic Navigation with CSS and Javascript: Example 7</title>
</body>
Honey, lay off of my shoes<br />
Now go, cat, go.</p>
<p>But dont you step on my blue suede shoes.<br />
</script>
You can do anything but lay off of my blue suede shoes.</p>
<p>Well, you can knock me down,<br />
Step in my face,<br />
I really love you baby, cross my heart.</p>
Slander my name<br />
<p>Do anything that you want to do, but uh-uh,<br />
You can do anything but lay off of my blue suede shoes.</p>
}
Steal my car,<br />
Honey, lay off of my shoes<br />
You can do anything but lay off of my blue suede shoes.</p>
Drink my liquor<br />
Oh let me be<br />
From an old fruitjar.</p>
<p>Do anything that you want to do, but uh-uh,<br />
Dont you step on my blue suede shoes.<br />
</div>
<div class=”on” id=”houndDog”>
<h2>Hound Dog</h2>
<p>You aint nothin but a hound dog<br />
Well, that was just a lie.<br />
And let us say I do,<br />
Cryin all the time.<br />
You aint nothin but a hound dog<br />
Cryin all the time.<br />
And you aint no friend of mine.</p>
<p>When they said you was high classed,<br />
Well, that was just a lie.<br />
Two for the show,<br />
When they said you was high classed,<br />
You aint never caught a rabbit<br />
Baby its just you Im thinking of.</p>
And you aint no friend of mine.</p>
</div>
<div id=”dontBeCruel”>
<h2>Don’t Be Cruel</h2>
<p>You know I can be found,<br />
Sitting home all alone,<br />
If you cant come around,<br />
<p>Baby, if I made you mad<br />
For something I might have said,<br />
Please, lets forget the past,<br />
The future looks bright ahead,<br />
Dont be cruel to a heart thats true.<br />
I dont want no other love,<br />
<p>Dont stop thinking of me,<br />
Come 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 />
<p>Lets walk up to the preacher<br />
Then youll know youll have me,<br />
Dont be cruel to a heart thats true.<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 />
</div>
<div id=”teddyBear”>
<h2>Teddy Bear</h2>
At least please telephone.<br />
<p>I dont wanna be a tiger<br />
<p>Baby let me be,<br />
Your lovin teddy bear<br />
Put a chain around my neck,<br />
And lead me anywhere<br />
Three to get ready,<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 />
<p>Baby let me be, around you every night<br />
for (var k=0; k<allDivs.length; k++) {
Run your fingers through my hair,<br />
And cuddle me real tight.</p>
</div>
<meta http-equiv=”content-type” content=”text/html; charset=utf-8″>
</div>
}
</html>

文章來源:攀枝花惠康網絡公司

惠康網絡,是一家專業從事攀枝花網站建設,攀枝花網站制作,攀枝花網站設計公司,提供網站建設一條龍服務(網站域名注冊+網站服務器租用+網站開發+網站維護+網站營銷推廣),惠康網絡立足攀枝花,輻射全中國,攀枝花惠康網絡的客戶已經遍布國內各地大中小城市,我們高效優質的網站建設服務深受用戶好評。

客服熱線:tel(謝先生)  客服QQ:1323605005  
服務郵箱:[email protected](售前咨詢)  [email protected](技術部)  [email protected](售后服務)
公司地址:四川省攀枝花市
郵編:617200

青海十一选五开奖图