Jump to content

Own CURSOR on Web Page!...


aamberker

Recommended Posts

upload the or .cur files to server and use it like this
<div style="cursor: url('path_to_cur_file'), default">a div with custom cursor</div>

Hi,Thank you for your response... Where exactly should I put that code in my HTML???****************<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>chotaGolf</title><style type="text/css"><!--body { margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;}--></style></head><body><div align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div align="center"><img src="images/1024-566_Layout_01.jpg" width="1024" height="566" border="0" usemap="#Map" /></div></td> </tr> </table></div><map name="Map" id="Map"><area shape="rect" coords="273,172,344,191" href="about_golf.html" /><area shape="rect" coords="433,170,450,191" href="index_01.html" /></map></body></html>
Link to comment
Share on other sites

add this line to css area{ cursor: url('path_to_cursor_file'), default; }

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>chotaGolf</title><style type="text/css"><!--body {margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;}area{cursor: url('path_to_cursor_file'), default;}--></style></head><body><div align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><div align="center"><img src="asd.jpg" width="1024" height="566" border="0" usemap="#Map" /></div></td></tr></table></div><map name="Map" id="Map"><area shape="rect" coords="273,172,344,191" href="about_golf.html" /><area shape="rect" coords="433,170,450,191" href="index_01.html" /></map></body></html>

don't forget to replace path_to_cursor_file with the file name you want to use

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...