您好,欢迎来到模板无忧!
登录
注册
闂備浇銆€閸嬫捇鏌熼婊冾暭妞ゃ儻鎷�
闂備胶鎳撻崥瀣垝鎼淬劌纾奸柨鐕傛嫹
闂備線娼婚梽鍕熆濡ソ褰掓晸閿燂拷
闂佹眹鍩勯崹濂稿窗閺嶃劍鍙忛柨鐕傛嫹
模板无忧
网页特效
每日更新
|
TOP排行榜
|
Tag标签
|
充值
无忧首页
网页模板
程序模板
建站教程
视频教程
网页特效
图标素材
字体下载
站长工具
站长问答
关闭顶部
展开顶部
网页特效
菜单导航
图片特效
文本链接
层和布局
页面背景
表单按钮
日期时间
计算转换
键盘鼠标
浏览器
游戏娱乐
综合其它
常用代码
jQuery特效
Prototype
Ajax/JavaScript
ExtJS
CSS特效
在线编辑器
Mootools
HTML
JS广告代码合集
站长工具
站长常用软件
网站综合查询
Alexa排名查询
Google PR查询
域名Whois查询
网站收录查询
友情链接查询
CSS2中文手册
CSS精简优化工具
AI闁诲繐绻愮换妤佺閿燂拷 闂佺厧鐤囧Λ鍕疮閹炬潙顕辨慨妯块哺閺嗭拷
闂佺硶鏅濋崰搴ㄥ箖閿燂拷
闂佽浜介崝蹇撶暦閿燂拷
展开边栏
关闭边栏
网页特效代码
模板无忧
>
网页特效
>
页面背景特效代码
>
收藏
分享
查看评论
页面背景
演示
页面载入时的进度条效果的实现_页面背景特效
查看演示效果
特效Tag:
页面
效果
添加
缂傚倷绀佸ú锕傚焻缁€鎱筪eCMS闁荤喐鐟ュΛ婵嬨€傞崼鏇炴瀬婵炲棙鍨熼弻锟�
婵炴垶姊规竟鍡涘煘閺嶎厽鈷掗柨鐕傛嫹 缂備礁顦遍崰鎰耿閸ヮ剙绀夐柍銉ㄦ珪閻濓拷 闂備緡鍋勯ˇ杈╃礊婢跺本鍏滈柡鍥ㄦ皑闂夊秹鏌ゆ潏銊︻棖缂佹唻鎷�
闂佸搫鍟版慨鎾椽閺嶎偆鍗氭繛鍡樻尰濮f劗鈧鎮堕崕閬嶅矗閿燂拷,闂佽皫鍕姢閻庤濞婂鍫曞礃椤斿吋顏熸繛鎴炴尨閸嬫捇姊哄▎鎯ф灈闁告瑥绻樺濠氭晸閿燂拷!
页面载入时的进度条效果的实现,您可以先修改部分代码再运行.
把如下代码加入到<head>区域中.注意:图片自选 <style type="text/css"> #divLoadCont{position:absolute; z-index:500; left:0; top:0; width:100%; height:98%; clip:rect(0,100%,100%,0); background-color:white; layer-background-color:white; } #divLoad1{position:absolute; layer-background-color:silver; background-color:silver} #divLoad2{position:absolute; left:0; top:0; layer-background-color:navy; background-color:navy} #divLoadText{position:absolute; background-color:transparent; font-family:arial,helvetica; color:Navy; font-size:14px; } </style> <script language="JavaScript" type="text/javascript"> function lib_bwcheck(){ //Browsercheck (needed) this.ver=navigator.appVersion this.agent=navigator.userAgent this.dom=document.getElementById?1:0 this.opera5=this.agent.indexOf("Opera 5")>-1 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")>-1 this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5) return this } var bw=new lib_bwcheck() numImages=10 //How many images you have in your page loaderWidth=300 //The width of the loadbar currentImg=0 function lib_doc_size(){ this.x=0;this.x2=bw.ie && document.body.offsetWidth-20||innerWidth||0; this.y=0;this.y2=bw.ie && document.body.offsetHeight-5||innerHeight||0; if(!this.x2||!this.y2) return message('Document has no width or height') this.x50=this.x2/2;this.y50=this.y2/2; return this; } function lib_obj(obj,nest){ nest=(!nest) ? "":'document.'+nest+'.' this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0; this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt; this.ref=this.css this.w=this.evnt.offsetWidth||this.css.clip.width|| this.ref.width||this.css.pixelWidth||0; return this } lib_obj.prototype.moveIt = function(x,y){ this.x=x;this.y=y; this.css.left=x;this.css.top=y } lib_obj.prototype.clipTo = function(t,r,b,l,setwidth){ this.ct=t; this.cr=r; this.cb=b; this.cl=l if(bw.ns4){ this.css.clip.top=t;this.css.clip.right=r this.css.clip.bottom=b;this.css.clip.left=l }else{ if(t<0)t=0;if(r<0)r=0;if(b<0)b=0;if(b<0)b=0 this.css.clip="rect("+t+","+r+","+b+","+l+")"; if(setwidth){this.css.pixelWidth=this.css.width=r; this.css.pixelHeight=this.css.height=b} } } var oLoad2 function startLoading(){ page=new lib_doc_size() oLoadCont=new lib_obj('divLoadCont') oLoad=new lib_obj('divLoad1','divLoadCont') oLoad2=new lib_obj('divLoad2','divLoadCont.document.divLoad1') oLoadText=new lib_obj('divLoadText','divLoadCont.document.divLoad1') oLoad.moveIt(page.x50-loaderWidth/2,page.y50-20) oLoadText.moveIt(loaderWidth/2 - oLoadText.w/2,10) oLoad.clipTo(0,loaderWidth,40,0,1) oLoad2.per = loaderWidth/numImages } function loadIt(ok){ currentImg++ if(oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1) if(!ok){ oLoadCont.css.visibility='hidden' oLoadCont=null; oLoad1=null; oLoad2=null; } } function loadIt_display(ok){ currentImg++ if(oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1) if(currentImg<=numImages) setTimeout("loadIt_display(1)",200) else{ oLoadCont.css.visibility='hidden' } } </script> <div id="divLoadCont"> <div id="divLoad1"> <div id="divLoad2"></div><br> <div id="divLoadText">Loading...</div> </div> </div> <script> startLoading() //onload=loadIt; //- LEAVE THIS LINE WHILE TESTING. UNCOMMENT WHEN READY loadIt_display(1) //LEAVE THIS LINE WHILE TESTING. DELETE WHEN READY </script>
所属频道:
页面背景特效
/
更新时间:2010-05-23
[收藏]
[报错]
[返回列表]
评论加载中....
相关
页面背景特效
:
推拉门式样的菜单(鼠标移上去即可,无需点击)
页面载入的动画效果的源代码一例
自动弹出的导航窗
WEB对话框 可做网站登录协议用
左右幕布
在网页中添加上上下滚动的文字
弹出提示的效果
字符变色
一个很漂亮的转入别的页面时等待页
页面右下角弹类似QQ或MSN的消息提示
主题变色
舞台照射
页面背景特效Rss订阅
特效代码搜索
页面背景特效推荐
CSS给网页上的评论文本框加上提醒功能背景图片
CSS滤镜实现网页背景图片渐变
在一定时间内打开一个新的窗口
一个滚动的公告栏
WEB对话框 可做网站登录协议用
打开一个窗口在一定的时间内自动关闭
点击鼠标在网页上生成气泡
CSS控制背景透明而内容不透明的方法
网页背景的所有安全色展示
js滑动图片菜单
猜你也喜欢看这些
JavaScript常规性表单判断实例
CSS美化的漂亮分页按钮
将文本框变为只读,禁止输入字符
JavaScript 获取地址栏URL参数值
自动将文本框的值复制到另一个文本框
点击网页上的按钮就可以实现自动向下或向下滚屏
让文本框只能输入中文的方法及代码
让输入框得到焦点并选中变色的效果
禁止自动完成
图片+JavaScript+CSS打造漂亮的select下拉选择框
相关链接:
复制本页链接
|
搜索页面载入时的进度条效果的实现
特效说明:
页面背景模板
-
页面载入时的进度条效果的实现
。
闂佽 鍋撻柟顖滃椤ワ拷&闂佸憡甯掑Λ鏃堟閿燂拷
QQ缂備礁鏈钘壩涢敓锟�
闂佸搫鍊绘晶妤€顫濋纰卞殫妞ゆ梻鍘х憴锟�
闂佺厧鐏氬畷姗€顢欓崱妤婂殫妞ゆ梻鍘х憴锟�
婵炲瓨绮忓銊バф径宀€纾鹃柨鐕傛嫹
閻庢鍠掗崑鎾荤叓閸パ冩殶缂傚稄鎷�
闂佽皫鍕姢閻庤濞婇獮鏍р堪閸℃﹩妫�
婵犮垼娉涚粔鎾春濡ゅ啰纾鹃柟瀛樼箖缁诧拷
闂佸搫娲﹀ḿ娆撍囬敓锟�...