图标鼠标经过图片变色代码实例(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

咖啡主机22元/月起,美国洛杉矶弹性轻量云主机仅13元/月起,高防云20G防御仅18元/月

咖啡主机怎么样?咖啡主机是一家国人主机销售商,成立于2016年8月,之前云服务器网已经多次分享过他家的云服务器产品了,商家主要销售香港、洛杉矶等地的VPS产品,Cera机房 三网直连去程 回程CUVIP优化 本产品并非原生地区本土IP,线路方面都有CN2直连国内,机器比较稳定。咖啡主机目前推出美国洛杉矶弹性轻量云主机仅13元/月起,高防云20G防御仅18元/月;香港弹性云服务器,香港HKBN CN...

亚洲云Asiayu,成都云服务器 4核4G 30M 120元一月

点击进入亚云官方网站(www.asiayun.com)公司名:上海玥悠悠云计算有限公司成都铂金宿主机IO测试图亚洲云Asiayun怎么样?亚洲云Asiayun好不好?亚云由亚云团队运营,拥有ICP/ISP/IDC/CDN等资质,亚云团队成立于2018年,经过多次品牌升级。主要销售主VPS服务器,提供云服务器和物理服务器,机房有成都、美国CERA、中国香港安畅和电信,香港提供CN2 GIA线路,CE...

GigsGigsCloud(年付26美元)国际线路美国VPS主机

已经有一段时间没有听到Gigsgigscloud服务商的信息,这不今天看到商家有新增一款国际版线路的美国VPS主机,年付也是比较便宜的只需要26美元。线路上是接入Cogentco、NTT、AN2YIX以及其他亚洲Peering。这款方案的VPS主机默认的配置是1Gbps带宽,比较神奇的需要等待手工人工开通激活,不是立即开通的。我们看看这款服务器在哪里选择看到套餐。内存CPUSSD流量价格购买地址1...

鼠标图片为你推荐
Testto支持ipad支持ipad支持ipad三星iphoneipad如何上网ipad如何允许app使用网络ipad连不上wifi苹果ipad突然连不上网了,是怎么回事?网络是好的,手机能上网。ipad上网ipad上网速度很慢怎么回事?win7telnet怎样在win7下打开telnet 命令firefoxflash插件火狐安装不了FLASH为什么?下载完后明明安装完成,火狐却仍然提示“缺少插件”
猫咪av永久最新域名 欧洲欧洲vps vps代购 最新代理服务器地址 什么是二级域名 ipage winhost godaddy支付宝 轻博 免费活动 河南移动网 100mbps 33456 卡巴斯基是免费的吗 丽萨 下载速度测试 西安主机 中国linux 重庆联通服务器托管 学生机 更多