Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   DHTML/JS/CSS (http://www.flasher.ru/forum/forumdisplay.php?f=24)
-   -   ссылка на Popup и курсор (http://www.flasher.ru/forum/showthread.php?t=59948)

Glook 29.06.2004 03:08

ссылка на Popup и курсор
 
А в этом скрипте 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,')"
====================
при наведении курсора на картинку он не меняется, пользователь может и не догадаться, что там есть увеличенный вариант.
Как сделать чтоб курсор менялся как при наведении на ссылку.

kompadre 29.06.2004 05:07

onClick="dow('pics/twist_big.jpg','Twist','Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbars=0, Resizable=1, Copyhistory=0,')" href="#"

ninja_127 29.06.2004 11:23

еще можно собственный курсор через css прописать

Илья К 29.06.2004 13:17

<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,')">

Accaccin 03.07.2004 13:31

а можно ли сделать так, чтоб воабще убрать курсор??
просто я хочу чтоб было только перекрестье!
<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>

Илья К 03.07.2004 17:34

Цитата:

Оригинал написал(а) Accaccin
а можно ли сделать так, чтоб воабще убрать курсор??

Да. Нужно прорисовать свой курсор.
http://www.flasher.ru/forum/showthre...F0%F1%EE%F0%2A
Цитата:

Оригинал написал(а) Accaccin
просто я хочу чтоб было только перекрестье!
Что значит перекрестье?

Accaccin 03.07.2004 17:57

ну Курсор мыши в перекрестьи!

но что то я не нашёл там, как сделать невидимый курсор! подскажи тэг плз!

Илья К 03.07.2004 19:30

Цитата:

Оригинал написал(а) Accaccin
ну Курсор мыши в перекрестьи!
Все равно не понимаю. Имеешь в виду вид курсора?
Цитата:

Оригинал написал(а) Accaccin
но что то я не нашёл там, как сделать невидимый курсор! подскажи тэг плз!
1.Рисуешь прозрачную картинку.
2.Сохраняешь ее как иконку (*.ico).
3.<img src="myImage.jpg" style="cursor: url(myCursorImage.ico);">

Только вот что. ГИФы и ПНГшки знаю, что такое прозачность, я ЖПГи -- нет. Интересно, а иконки? Раньше об этом не подумал. Но так или иначе -- пробуй. И, пожалуйста, отпиши потом.

kompadre 04.07.2004 02:11

Иконки это те-же бмп.
Не знают они канала альфа.

Илья К 04.07.2004 02:18

Жаль. Очень жаль.
Ну, что ж. Тогда я пас.:(


Часовой пояс GMT +4, время: 11:10.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.