注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

《电脑之家》

请点击:“日志”浏览电脑知识

 
 
 

日志

 
 

窗口慢慢变大特效  

2011-05-19 19:43:14|  分类: 窗口慢慢变大特效 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |


----------特效源代码----------


<body bgcolor=#ffffff><hr>  <script>
<!--
var winheight=100
var winsize=100
var x=5
/*
Animated Window Opener Script (updated 00/04/24)-
?Dynamic Drive (laofuzi.3322.net)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
function openwindow(thelocation){
temploc=thelocation
if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById)){
window.open(thelocation)
return
}
win2=window.open("","","scrollbars")
win2.moveTo(0,0)
win2.resizeTo(100,100)
go2()
}
function go2(){
if (winheight>=screen.availHeight-3)
x=0
win2.resizeBy(5,x)
winheight+=5
winsize+=5
if (winsize>=screen.width-5){
win2.location=temploc
winheight=100
winsize=100
x=5
return
}
setTimeout("go2()",50)
}
//-->
</script>
<p><P align=center><a href="javascript:openwindow('http://cartoon.nie.163.com/upfile/author_id=75&urs=zzx6577@163.com&art_id=15113&fn=production.swf')"><font color=#008080 size=6><b>点这里窗口慢慢变大</a></b></font>
<hr>
<P align=center><object id="mPlayer1" width=300 height=35 classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6">
   <param name="URL" value="
http://zhangmenshiting.baidu.com/data/music/1681499/%E8%BE%BE%E5%8F%A4%E6%8B%89%28%E9%A9%AC%E5%A4%B4%E7%90%B4%E7%8B%AC%E5%A5%8F%29.mp3?xcode=72cfb206b5ca8e820ca177dffe5246f3">
         <param name="rate" value="1">
         <param name="balance" value="0">
         <param name="currentPosition" value="0">
         <param name="defaultFrame" value>
         <param name="playCount" value="100">
         <param name="autoStart" value="1">
         <param name="currentMarker" value="0">
         <param name="invokeURLs" value="1">
         <param name="baseURL" value>
         <param name="volume" value="100">
         <param name="mute" value="0">
         <param name="uiMode" value="full">
         <param name="stretchToFit" value="0">
         <param name="windowlessVideo" value="0">
         <param name="enabled" value="1">
         <param name="enableContextMenu" value="1">
         <param name="fullScreen" value="0">
         <param name="SAMIStyle" value>
         <param name="SAMILang" value>
         <param name="SAMIFilename" value>
         <param name="captioningID" value>
         <param name="enableErrorDialogs" value="0">
         <param name="_cx" value="7779">
         <param name="_cy" value="1693">
       </object><P><font color=#008080 size=4>
示范音乐:马头琴曲<P>
代码编辑:<a href="
http://649668326.blog.163.com">叶子空间</a></font><P>
<P align=center><img src="
http://img96.ph.126.net/4FB_nb_-k9ncpIS1MnrLUQ==/2039004731293728292.png"></P>
<SCRIPT language=javascript>
function WinScroll(direction,xWidth,xHeight){
if ((navigator.appVersion.indexOf('4')!= -1)){
self.resizeTo(xWidth,xHeight)
if (direction == 1){
self.moveTo((screen.availWidth-xWidth)/2,screen.availHeight-10)
for (var c=1; c<=(screen.availHeight-(-xHeight))/2; c++)
self.moveTo((screen.availWidth-xWidth)/2,screen.availHeight-c)
}
if (direction == 2){
var x=screen.availHeight+screen.Height
self.moveTo((screen.availWidth-xWidth)/2,(screen.availHeight-x))
for (var c=0; c<=(screen.availHeight-(-xHeight/2)); c++)
self.moveTo((screen.availWidth-xWidth)/2,(screen.availHeight-x)+c)
}
if (direction == 3){
var x=screen.availWidth-10
self.moveTo(x,(screen.availHeight-xHeight)/2)
for (var c=1; c<=(x-(-xWidth))/2; c++)
self.moveTo((x-c),(screen.availHeight-xHeight)/2)
}
<!-- 此特效使用《网页特效精灵》编辑制作-->
<!-- 奥天软件:
http://www.aosky.net-->
if (direction == 4){
var x=screen.availWidth+(xWidth-10)
self.moveTo((screen.availWidth-x),(screen.availHeight-xHeight)/2)
for (var c=1; c<=(screen.availWidth-(-xWidth))/2; c++)
self.moveTo(((screen.availWidth-x)+c),(screen.availHeight-xHeight)/2)
}
}
}
for (c=1; c<=4; c++) WinScroll(c,400,400)
</SCRIPT></P>


网页特效:       运行代码

自然醒推荐阅读:
  评论这张
 
阅读(378)| 评论(10)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017