oppaiライフ 字幕:怎样把个人主页里的光标换成其他样子

来源:百度文库 编辑:高校问答 时间:2024/05/05 06:16:03

代码是:

<STYLE type=text/css>
a:hover {cursor:url('鼠标网址1')}
BODY {cursor:url('鼠标网址2')</STYLE>

将括号里的网址把代码里的换掉就可以了
不要把那两个逗号去除了啊!!
其中,网址二是在首页时出现的鼠标
网址一时在你点击到任何一个链接时出现的鼠标
试试看吧!!拥有你自己的与众不同的鼠标!~~

注意:该代码一定要加在已经建好的面板的后面,否则是不能成功的!!!

鼠标地址: http://hzxshlaq.bokee.com/5074892.html
http://sucai.16789.net/s-helpSit/
http://www.tqts.net/Soft/
http://jiangqixiu.haoblog.com/

在网页中使用自定义的鼠标图标怎么弄??
delphi_media 我这样可以吗?
body {cursor: url("hert.gif");}

我的ie是6.0的。。

请问该怎么弄呢??谢谢
---------------------------------------------------------------

现在网页的设计都讲究整体统一风格,无论是网页的文字、图像,还是浏览器的滚动条都要求颜色和风格一致。但是很多朋友却对网页上的鼠标不能改变样子而感到苦恼,下面我就介绍两种改变网页上鼠标的方法:

一、用CSS(Cascading Style Sheets,层叠样式表)的方法
首先要制作或者寻找一套适合网页风格的鼠标,我使用的鼠标是weste.ani和weste2.ani,在,将两个文件存放到的网站的文件夹ani,然后在你的网页文件的</head></head>之间加上代码:
<style type="text/css">
<!--
body {CURSOR: url(’ani/weste.ani’)}
A {CURSOR: url(’ani/weste2.ani’)
-->
</style>
再次浏览网页的时候你会发现,网页的鼠标显示已经改变了。当鼠标悬停在链接上的时候,显示的weste2.ani样子,其他时候显示weste.ani。
原理:其实这种方法利用了CSS2的一个cursor的属性cursor:url (url),鼠标文件可以使用jpg、gif、ani和cur多种文件格式。需要注意的这种方式只能在IE5.5以上浏览器中正常显示。

二、利用第三方控件的方法
这种方法非常简单,只需要讲以下代码加到网页文件的<head></head>之间:
<script language=javascript>var Loaded=false;var Flag=false;</script>
<script src=’http://files.cometsystems.com/javascript/lc2000.js
language=javascript></script>
<script language=javascript>if(Loaded&&Flag)TheCometCursor(’cd_electric’,0,626);</script>
修改后,浏览此网页的时候浏览器会弹出一个“安全设置警告”,点击“是”,系统自动安装控件,鼠标就可以按照你的需要显示了。
那么,如何才能选择你所需要的鼠标样式呢?先登陆网站http://www.cometzone.com,这个网站有14个大类4000多种鼠标,内容十分广泛,鼠标文件制作也很精美,你可以根据需要从类别中选择需要的鼠标,点击相应的鼠标图片就可以预览到不同的效果。
选中鼠标后,点击网页左边导航的“GET CURSOR CODE”链接,转到下一页,再点击“Select Code”按钮,按钮下这个多行文本框里面的内容就是我上面提供的代码,只是代码中TheCometCursor(’cd_electric’,0,626)部分不同,显示的鼠标状态也不同。

---------------------------------------------------------------

<style>
body {cursor: url("hert.cur");}
</style>

auto :标准光标
default :标准箭头
hand :手形光标
wait :等待光标
text :I形光标
vertical-text :水平I形光标
no-drop :不可拖动光标
not-allowed :无效光标
help :?帮助光标
all-scroll :三角方向标
move :移动标
crosshair :十字标
e-resize
n-resize
nw-resize
w-resize
s-resize
se-resize
sw-resize

你是制作网页的时候换还是浏览的时候换?
要是制作的时候需要添加代码以及图片
浏览的时候换控制面版里面有设置

想在网页中引用自定义的光标,光标的格式大多都是*.cur和*.ani两种,前者一般是静态,后者一般是动态的,这样我们就可以在css样式表中加入一个链接就可以了,链接代码如:

BODY{
Cursor:url(Images/cursor.cur);
}

但有些服务器(如:Win2003)不支持动态的ani格式光标,根据个人使用经验,把*.ani改名为*.cur就可以显示支持动态了。

超链接中改变网页的鼠标样式

〓简介〓
想知道如何让鼠标放到超连接上就变成十字行或是什么箭头之类的动动吗?来看看这篇文章吧!

〓正文〓
怎样改变网页中的鼠标样式?
<a href="http://"; style="cursor: auto;">auto</a>
<a href="http://"; style="cursor: crosshair ">crosshair</a>
<a href="http://"; style="cursor: default ">default</a>
<a href="http://"; style="cursor: hand ">hand </a>
<a href="http://"; style="cursor: move ">move</a>
<a href="http://"; style="cursor: e-resize ">e-resize</a>
<a href="http://"; style="cursor: ne-resize ">ne-resize</a>
<a href="http://"; style="cursor: nw-resize">nw-resize</a>
<a href="http://"; style="cursor: n-resize">n-resize</a>
<a href="http://"; style="cursor: se-resize">se-resize</a>
<a href="http://"; style="cursor: sw-resize">sw-resize</a>
<a href="http://"; style="cursor: s-resize">s-resize</a>
<a href="http://"; style="cursor: w-resize">w-resize</a>
<a href="http://"; style="cursor: text">text</a>
<a href="http://"; style="cursor: wait">wait</a>
<a href="http://"; style="cursor: help">help</a>

IE6支持的
<a href="http://"; style="cursor: pointer">pointer</a>
<a href="http://"; style="cursor: progress">progress</a>
<a href="http://"; style="cursor: not-allowed">not-allowed</a>
<a href="http://"; style="cursor: no-drop">no-drop</a>
<a href="http://"; style="cursor: vertical-text">vertical-text</a>
<a href="http://"; style="cursor: all-scroll">all-scroll</a>
<a href="http://"; style="cursor:col-resize">col-resize</a>
<a href="http://"; style="cursor: row-resize">row-resize</a>
<a href="http://"; style="cursor: url(*.cur)">自定义鼠标指针(请替换成相应的文件):*.cur</a>
<a href="http://"; style="cursor: url(*.ani)">自定义鼠标指针(请替换成相应的文件):*.ani</a>

要改变非链接状态下的鼠标指针样式,可以在CSS中加入以下语句:
<style type=text/css>
BODY {
CURSOR: url('http://www.beqstudio.com/beqstudio.cur')}
</style>
现在只支持IE6以后的版本。

--------------------------------
附:CSS鼠标样式大全(修正)

http://www.fego.cn/m_FegoArticle/Detail.aspx?articleid=21714&category=infotech.software&username=ht_bill&portalid=