Выкладываем картинку курсора и его код. Все коды ставить html-верх.
Курсоры
Сообщений 1 страница 15 из 15
Поделиться22008-12-12 13:15:50
<script type="text/javascript">
var trailimage=["http://strecoza.net/cursors/pixel/corazulc.gif", 32, 32] //image path, plus width and height
var offsetfrommouse=[10,-20] //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset
var displayduration=0 //duration in seconds image should remain visible. 0 for always.
if (document.getElementById || document.all)
document.write('<div id="trailimageid" style="position:absolute;visibility:visible;left:0px;top:0px;width:1px;height:1px"><img src="'+trailimage[0]+'" border="0" width="'+trailimage[1]+'px" height="'+trailimage[2]+'px"></div>')
function gettrailobj(){
if (document.getElementById)
return document.getElementById("trailimageid").style
else if (document.all)
return document.all.trailimagid.style
}
function truebody(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function hidetrail(){
gettrailobj().visibility="hidden"
document.onmousemove=""
}
function followmouse(e){
var xcoord=offsetfrommouse[0]
var ycoord=offsetfrommouse[1]
if (typeof e != "undefined"){
xcoord+=e.pageX
ycoord+=e.pageY
}
else if (typeof window.event !="undefined"){
xcoord+=truebody().scrollLeft+event.clientX
ycoord+=truebody().scrollTop+event.clientY
}
var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight)
gettrailobj().display="none"
else
gettrailobj().display=""
gettrailobj().left=xcoord+"px"
gettrailobj().top=ycoord+"px"
}
document.onmousemove=followmouse
d
if (displayduration>0)
setTimeout("hidetrail()", displayduration*1000)
</script>
Поделиться32009-01-08 18:32:12
Белое пёрошко
<STYLE> BODY { cursor:url('http://fantasyflash.ru/cursor/cur/cursor153.cur');}</style>
Красная божья коровка
<STYLE> BODY { cursor:url('http://fantasyflash.ru/cursor/cur/cursor39.ani');}</style>
Поделиться42009-01-08 19:51:47
синенький курсорчик со снежинками внутри, анимированный
BODY { cursor:url('http://fantasyflash.ru/cursor/cur/cursor57.ani');}
Поделиться52009-01-08 19:52:57
<STYLE>
BODY { cursor:url('http://fantasyflash.ru/cursor/cur/cursor4.ani');}</style>
жёлто-оранжевая галочка, анимированная (блестит)
Поделиться92009-03-22 21:28:28
енто как самому курсор сделать:
<style type="text/css"> body { cursor: url('ссылка на картинку'); } </style>
Поделиться102009-04-16 17:09:33
Death-san
а у меня не работает
Поделиться112009-04-16 17:12:42
Корлисса
Там у курсора должно быть какое-то определённое разрешение. Я точно не помню, но кажется ani
Поделиться122009-04-16 17:48:48
Paranoia Doll
ani или cur. а как сделать картинку с этим разрешением?
Поделиться132009-04-16 17:51:50
Корлисса
Вот чего не знаю, того не знаю.
Дам ссылку на сайт с курсорами: http://www.cursors-4u.com/
Поделиться142009-04-26 23:33:01
внизу. Зарание спс.
только если можно то обрезать так чтобы только кулон был.
Отредактировано Ирмик (2009-04-26 23:33:48)
Поделиться152009-04-30 17:03:06
Там у курсора должно быть какое-то определённое разрешение
А как это разрешение сделать?