Q: Implement double-click automatic scrolling.
A:Add the following code to the page that needs to be automatically scrolled
<s cript Language="Javas cript">
var currentpos, timer;
function initialize(){
timer = setInterval("scrollwindow()", 1);
}
function sc(){
clearInterval(timer);
}
function scrollwindow(){
currentpos = ;
(0, ++currentpos);
if(currentpos != ){
sc();
}
}
= sc;
= initialize;
</s cript>
Q: Mouse effects.
A:A description box will appear on the link with scrolling text description
<a href="" target="_blank" onMouseOver="helpor_net_show(this,event,' This is Xiao Guo's personal homepage ')" onMouseOut="helpor_net_hide()"> Put the mouse on and try it
<div style="position:absolute;visibility:hidden;clip:rect(0 150 50 0);width:150px;background-color:seashell">
<layer name="nstip" width="1000px" bgColor="seashell"></layer>
</div>
<SCRIPT language="JavaScript">
<!--
if (!&&!)
event="test"
function helpor_net_show(current,e,text){
if (&&=="complete"){
.='<marquee style="border:1px solid #3399ff">'+text+'</marquee>'
.=++10
.=++10
.="visible"
}
else if (){
document.(' '+text+' ')
document.()
document.=0
currentscroll=setInterval("scrolltip()",100)
document.=+10
document.=+10
document.="show"
}
}
function helpor_net_hide(){
if ()
.="hidden"
else if (){
clearInterval(currentscroll)
document.="hidden"
}
}
function scrolltip(){
if (document.>=-document.)
document.-=5
else
document.=150
}
//-->
</SCRIPT>
Q: Text output is randomly used as a bulletin board.
A:Script Description:
Step 1: Add the following code to the <head> area
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Tarjei Davidsen (the@) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! -->
<!-- Begin
var max=0;
function textlist() { i++:[i]; max }
tl = new textlist(
"With the gradual arrival of the INTERNET era, people's understanding and perception of the Internet are becoming more and more profound."
"On the Internet, mainly web page browsing, so the excitement of a web page is for the life of a website."
"People show their talents by making personal homepages, and because of the emergence of a variety of software for making web pages,"
"But, is it possible to create the various page effects you want by using software? The answer is definitely no, but is it possible to create the various page effects you want by using software? The answer is definitely no ",
"JavaScript is the first interpretation language for WEB pages launched by Netscape"
);
var x = 0; pos = 0;
var l = tl[0].length;
function textticker() {
= tl[x].substring(0, pos) + "_";
if(pos++ == l) {
pos = 0;
setTimeout("textticker()", 2000);
if(++x == max) x = 0;
l = tl[x].length;
} else
setTimeout("textticker()", 50);
}
// End -->
</script>
</HEAD>
Step 2: Add the following code to the <body> area
<form name=tickform>
<textarea name=tickfield rows=3 cols=38 style="background-color: rgb(0,0,0); color: rgb(255,255,255); cursor: default; font-family: Arial; font-size: 12px" wrap=virtual>The news will appear here when the page has finished loading.
</textarea>
</form>
Step 3: Change <body> to
<body bgcolor="#fef4d9" OnLoad="textticker()">
Q: Welcome speech that automatically pops up on the page. You can add...
A:I caught it on the company website today and the welcome speech will automatically pop up on the page. If you add it on your personal website, you will inevitably not add it. The added position should be understandable.
<html>
<head>
</head>
<body>
</body>
<script language="vbscript">
<!--
MsgBox "Welcome to my website!"
-->
</script>
</html>
Q: Page automatic refresh instructions.
A:When you make a web page, do you sometimes want your web page to refresh automatically, or automatically jump to another page you set yourself after a period of time? In fact, it is very simple to achieve this effect, and this effect cannot even be called a special effect. You just need to add the following code to your webpage.
1. Automatic page refresh: add the following code to the <head> area <meta http-equiv="refresh" content="20">, where 20 means refreshing the page every 20 seconds.
2. The page will automatically jump: add the following code to the <head> area <meta http-equiv="refresh" content="20;url=http://">, where 20 fingers will jump to the http:// page after 20 seconds.
A:Add the following code to the page that needs to be automatically scrolled
<s cript Language="Javas cript">
var currentpos, timer;
function initialize(){
timer = setInterval("scrollwindow()", 1);
}
function sc(){
clearInterval(timer);
}
function scrollwindow(){
currentpos = ;
(0, ++currentpos);
if(currentpos != ){
sc();
}
}
= sc;
= initialize;
</s cript>
Q: Mouse effects.
A:A description box will appear on the link with scrolling text description
<a href="" target="_blank" onMouseOver="helpor_net_show(this,event,' This is Xiao Guo's personal homepage ')" onMouseOut="helpor_net_hide()"> Put the mouse on and try it
<div style="position:absolute;visibility:hidden;clip:rect(0 150 50 0);width:150px;background-color:seashell">
<layer name="nstip" width="1000px" bgColor="seashell"></layer>
</div>
<SCRIPT language="JavaScript">
<!--
if (!&&!)
event="test"
function helpor_net_show(current,e,text){
if (&&=="complete"){
.='<marquee style="border:1px solid #3399ff">'+text+'</marquee>'
.=++10
.=++10
.="visible"
}
else if (){
document.(' '+text+' ')
document.()
document.=0
currentscroll=setInterval("scrolltip()",100)
document.=+10
document.=+10
document.="show"
}
}
function helpor_net_hide(){
if ()
.="hidden"
else if (){
clearInterval(currentscroll)
document.="hidden"
}
}
function scrolltip(){
if (document.>=-document.)
document.-=5
else
document.=150
}
//-->
</SCRIPT>
Q: Text output is randomly used as a bulletin board.
A:Script Description:
Step 1: Add the following code to the <head> area
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Tarjei Davidsen (the@) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! -->
<!-- Begin
var max=0;
function textlist() { i++:[i]; max }
tl = new textlist(
"With the gradual arrival of the INTERNET era, people's understanding and perception of the Internet are becoming more and more profound."
"On the Internet, mainly web page browsing, so the excitement of a web page is for the life of a website."
"People show their talents by making personal homepages, and because of the emergence of a variety of software for making web pages,"
"But, is it possible to create the various page effects you want by using software? The answer is definitely no, but is it possible to create the various page effects you want by using software? The answer is definitely no ",
"JavaScript is the first interpretation language for WEB pages launched by Netscape"
);
var x = 0; pos = 0;
var l = tl[0].length;
function textticker() {
= tl[x].substring(0, pos) + "_";
if(pos++ == l) {
pos = 0;
setTimeout("textticker()", 2000);
if(++x == max) x = 0;
l = tl[x].length;
} else
setTimeout("textticker()", 50);
}
// End -->
</script>
</HEAD>
Step 2: Add the following code to the <body> area
<form name=tickform>
<textarea name=tickfield rows=3 cols=38 style="background-color: rgb(0,0,0); color: rgb(255,255,255); cursor: default; font-family: Arial; font-size: 12px" wrap=virtual>The news will appear here when the page has finished loading.
</textarea>
</form>
Step 3: Change <body> to
<body bgcolor="#fef4d9" OnLoad="textticker()">
Q: Welcome speech that automatically pops up on the page. You can add...
A:I caught it on the company website today and the welcome speech will automatically pop up on the page. If you add it on your personal website, you will inevitably not add it. The added position should be understandable.
<html>
<head>
</head>
<body>
</body>
<script language="vbscript">
<!--
MsgBox "Welcome to my website!"
-->
</script>
</html>
Q: Page automatic refresh instructions.
A:When you make a web page, do you sometimes want your web page to refresh automatically, or automatically jump to another page you set yourself after a period of time? In fact, it is very simple to achieve this effect, and this effect cannot even be called a special effect. You just need to add the following code to your webpage.
1. Automatic page refresh: add the following code to the <head> area <meta http-equiv="refresh" content="20">, where 20 means refreshing the page every 20 seconds.
2. The page will automatically jump: add the following code to the <head> area <meta http-equiv="refresh" content="20;url=http://">, where 20 fingers will jump to the http:// page after 20 seconds.