0
我目前使用我的wordpress網站的插件(http://wordpress.org/extend/plugins/cursor-trail/)鼠標光標 - 爲WordPress站點
不過,我或許會想,而使用另一種方法爲光標線索,所以它看起來像光標步道上這個網站(除了貓鼬):
我目前使用我的wordpress網站的插件(http://wordpress.org/extend/plugins/cursor-trail/)鼠標光標 - 爲WordPress站點
不過,我或許會想,而使用另一種方法爲光標線索,所以它看起來像光標步道上這個網站(除了貓鼬):
如果你想實現這一點,你可以使用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);
});
});
`
非常感謝你的幫助。我會在wordpress的索引文件的頂部插入這個,還是在一個單獨的文本文件中? – user1426583
你沒有問一個問題,你剛纔說你想要的。 – avexdesigns