Jump to content

Mouse Pointer Change on Alert


RealDrift

Recommended Posts

Hi,

 

i have seen a website use this feature. basically the mouse pointer changes to a different one if the user has  a new message in their inbox. Once the message is read the mouse pointer goes back to the original one.

 

i run a website which has a members section in which they can message each other. This feature is kinda good to have.

 

any help appreciated.

 

thanks

Link to comment
Share on other sites

your going to have to create a css class/id for a cursor style.

your going to have to check your database with server side language.

 

you really do not need javascript for this; unless you are trying to automatic update the cursor style when a new message comes in; without page reload. if your wanting to do that - you will have to use a JavaScript method commonly called AJAX.

 

I do not know of a specific tutorial to tell you how to do this - google it - that's a start.

Link to comment
Share on other sites

CSS Cursor Property

 

You will have to learn some server side language coding skills; I suggest PHP and MySQL; so that you can:

 

1.) Create a database.

2.) Create a user login (if this is going to be for multiple users/members to use)

3.) Create a PHP/MySQL script that will check your member database row or table; too see if they have a new message.

4.) Then change your cursor style based upon you database results.

 

This is no easy task to accomplish for a beginner of PHP/MySQL and CSS; you need to start trying to learn some PHP/MySQL and CSS coding skills and then go from there. You have to have some prior knowledge of both languages to do what your wanting to do. You may be able to find a message system that has already been built, that you can use; that is similar to what your wanting to do.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.