• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

curser ändern

londi88

Mitglied
hallo
ich möchte, dass ich auf meiner website einen eigenen curser habe, jedoch weiss ich nicht wie?! immoment hat chip-forum einen windows curser! genau so will ich es auch! :D
 
Hallo,

dazu benötigt du Javascript.

Ein Beispiel:

HTML

HTML:
<div id="test-area">      Move mouse over this area. </div> <div id="mycursor"></div>


CSS

HTML:
#test-area {      height: 200px;      border: 3px dashed #CCCCCC;      background: #FFFFFF;      padding: 20px;      cursor: url(./blank.cur), none; } #mycursor {      cursor: none;      width: 97px;      height: 137px;      background: url("/article-sources/images/pointer-cursor.gif") no-repeat left top;      position: absolute;      display: none;      top: 0;      left: 0;      z-index: 10000; }


Javascript (muss in den Head)

Code:
<script type="text/javascript">      $(document).ready(function(){           $('#test-area').mouseout(function(){                $('#mycursor').hide();                return >false;           });           $('#test-area').mouseenter(function(){                $('#mycursor').show();                return >false;           });           $('#test-area').mousemove(function(e){                $('#mycursor').css('left', e.clientX - 20).css('top', e.clientY + 7);           }); }); </script>


DEMO
JavaScript Demos - Custom Cursors Demo

QUELLE
How to Create Custom Cursors without .cur File — ajaxBlender.com


Grüße
 
vielen dank für die vielen antworten! ;-)

aber irgendwie bin ich jetzt ein bisschen verwirrt!
was soll ich jetzt am besten tun?
 
Zurück
Oben