¡¡¡¡popup = window.open(URL£¬"MenuPopup"£¬windowprops);
¡¡¡¡}
¡¡¡¡// End -->
¡¡¡¡</script>
¡¡¡¡<table>
¡¡¡¡<tr>
¡¡¡¡<td>
¡¡¡¡<form name=popupform>
¡¡¡¡<pre>
¡¡¡¡´ò¿ªÒ³ÃæµÄ²ÎÊý<br>
¡¡¡¡À뿪×ó±ßµÄ¾àÀë: <input type=text name=left size=2 maxlength=4> pixels
¡¡¡¡À뿪ÓұߵľàÀë: <input type=text name=top size=2 maxlength=4> pixels
¡¡¡¡´°¿ÚµÄ¿í¶È: <input type=text name=width size=2 maxlength=4> pixels
¡¡¡¡´°¿ÚµÄ¸ß¶È: <input type=text name=height size=2 maxlength=4> pixels
¡¡¡¡</pre>
¡¡¡¡<center>
¡¡¡¡<input type=button value="´ò¿ªÕâ¸ö´°¿Ú£¡" onClick="popupPage(this.form.left.value£¬ this.form.top.value£¬ this.form.width.value£¬ this.form.height.value)">
¡¡¡¡</center>
¡¡¡¡</form>
¡¡¡¡</td>
¡¡¡¡</tr>
¡¡¡¡</table>ÄãÖ»ÒªÔÚÏà¶ÔÓ¦µÄ¶Ô»°¿òÖÐÊäÈëÒ»¸öÊýÖµ¼´¿É£¬½«Òª´ò¿ªµÄÒ³ÃæµÄ´°¿Ú¿ØÖƵúܺá£
44¡¢Ò³ÃæµÄ´ò¿ªÒƶ¯
°ÑÈçÏ´úÂë¼ÓÈë<body>ÇøÓòÖÐ
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
for (t = 2; t > 0; t--) {
for (x = 20; x > 0; x--) {
for (y = 10; y > 0; y--) {
parent.moveBy(0,-x);
}
}
for (x = 20; x > 0; x--) {
for (y = 10; y > 0; y--) {
parent.moveBy(0,x);
}
}
for (x = 20; x > 0; x--) {
for (y = 10; y > 0; y--) {
parent.moveBy(x,0);
}
}
for (x = 20; x > 0; x--) {
for (y = 10; y > 0; y--) {
parent.moveBy(-x,0);
}
}
}
//-->
// End -->
</script>
45¡¢ÏÔʾ¸öÈ˿ͻ§¶Ë»úÆ÷µÄÈÕÆÚºÍʱ¼ä
<script language="LiveScript">
<!-- Hiding
today = new Date()
document.write("ÏÖ ÔÚ Ê± ¼ä ÊÇ£º ",today.getHours(),":",today.getMinutes())
document.write("<br>½ñ Ìì ÈÕ ÆÚ Ϊ£º ", today.getMonth() 1,"/",today.getDate(),"/",today.getYear());
// end hiding contents -->
</script>
46¡¢×Ô¶¯µÄΪÄãÿ´Î²úÉú×îááÐ޸ĵÄÈÕÆÚÁË£º
<html>
<body>
This is a simple HTML- page.
<br>
Last changes:
<script language="LiveScript">
<!-- hide script from old browsers
document.write(document.lastModified)
// end hiding contents -->
</script>
</body>
</html>
47¡¢²»ÄÜΪ¿ÕºÍÓʼþµØÖ·µÄÔ¼Êø£º
<html>
<head>
<script language="JavaScript">
<!-- Hide
function test1(form) {
if (form.text1.value == "")
alert("Äú û д ÉÏ ÈÎ ºÎ ¶« Î÷£¬ Çë ÔÙ Êä Èë Ò» ´Î !")
else {
alert("àË " form.text1.value "! Äú ÒÑ Êä Èë Íê ³É !");
}
}
function test2(form) {
if (form.text2.value == "" ||
form.text2.value.indexOf('@', 0) == -1)
alert("Õâ ²» ÊÇ Õý È· µÄ e-mail address! Çë ÔÙ Êä Èë Ò» ´Î !");
else alert("Äú ÒÑ Êä Èë Íê ³É !");
}
// -->
</script>
</head>
<body>
<form name="first">
Enter your name:<br>
<input type="text" name="text1">
<input type="button" name="button1" value="Êä Èë ²â ÊÔ" onClick="test1(this.form)">
<P>
Enter your e-mail address:<br>
<input type="text" name="text2">
<input type="button" name="button2" value="Êä Èë ²â ÊÔ" onClick="test2(this.form)">
</body>
48¡¢ÅÜÂíµÆ
<html>
<head>
<script language="JavaScript">
<!-- Hide
var scrtxt="Ôõ÷áÑù ! ºÜ¿á°É ! ÄúÒ²¿ÉÒÔÊÔÊÔ." "Here goes your message the visitors to your page will " "look at for hours in pure fascination...";
var lentxt=scrtxt.length;
var width=100;
var pos=1-width;
function scroll() {
pos ;
var scroller="";
if (pos==lentxt) {
pos=1-width;
}
if (pos<0) {
for (var i=1; i<=Math.abs(pos); i ) {
scroller=scroller " ";}
scroller=scroller scrtxt.substring(0,width-i 1);
}
else {
scroller=scroller scrtxt.substring(pos,width pos);
}
window.status = scroller;
setTimeout("scroll()",150);
}
//-->
</script>
</head>
<body onLoad="scroll();return true;">
ÕâÀï¿ÉÏÔʾÄúµÄÍøÒ³ !
</body>
</html>
49¡¢ÔÚÍøÒ³ÖÐÓð´Å¥À´¿ØÖÆÇ°Ò³£¬ºóÒ³ºÍÖ÷Ò³µÄÏÔʾ¡£
<html>
<body>
<FORM NAME="buttonbar">
<INPUT TYPE="button" VALUE="Back" onClick="history.back()">
<INPUT TYPE="button" VALUE="JS- Home" onClick="location='script.html'">
ÎÄÕÂÕûÀí£ºÎ÷²¿ÊýÂë--רҵÌṩÓòÃû×¢²á¡¢ÐéÄâÖ÷»ú·þÎñ
http://www.west263.com
ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúÒª×ªÔØ±¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»!




