图标鼠标经过图片变色代码实例(Mouse color change through the picture code examples)

鼠标图片  时间:2021-04-19  阅读:()

鼠标经过图片变色代码实例Mouse color change through thepicture code examples

Two ways to change color of mouse through picture:

First kind:

<script language= "JavaScript" >

<! --

Function makevisible (cur, which) {

If (which==0)

Cur.filters.alpha.opacity=70

Else

Cur.filters.alpha.opacity=100

}

/-->

</script>

<img src=, /images/logo.gif, style=, filter:alpha

(opacity=100) , onmouseover=, makevisible (this, 0) ,onmouseout=, makevi sible (this, 1) >

Second kinds:

<SCR IPT LANGUAGE= "JavaSc r ip t" >

< - Begin

If ( (navigator.appName. indexOf ('Microsoft' ) , +1)) {Document.write ('<style, type=, text/css) , .Opacity1,

{filter:alpha (opacity=50) , } , .Opacity2, {f ilter:alpha(opacity=100) , } , </style>' ) }

If ( (navigator.appName. indexOf ('Netscape' ) , +1) ) {

Document.write ('<style, type=, text/css, >.Opacity1,{-moz-opacity:0. 5} , .Opacity2, {-moz-opacity: 1} , </style>' ) }{else

Document.write (' ' ) ; }

/ / End /

</script>

<img, src=, /images/logo.gif, width=, 109, height=, 73,border=, 0, class=, opacity2, onmouseover=,this.className='opacity1' "

Onmouseout= "thi s.className='opacity2' " >

A little while ago to see an article "using CSS3 imitationwindow7 start menu", the dynamic effect only using the CSS3implementation of the Windows 7 start menu in the text, has longbeen attracted to WPF/Silverlight mountain scenery, not toother mountains are also fun. Then, a whim, also try to do aWindows 7 desktop effects, first see a few screenshots.Desktop program, mouse, Hover effect:

Taskbar program, mouse Hover effect:

Start menu effect:

Desktop Icon

The desktop background and program icons are structured asfollows:

<div id= "win" >

<ul id= "app" >

<li>

<a href= "#" >

<img src= "images/computer.png" / > ><br

Computer</a>

</li>

<li>

<a href= "#" >

<img src= "images/recycle.png" / > ><brRecycle Bin</a>

</li>

<li>

<a href= "#" >

<img src= "images/network.png" / > ><brNetwork</a>

</li>

</ul>

</div>

Add background pictures to desktop <div>:#win

{

Background-image: URL (images/win7bg. jpg) ;

Background-posit ion: center;

Width: 880px;

Height: 550px;

Border: #ffffff 1px solid;

}

To add mouse Hover dynamic effects to desktop application icons,text-shadow is used to set the application text shading effect,and -webkit-border-radius to set the border fillet:

#app

{

Float: left;

Text-align: center;

Margin: -15px 00 -30px;

List-style: none;

}

#app a

{

Text-decoration: none;

Border: solid 1px transparent;

Display: block;

Padding: 3px;

Margin: 20px 000;

Color: #ffffff;

Text-shadow: , 0.2em, 0. 1em, 0.3em, #000000;}

#app a:hover

{

Border: solid 1px #bbd6ec;

-webkit-border-radius: 3px;

Box-shadow: inset 00 1px #fff;

-webkit-box-shadow: inset 00 1px #fff;

Background-color: #5caae8;

}

Taskbar icon

Here is the HTML code for the taskbar structure:<div id= "taskbar" >

<a href= "#" id= "start" ></a>

<a href= "#" style= "left: 60px" >

<img src= "images/ie.png" / >

</a>

<a href= "#" style= "left: 120px" >

<img src= "images/library.png" / >

</a>

<a href= "#" style= "left: 180px" >

<img src= "images/mp.png" / >

</a>

< a href = "#" style = "left: 240px" >

< img src = "images / live.png" / >

< / a >

< a href = "#" style = "left: 300px" >

< img src = "images / outlook.png" / >

< / a >

< div id = "desktop" > < / div >

< / div >

首先来看看开始菜单图标如何设置,通过hover操作变换s t ar t.b mp显示位置,达到图标发亮效果.

# taskbar # s tart

{position: absolute;text - align: center;integral part: 57px;height: 46px;background: url (images / start.bmp) 0 - 6px well - repeat;

}

# taskbar # start: hover

{text - decoration: none;background - pos ition: 0 - 114px;

}

任务栏背景通过taskbarbg.png实现,其他图标hover效果通过改变taskbarhover.png图片位置实现图标下方高亮效果.

#广州中维财税http: / / 101. 1. 28. 14 / taskbar

{height: 42px;integral part: 880px;margin: - 42px 0 0 1px;background: url (images / taskbarbg.png) well - repeat;}

# taskbar img

IMIDC彩虹数据:日本站群多ip服务器促销;30Mbps带宽直连不限流量,$88/月

imidc怎么样?imidc彩虹数据或彩虹网络现在促销旗下日本多IP站群独立服务器,原价159美元的机器现在只需要88美元,而且给13个独立IPv4,30Mbps直连带宽,不限制月流量!IMIDC又名为彩虹数据,rainbow cloud,香港本土运营商,全线产品都是商家自营的,自有IP网络资源等,提供的产品包括VPS主机、独立服务器、站群独立服务器等,数据中心区域包括香港、日本、台湾、美国和南非...

提速啦(24元/月)河南BGP云服务器活动 买一年送一年4核 4G 5M

提速啦的来历提速啦是 网站 本着“良心 便宜 稳定”的初衷 为小白用户避免被坑 由赣州王成璟网络科技有限公司旗下赣州提速啦网络科技有限公司运营 投资1000万人民币 在美国Cera 香港CTG 香港Cera 国内 杭州 宿迁 浙江 赣州 南昌 大连 辽宁 扬州 等地区建立数据中心 正规持有IDC ISP CDN 云牌照 公司。公司购买产品支持3天内退款 超过3天步退款政策。提速啦的市场定位提速啦主...

2021年国内/国外便宜VPS主机/云服务器商家推荐整理

2021年各大云服务商竞争尤为激烈,因为云服务商家的竞争我们可以选择更加便宜的VPS或云服务器,这样成本更低,选择空间更大。但是,如果我们是建站用途或者是稳定项目的,不要太过于追求便宜VPS或便宜云服务器,更需要追求稳定和服务。不同的商家有不同的特点,而且任何商家和线路不可能一直稳定,我们需要做的就是定期观察和数据定期备份。下面,请跟云服务器网(yuntue.com)小编来看一下2021年国内/国...

鼠标图片为你推荐
Vater壶腹癌是壶腹周围恶性肿瘤中第二常见的疾三星iphonecontributionsgraph支持ipad支持ipadcolumnios5win7关闭445端口如何快速关闭445端口重庆电信网速测试电信100M下载速度多少M,为什么我家里电信100M下载速度最快5M美妙,是不是严重缩水重庆电信宽带测速重庆电信光纤宽带网络,内外网络和电脑等设备都没发生变化的情况下,办理了从20M提速到100M业务。联通iphone4联通iphone4合约
域名备案收费吗 hkbn softbank官网 360抢票助手 qq数据库 老左正传 赞助 百度云1t 流媒体加速 怎么建立邮箱 路由跟踪 免费asp空间 net空间 工信部网站备案查询 godaddyssl 时间服务器 reboot nic ubuntu安装教程 日本小学生 更多