4.BOM中控制页面前进的方法 ________,后退的方法__________前进后退多个的方
法_________.
5.利用BOM控制刷新当前页面的方式有 ____________,___________,___________.
6.如何利用javascript改变cookie的值_______________(2分)
三.PHP回顾(20分)
1.至少写出PHP十种魔术方法?
2.mysql的引擎有哪些,列举两种,关系型数据库主要有哪些,介绍一款你了解得非关系型数据库
五.javascript程序阅读题(加注释)(10分)
<a href="javascript:openWin()"> 打开一个子窗口 </a>
<a href="javascript:move()"> 动起来 </a>
<script type="text/javascript" charset="utf-8">
var win=null;
var screenWidth = window.screen.width;
var screenHeight = window.screen.height;
var x=10, y=0;
function move() {
var width = win.outerWidth;
var height = win.outerHeight;
console.log(width, height);
setInterval(function() {
var top = win.screenY;
var left = win.screenX;
if(top==0 && left==screenWidth-width) {
x=0;
y=10;
}
console.log(top, screenHeight, height);
if(top==screenHeight-height && left==screenWidth-width) {
x=-10;
y=0;
}
if(top==screenHeight-height && left==0) {
x=0;
y=-10;
}
if(top==0 && left==0) {
x=10;
y=0;
}
win.moveBy(x,y);
}, 50);
}
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库javascript测试题(3)在线全文阅读。
相关推荐: