2012-09-09 3 views

답변

1

구현하고 싶다면 Tom이 제안한대로 jQuery를 사용할 수 있습니다.

이에 대한 코드는 다음과 같습니다

`

$(document).ready(function() { 

    $(document).mousemove(function(e) { 

      //create img elements having pointer.png in their src 
      pointer = $('<img>').attr({'src':'pointer.png'}); 

      //and append them to document 
      $(document.body).append(pointer); 

      //show them at mouse position & fade out slowly 
      pointer.css({ 
        'position':'absolute', 
        top: e.pageY +2 , //offsets 
        left: e.pageX +2 //offsets 
       }).fadeOut(1500); 
}); 
}); 

`

+0

도움을 주셔서 대단히 감사드립니다. 이 단어를 WordPress의 색인 파일 상단이나 별도의 텍스트 파일에 삽입합니까? – user1426583