View Single Post
  #2  
Old 08-01-2011, 10:52 AM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 23,721
Inf3rnal is on a distinguished road
Default

All you would need to to is add the following in the body in your style.css is:

cursor: url("URL TO CURSOR"), auto;
*Note .png cursor images works best has issues in IE (Go figure.)

Example:
body {
background:#eee;
color:#333;
font-family:arial, tahoma, sans-serif;
font-size:10px;
cursor: url("img/flamecannonofdoom.png"), auto;
}

Issues using custom cursors:

Use an image as cursor. This value has a few problems:

1. IE expects a .cur file. IE won't use .png, .gif, .jpegs, etc. Only .cur
2. Firefox requires a second, non-URL value; like cursor: url(pix/cursor_ppk.gif), auto.
3. The size of the image must be 32x32 pixels or lower. This is a (Windows) OS restriction; not a browser restriction.

.gif cursor images in Google Chrome:
* The cursor image shows up garbled in Chrome."

Make sure to read this as well:
http://www.quirksmode.org/css/cursor.html

OR,

You can use Javascript to do that:

http://www.ajaxblender.com/howto-cre...e-cursors.html

Last edited by Inf3rnal; 08-01-2011 at 11:23 AM.
Reply With Quote