Home

Forums

Web development

 

 

 

 
     
 
dna88 Web development and Technology Forum
 
Profile   Register   Memberlist   Usergroups   FAQ   Search  Log in
Getting custom cursor for your html website

 
Post new topic   Reply to topic    dna88 Forum Index -> Web design and solution Discussion Forum
Author Message
emm
Power User
Power User


Joined: 13 Jul 2004
Posts: 310

Post Post subject: Getting custom cursor for your html website Reply with quote

Anyone knows a simple code to make a custom curosor for your website? It's no flash or anything. Just plain html. Javascript can do that?
_________________
“You might say reality is the result of complex negotiations between the observer and the observed. But that is simply a point of view…”
Digital Bangladesh
Tue Sep 21, 04 1:40 am
Back to top
emm View user's profile Send private message
hasnatme
Moderator
Moderator


Joined: 22 Aug 2004
Posts: 283
Location: Dhaka,Bangladesh

Post Post subject: Reply with quote

Check this tutorial....there also some great tutorials..just check it out.

Dynamic Drive
_________________
Just Fly With Your Dreams!!!
Digital Vision
Tue Sep 21, 04 2:00 am
Back to top
hasnatme View user's profile Send private message Yahoo Messenger MSN Messenger
dude
Power User
Power User


Joined: 10 Mar 2004
Posts: 376
Location: Savar, Dhaka

Post Post subject: Custom cursor javascript Reply with quote

Yes. That is why I like dynamic drive so much. They have all kinds of dhtml and javascript that one can think of! But their codes are big and complex. I wish they could write smaller code.
Tue Sep 21, 04 8:52 am
Back to top
dude View user's profile Send private message Visit poster's website
hasnatme
Moderator
Moderator


Joined: 22 Aug 2004
Posts: 283
Location: Dhaka,Bangladesh

Post Post subject: Re: Custom cursor javascript Reply with quote

dude wrote:
Yes. That is why I like dynamic drive so much. They have all kinds of dhtml and javascript that one can think of! But their codes are big and complex. I wish they could write smaller code.


Agreed. They are the one!!!
_________________
Just Fly With Your Dreams!!!
Digital Vision
Tue Sep 21, 04 11:47 pm
Back to top
hasnatme View user's profile Send private message Yahoo Messenger MSN Messenger
emm
Power User
Power User


Joined: 13 Jul 2004
Posts: 310

Post Post subject: Custom Cursor Reply with quote

Thanks for the site. But that is too long and complecated. I wanted a simple solution and this is waht I found.

There is a very simple curosr property in CSS. The cursor property specifies the type of cursor to be displayed when pointing on an element.

Example
h2
{
cursor: crosshair
}

or,

p
{
cursor : url("first.cur"), url("second.cur"), pointer
}


It works only in IE. As you can see you can assign the cursor to specific HTML attributes, like paragraph or header. You can use an URL to a curosr picture or you can use one of the default IE cursors. These are available:

pointer: The cursor render as a pointer (a hand) that indicates a link
move: The cursor indicates something that should be moved
e-resize: The cursor indicates that an edge of a box is to be moved right (east)
ne-resize: The cursor indicates that an edge of a box is to be moved up and right (north/east)
nw-resize: The cursor indicates that an edge of a box is to be moved up and left (north/west)
n-resize: The cursor indicates that an edge of a box is to be moved up (north)
se-resize: The cursor indicates that an edge of a box is to be moved down and right (south/east)
sw-resize: The cursor indicates that an edge of a box is to be moved down and left (south/west)
s-resize: The cursor indicates that an edge of a box is to be moved down (south)
w-resize: The cursor indicates that an edge of a box is to be moved left (west)
text: The cursor indicates text
wait: The cursor indicates that the program is busy (often a watch or an hourglass)
help: The cursor indicates that help is available (often a question mark or a balloon)
_________________
“You might say reality is the result of complex negotiations between the observer and the observed. But that is simply a point of view…”
Digital Bangladesh
Thu Sep 23, 04 4:39 am
Back to top
emm View user's profile Send private message
dude
Power User
Power User


Joined: 10 Mar 2004
Posts: 376
Location: Savar, Dhaka

Post Post subject: Reply with quote

Good emm. I am glad that you finally found what you had been looking for.
Thu Sep 23, 04 8:48 am
Back to top
dude View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    dna88 Forum Index -> Web design and solution Discussion Forum All times are GMT - 7 Hours
Page 1 of 1

 

Partners and Resources

Bangladesh hosting company

Bangladesh web design

Driven by phpBB © phpBB Group