爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
可移动、可关闭、可导航的显示层
可移动、可关闭、可导航的显示层
日期:2014-05-18 浏览次数:20287 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
有什么问题请到<a href='/bbs/index.asp?boardid=2'>论坛</a>中发表<br> <!-- 把如下代码加入<body>区域中 --> <!-- web http://www.aiyiweb.com --> <!-- bbs http://www.aiyiweb.com/bbs--> <html> <head> <title>爱易网WEB开发特效代码->>可移动、可关闭、可导航的显示层</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body bgcolor=#FFFFFF > <style> <!-- #postit{ position:absolute; width:250; padding:5px; background-color:lightyellow; border:1px solid black; visibility:hidden; z-index:100; cursor:hand; } --> </style> <div id="postit" style="left:150px;top:150px"> <div align="right"><b><a href="javascript:closeit()">[关闭]</a></b></div> <b>Webjx.com:</b><br> <p><font size="2" face="Arial"><a href="http://www.aiyiweb.com" target="_new">专业爱易网WEB开发站经典实例、教程库<br> </a>汇集最多网页技巧\教程\程序\素材\网页特效的专业网站!</font></p> </div> <script> var once_per_browser=0 var ns4=document.layers var ie4=document.all var ns6=document.getElementById&&!document.all if (ns4) crossobj=document.layers.postit else if (ie4||ns6) crossobj=ns6? document.getElementById("postit") : document.all.postit function closeit(){ if (ie4||ns6) crossobj.style.visibility="hidden" else if (ns4) crossobj.visibility="hide" } function get_cookie4(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie4.length > 0) { offset = document.cookie4.indexOf(search) if (offset != -1) { // if cookie4 exists offset += search.length // set index of beginning of value end = document.cookie4.indexOf(";", offset); // set index of end of cookie4 value if (end == -1) end = document.cookie4.length; returnvalue=unescape(document.cookie4.substring(offset, end)) } } return returnvalue; } function showornot(){ if (get_cookie4('postdisplay')==''){ showit() document.cookie4="postdisplay=yes" } } function showit(){ if (ie4||ns6) crossobj.style.visibility="visible" else if (ns4) crossobj.visibility="show" } if (once_per_browser) showornot() else showit() </script> <script language="JavaScript1.2"> //drag drop function for ie4+ and NS6//// ///////////////////////////////// function drag_drop(e){ if (ie4&&dragapproved){ crossobj.style.left=tempx+event.clientX-offsetx crossobj.style.top=tempy+event.clientY-offsety return false } else if (ns6&&dragapproved){ crossobj.style.left=tempx+e.clientX-offsetx crossobj.style.top=tempy+e.clientY-offsety return false } } function initializedrag(e){ if (ie4&&event.srcElement.id=="postit"||ns6&&e.target.id=="postit"){ offsetx=ie4? event.clientX : e.clientX offsety=ie4? event.clientY : e.clientY tempx=parseInt(crossobj.style.left) tempy=parseInt(crossobj.style.top) dragapproved=true document.onmousemove=drag_drop } } document.onmousedown=initializedrag document.onmouseup=new Function("dragapproved=false") </script> <!----------------------------------> </body> </html> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:选择相应的数字可以实现页面转跳的导航
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
搜房网遭遇做空 利益保送成“猎杀”焦点
频繁自杀 折射媒体变革中的媒体人迷茫与压力并存
迅雷再次在美提交IPO申请
中移动推动感地带3G网聊卡 火拼微信沃卡
虚拟运营商温度有多高?降温OR升温内外有别
都是300元内 乐视盒子与小米盒子对比体验
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元
看,网络文学今日之繁盛;忆,纯真去哪了?
腾讯为何在与阿里百度的收购比赛中当看客?
推荐阅读
更多>
杨元庆去年总薪酬1.33亿元
618首日看京东阿里不同策略,鹿死谁手?
途牛旅游网今晚挂牌纳斯达克 融资1亿美元
iOS7拖累iPad 5、iPad mini2发布 传十月份推出
苹果联合创始人炮轰鲍尔默“一直都在吃老本”
虚拟运营商流量不清零吸引用户 盈利待明
评论:马云的成功建立在什么基础上很值得怀疑
苹果20年以来首次发债 融资170亿美元
刘强东向总理建言:打击有组织有规模的售假商家
银河证券王锦炎:金融业如何使用大数据
估值增长9.8% 阿里IPO前市值达2450亿美元
Android版WhatsApp曝漏洞:聊天记录可被窃取
第二梯队也PK:当1号店“遇上”京东手机节
独立工具APP:为亿级用户的商业化而愁
湘鄂情剥离餐饮业务进军大数据的底气在哪里?
电信资费新政:三巨头压力大 短期降价仍有争议
优酷土豆兼并一年:依然处于烧钱形状
虚拟运营商温度有多高?降温OR升温内外有别
HTC以品牌营销突围 专家建议改变经营思路
2019双12阿里云老用户怎么参加拼团活动 老用户拼团方法