JavaScript features This script: layer technology that applies javascript, and some function () to enable the corresponding scrolling of the lyrics while playing the music.
Use Realplay RM format music to play the download at the same time.
(This special effect is valid for IE4 above.) )
Demonstrate:
<script language= "Javascript1.2" >
<!--
var locate = 0;
var scro = 0;
var go=80;//controls the speed of scrolling, the smaller the faster.
The following function implements scrolling
function Scroller () {
if (scro==1) {
locate++;
Scroll (20,locate);
Cleartimeout (timer);
var timer = settimeout ("Scroller ()", go);
Timer
}
else{
Scroll (20,locate);
}
}
-->
</SCRIPT>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title>welcome to Yi ' s home</title>
<body bgcolor= "#EEEEEE" >
<script language= "Javascript1.2" >
<!--
var offsettop=20//defines the corresponding position of the layer
Define layer functions that automatically scroll with Web pages
function Makestatic () {
object1.style.pixeltop=document.body.scrolltop+offsettop;object2.style.pixeltop=document.body.scrolltop+ offsettop;
SetTimeout ("makestatic ()", 100);//' 100 ' control the speed of scrolling, the smaller the faster.
}
Functions that toggle the ' scrolling ' and ' paused ' images
function SCRORSTP () {
if (scro==1)
{scro=0;
object2.style.visibility= "visible";
object1.style.visibility= "visible";
}
else {
Scro=1;
Object1.style.visibility= "hidden";
Scroller ();}
}
Define the song address to play
document.write (' <div id= "Object2" style= "Position:absolute; left:20px; top:35px; width:46px: Hand Z-index:1 "><font size= "2" ><embed height= "src=" Afainst All Odds Mariah carey.rm "Type=" audio/ X-pn-realaudio-plugin "width=" controls= "PlayButton" autostart= "false" ></font></div> ")
Define ' scroll ' and ' pause ' the toggle image, the onclick excitation switch.
document.write (' <div id= "Object1" style= "Position:absolute; left:20px; top:35px; width:46px; height:16px: Hand Z-index:1 "></div> ')
Start JavaScript
function Menu3 () {
if (document.all| | Document.layers)
Makestatic ()
}
Window.onload=menu3
</SCRIPT> below is the lyrics section
-->
</SCRIPT>
<ul>
<li>
<div align= "center" >
<center>
<p><span class= "Font" ><b>mariah carey--against all Odds<font face= "Times New Roman" size= "4" >
</b></span></p>
</div>
</center>
<blockquote>
<p style= "line-height:150%" align= "Justify" class= "font" ><span class= "Font" >
How can I just let you walk away
Just let you leave without a trace
When I stand here taking
Every Breath with your
' Re the only one
Who really knew me at all
How can I just walk away from me
When all I can does is watch to you leave
' Cause we ' ve shared the laughter and the pain
And even shared the tears
' Re the only one
Who really knew me at all
So take a look at the Me now
Oh there ' s just an empty
And there ' s nothing left here to remind me
Just the memory of your
Take a look at the Me now
' Cause there ' s just a empty space
And you coming back to me are against all odds
And that ' s what I ' ve got to the face
I wish I could just make to you turn around
Turn around and the Me cry
There ' I need to say
So many reasons why
' Re the only one
Who really knew me at all
So take a look at the Me now
' Cause there ' s just a empty space
And there ' s nothing left here to remind me
Just the memory of your
Take a look at the Me now
' Cause there ' s just a empty space
But to wait for you
All I can do
And that ' s what I ' ve got to the face
Take a good look at the Me now
' cause L ' ll still be standing here
And you coming back to me are against all odds
That ' s the chance I ' ve qot to take
Take a look at the Me now </p>
</span></p>
</blockquote>
<p></p>
</li>
</ul>
</body>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.