Forum

Объявление

Форум переехал сюда: lemoness.ru

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Forum » Скрипты » Курсоры


Курсоры

Сообщений 1 страница 15 из 15

1

Выкладываем картинку курсора и его код. Все коды ставить html-верх.

0

2

http://i072.radikal.ru/0812/7b/c9bfabb3e31d.gif

<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>

0

3

Белое пёрошко

Код:
<STYLE>
BODY { cursor:url('http://fantasyflash.ru/cursor/cur/cursor153.cur');}</style>

Красная божья коровка

Код:
<STYLE>
BODY { cursor:url('http://fantasyflash.ru/cursor/cur/cursor39.ani');}</style>

0

4

синенький курсорчик со снежинками внутри, анимированный
BODY { cursor:url('http://fantasyflash.ru/cursor/cur/cursor57.ani');}

0

5

<STYLE>
BODY { cursor:url('http://fantasyflash.ru/cursor/cur/cursor4.ani');}</style>
жёлто-оранжевая галочка, анимированная (блестит)

0

6

http://s47.radikal.ru/i117/0902/69/b4fb6cf6cfc2.gif

Код:
 <style><!--
BODY{
cursor:url("http://tritroichki.narod.ru/cursors/glitter/curgl26.ani");
}
-->
</style>

0

7

http://s42.radikal.ru/i097/0902/cf/0adba844774e.gif

Код:
<style><!--
BODY{
cursor:url("http://tritroichki.narod.ru/cursors/glitter/curgl1.ani");
}
-->
</style>

0

8

http://s40.radikal.ru/i089/0902/e4/ddb8a1b11f08.gif

Код:
<style><!--
BODY{
cursor:url("http://tritroichki.narod.ru/cursors/glitter/curgl18.ani");
}
-->
</style>

0

9

енто как самому курсор сделать:

Код:
<style type="text/css"> body { cursor: url('ссылка на картинку'); } </style>

0

10

Death-san
а у меня не работает :(

0

11

Корлисса
Там у курсора должно быть какое-то определённое разрешение. Я точно не помню, но кажется ani

0

12

Paranoia Doll
ani или cur. а как сделать картинку с этим разрешением?

0

13

Корлисса
Вот чего не знаю, того не знаю.

Дам ссылку на сайт с курсорами: http://www.cursors-4u.com/

0

14

внизу. Зарание спс.
только если можно то обрезать так чтобы только кулон был.

Отредактировано Ирмик (2009-04-26 23:33:48)

0

15

Paranoia Doll написал(а):

Там у курсора должно быть какое-то определённое разрешение

А как это разрешение сделать?

0


Вы здесь » Forum » Скрипты » Курсоры