更换鼠标的方法



<style>body{cursor: url("鼠标1"), url("鼠标1"), auto;}</style>


如果你要你更换的鼠标在指向 link 的时候出现,你可以选择在 <head> 之后 paste 这个 code:


<style>A:hover{cursor: url("鼠标2"), url("鼠标2"), auto;}</style>


红色的字体换成你找到的鼠标的 URL。注意:鼠标图必需是 gif, jpg 或 ani 类型。
你也可以把这两个 code combine 起来一起用,也就是说,你在 paste 了第一个 code 之后,把第二个 code 继续 paste 在第一个 code 的后面,例子:


<style>body{cursor: url("鼠标1"), url("鼠标1"), auto;}</style><style>A:hover{cursor: url("鼠标2"), url("鼠标2"), auto;}</style>


这样的话,你的部落格就会同时有2个鼠标,一个是平时看到的,另一个只有在把鼠标指向 link 的时候才会看到。


例子:



<style>body{cursor: url("http://i1099.photobucket.com/albums/g399/duleidulei/th_heartr.gif"), url("http://i1099.photobucket.com/albums/g399/duleidulei/th_heartr.gif"), auto;}</style>







Comments