打開頁面時(shí)自動(dòng)出現(xiàn)好幾條顯影的信息,然后才導(dǎo)入頁面
發(fā)布時(shí)間:2008-12-20 閱讀數(shù): 次 來源:網(wǎng)樂原科技
腳本說明:
把如下代碼加入區(qū)域中
<script LANGUAGE = "JavaScript">
function makeArray() {
this.length = makeArray.arguments.length;
for (var i = 0; i < this.length; i++)
this[i + 1] = makeArray.arguments[i];
}
function makeSlideShow (obj, wait, pre, url) {
this.curText = '';
this.posit = 1;
this.word = obj;
this.length = obj.length;
this.pre = pre;
this.wait = wait;
this.url = url;
this.display = displaySlideShow;
}
function displaySlideShow() {
if (this.posit <= this.length) {
this.curText = this.word[this.posit]
outStringWord = blankFrameTop + this.pre + this.curText + blankFrameBottom;
parent.draw.location = 'javascript:parent.outStringWord';
this.posit++;
}
else {
doneLoop = true;
top.location = this.url;
}
}
function displayLoop() {
if (!doneLoop) reDraw = setTimeout('displayLoop()', wordIntro.wait);
wordIntro.display();
}
var words = new makeArray ('歡迎光臨 ', '本站主要向您介紹javascript ', '水平有限,敬請指教! ', 'Email: jojoo@jojoo.net ', '好啦,出發(fā)吧! ');
var wordIntro = new makeSlideShow (words, 2500, '
', 'jiaoben.htm');
var blankFrameTop = '';
var blankFrameBottom = '';
var blankFrame = blankFrameTop + blankFrameBottom;
var doneLoop = false;
</script>