Мышиный указатель
От: Аноним  
Дата: 10.01.03 11:34
Оценка:
Как поменять мышиный указатель в яваскрипте?
Re: Мышиный указатель
От: space® Россия  
Дата: 10.01.03 14:36
Оценка:
А>Как поменять мышиный указатель в яваскрипте?

Курсор можно задать с помощью CSS. Следующий пример задает
указать в виде руки при наведении курсора на линк:


   <a style="cursor:hand" href="javascript:alert('test')">test</a>
Re: Мышиный указатель
От: Adward Россия http://www.sprut.ru
Дата: 10.01.03 15:34
Оценка:
Здравствуйте, Аноним, Вы писали:

А>Как поменять мышиный указатель в яваскрипте?


MSDN:

Description

Sets or retrieves the the type of cursor to display for the mouse pointer.

Syntax


object.style.cursor[ = cursor]



Remarks

The following types are defined:

auto Browser determines the cursor to display based on the current context.
crosshair Simple cross hair.
default Platform-dependent default cursor (usually an arrow).
hand Hand.
help Arrow with question mark indicating help.
move Crossed arrows indicating something is to be moved.
*-resize Arrow indicating edge is to be moved (* may be n, ne, nw, s, se, sw, e, or w).
text Editable text (usually an I-bar).
wait Hourglass or watch indicating that the program is busy and the user should wait.


This property has read/write permission.

------------------------------
тоесть пишешь например


document.body.style.cursor = "crosshair"


и курсор будет весьма своеобразный (в IE4+)
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.