爱易网
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 浏览次数:20168 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <head> <title>Windows Longhorn Glass Look</title> <style> body { background: #667788; font-family: tahoma; font-size: 16px; padding: 0; margin: 0; overflow: hidden; background:#669900; } h1 { font-size: 140%; } #window1 { top: 50px; left: 50px; width: 400px; height: 300px; } #window2 { top: 270px; left: 250px; width: 400px; height: 300px; } #window3 { top: 150px; left: 400px; width: 300px; height: 300px; } #window4 { top: 200px; right: 100px; width: 400px; height: 350px; } #window1 .border { border-color: #F8E0C0; } #window1 .glass { background: #F8E0C0; } #window2 .border { border-color: #E0F8C0; } #window2 .glass { background: #E0F8C0; } #window3 .border { border-color: #E0F0F8; } #window3 .glass { background: #E0F0F8; } .window { position: absolute; } .shadow { position: absolute; top: -2px; left: -2px; width: 100%; height: 100%; background-color: #4F7500; } .glass { position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #4F7500; } .border { position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; border: 1px solid #F0F0F0; padding: 80px 10px 10p 10px; } .content { height: 100%; width: 100%; overflow: auto; background: white; padding: 0.5em; cursor: default; filter: alpha(opacity=60); } .title { color: white; font-weight: bold; font-size: 20px; position: absolute; top: 0px; left: 0px; width: 100%; height: 80px; padding: 25px 20px; cursor: move; } .current .shadow { top: 1px; left: 1px; } .current .content { filter: none; } .current .title { z-index: 1; } #menu { position: absolute; border: 1px solid rgb(182, 184, 196); padding: 1px 2px; background: #f4f4f5; font-family: trebuchet ms; font-size: 9pt; } #menu a { display: block; width: 200px; color: black; text-decoration: none; height: 18px; cursor: default; } #menu a i { display: block; float: left; position:relative; height: 14px; width: 26px; background: #ececed; border-left: 1px solid #ffffff; border-right: 1px solid #e0e0e1; margin-left: -2px; margin-right: -3px; padding: 2px 0px; } #menu a span { display: block; position:relative; height: 14px; background: #f4f4f5; border-left: 1px solid #ffffff; border-right: 1px solid #ffffff; padding: 2px 3px; margin-right: -2px; } .current #menu a:hover { border: 1px solid; border-color: rgb(158, 215, 240) #ffffff; padding: 0px; } .current #menu a:hover i { border: 1px solid; border-color: #ececed #e0e0e1 #d8e0f0 rgb(158, 215, 240); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffe2eaf2, endColorstr=#ffd8e0f0); padding: 0px; width: 25px; } .current #menu a:hover span { border: 1px solid; border-color: #f4f4f5 rgb(158, 215, 240) #e8f2f8 #e8f2f8; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffeef2f8, endColorstr=#ffddedf8); padding: 0px 3px; } </style> <script> var current = null; var dragging = false; var startedDragging = false; function setCurrent(w) { if (w != current) { // unset old current if (current) current.className = 'window'; // set current current = w; current.className = 'current window'; // put current on top document.getElementById("windows").appendChild(current); } // init drag var offsetX = event.x - parseInt(w.currentStyle.left); var offsetY = event.y - parseInt(w.currentStyle.top); if (offsetY < 80) { dragging = true; dragEffect = function() { w.style.pixelLeft = event.x - offsetX; w.style.pixelTop = event.y - offsetY; } } else { var width = parseInt(w.currentStyle.width); var resizeX = offsetX > width - 10; var heigh
上一篇:狡猾的按钮特效
下一篇:分类导航代码
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
支付宝被曝严重破绽 隐私平安再受质疑
三星起诉LG在冰箱广告中玷污其企业笼统
墨迹天气:产品创新以攻为守方能对抗巨头
广东移动董事长徐龙受调查 圈内对其褒贬不一
Twitter收购印度手机营销公司ZipDial
苹果大中华区业绩回暖 中移动贡献或低于预期
搜狐与奇虎360或结盟对抗BAT
湖南卫视扶持芒果TV杀入媒体:版权独播不分销
广电总局回应美剧下架:不是所有信息可公开
推荐阅读
更多>
IT企业人才争夺战打响:员工待遇水涨船高
二维码支付大战的号角注定已经吹响,尚需标准发放
富士康人事故骚动方寸 不惜血本下注电商
奇虎360证明了“惟平台化才能生存”是谬论,中国互联网不能少了周鸿祎
百度吴恩达:图像和音视频搜索是人工智能新方向
Skype周年:与微软联姻到底有没有未来?
苹果已经允许开发者提交64位应用程序
“扫黄打非”下9158否认遭整顿
运营商补贴减少 国内通信业拐点逼近
微博启动自媒体计划 粉丝+收入双激励是亮点
戴尔正告继续上市存风险 称黑石伊坎方案有缺乏
Docker Desktop 4.11 发布:支持虚拟桌面、Mac 权限更改和新扩展
聚美向左,唯品向右,怎能耐得住高跟和红唇的诱惑!
国美苏宁线上首度正面PK 京东列席4月电商战
广东移动董事长徐龙受调查 圈内对其褒贬不一
NEC拟出售移动效劳子公司NEC Mobile
火狐手机发展前路:或被运营商绑架
柳传志马云陷舆论漩涡:请不要辜负这个时代
顺丰O2O便利店将正式启动:涉及金融服务
刘强东向总理建言:打击有组织有规模的售假商家