![]() |
|
||||||||||
|
|||||
|
А в этом скрипте popup окна:
=================== script language="JavaScript" type="text/JScript"> function dow(theURL,winName,features) { window.open(theURL,winName,features); } </script> onClick="dow('pics/twist_big.jpg','Twist','Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbars=0, Resizable=1, Copyhistory=0,')" ==================== при наведении курсора на картинку он не меняется, пользователь может и не догадаться, что там есть увеличенный вариант. Как сделать чтоб курсор менялся как при наведении на ссылку.
__________________
I`ts good to be bad. |
|
|||||
|
onClick="dow('pics/twist_big.jpg','Twist','Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbars=0, Resizable=1, Copyhistory=0,')" href="#"
|
|
|||||
|
еще можно собственный курсор через css прописать
__________________
Сон разума рождает чудовищ |
|
|||||
|
Регистрация: Dec 2002
Адрес: Berlin
Сообщений: 444
|
<img style="cursor: hand;" onClick="dow('pics/twist_big.jpg','Twist','Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbars=0, Resizable=1, Copyhistory=0,')">
|
|
|||||
|
а можно ли сделать так, чтоб воабще убрать курсор??
просто я хочу чтоб было только перекрестье! <style> <!-- #leftright, #topdown{ position:absolute; left:0; top:0; width:1px; height:1px; layer-background-color:gray; background-color:gray; z-index:100; font-size:1px; } --> </style> <script> var isNS4=document.layers?true:false; var isIE=document.all?true:false; var isIE6=isIE&&document.getElementById?true:false; var isIE4=isIE&&!isIE6?true:false; var isNS6=!isIE6&&document.getElementById?true:false; var isNS=isNS4||isNS6; </script> </head> <body> Здесь содержание страницы <div id="leftright"></div> <div id="topdown"></div> <script> if (isIE4) { leftright.style.width=document.body.clientWidth-2; topdown.style.height=document.body.clientHeight-2; } else if (isNS4) { document.leftright.clip.width=window.innerWidth document.leftright.clip.height=1 document.topdown.clip.width=1 document.topdown.clip.height=window.innerHeight } else if(isIE6) { document.getElementById("leftright").style.width=document.body.clientWidth-2; document.getElementById("topdown").style.height=document.body.clientHeight-2; } else if(isNS6) { document.getElementById("leftright").style.width=window.innerWidth-2; document.getElementById("topdown").style.height=window.innerHeight-2; } function followMouse_IE() { leftright.style.pixelTop=document.body.scrollTop+event.clientY+1 topdown.style.pixelTop=document.body.scrollTop if (event.clientX<document.body.clientWidth-2) topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1 else topdown.style.pixelLeft=document.body.clientWidth-2 } function followMouse_NS4(e) { document.leftright.top=e.y+1 document.topdown.top=pageYOffset document.topdown.left=e.x+1 } var NO=false; function followMouse_NS6(e) { x=e.pageX; y=e.pageY; document.getElementById("leftright").style.top=1+y; document.getElementById("topdown").style.top=pageYOffset; document.getElementById("topdown").style.left=1+x; } function initCrossHairs() { if(isNS4) { document.captureEvents(Event.MOUSEMOVE); document.onmousemove=followMouse_NS4; } else if(isNS6) document.addEventListener("mousemove", followMouse_NS6, true); else if(isIE) document.onmousemove=followMouse_IE; } initCrossHairs(); </script>
__________________
;) KinG (; |
|
|||||
|
Регистрация: Dec 2002
Адрес: Berlin
Сообщений: 444
|
Цитата:
http://www.flasher.ru/forum/showthre...F0%F1%EE%F0%2A Цитата:
|
|
|||||
|
ну Курсор мыши в перекрестьи!
но что то я не нашёл там, как сделать невидимый курсор! подскажи тэг плз!
__________________
;) KinG (; |
|
|||||
|
Регистрация: Dec 2002
Адрес: Berlin
Сообщений: 444
|
Цитата:
Цитата:
2.Сохраняешь ее как иконку (*.ico). 3.<img src="myImage.jpg" style="cursor: url(myCursorImage.ico);"> Только вот что. ГИФы и ПНГшки знаю, что такое прозачность, я ЖПГи -- нет. Интересно, а иконки? Раньше об этом не подумал. Но так или иначе -- пробуй. И, пожалуйста, отпиши потом. |
|
|||||
|
Иконки это те-же бмп.
Не знают они канала альфа. |
|
|||||
|
Регистрация: Dec 2002
Адрес: Berlin
Сообщений: 444
|
Жаль. Очень жаль.
Ну, что ж. Тогда я пас. ![]() |
![]() |
Часовой пояс GMT +4, время: 06:57. |
|
|
« Предыдущая тема | Следующая тема » |
|
|