![]() | |||||||
[CSS] Custom cursors It's surprisingly easy to do custom cursors in CSS. It's all controlled under the property cursor: pointer is a hand (like hovering on a link) - useful for javascript OnClick links when the hand never happens. default is just the original old cursor. crosshair is a + symbol. Not very attractive. Others include: move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help | progress Which are pretty self-explanitory. (North East, north west, etc for the resize icons). So how do you do a custom cursor? put in your div/class/whatever: Code:
let me go through this step by step. Code:
This bring up the custom cursor file from the URL specified. Code:
is a hack for other browsers. Code:
So how to make a .ico file? Simple really. Make a 16x16 (max) file, decorate it or whatever and then save it as .gif (.ico if available). Then rename the .gif to .ico. Then call it in the css file. Enjoy! |
nice tip! Rep added |
No problem :) |
On 6YD I had a cursor problem. I wanted to have an "onClick" in a div but without using a link. To make it look like a link I used this code: Code:
That will bring up the default link cursor. There are also a load of other default cursors (I don't know off the top of my head) but you can use them like that! :) Hope this adds to your informative thread nicely! :) Thanks for the info though, it could come in useful at some point. I remember trying in vain to find out how to do that! :) |
Yep, Here is the list: Default | pointer | Crosshair | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help | progress Thanks for your extra info :) |
| All times are GMT -7. The time now is 06:09 AM. |
Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0