Guest phyoe2004 Posted January 2, 2006 Share Posted January 2, 2006 I would like to change mouse pointer when the page is requesting the transaction from the server. At that time mouse icon was changed from Arrow to something. Please let me know how to write this code in JAVA Script. Link to comment Share on other sites More sharing options...
michael123 Posted January 2, 2006 Share Posted January 2, 2006 this is the code for change the cursor of the window <body style="cursor:hand;"> Link to comment Share on other sites More sharing options...
Kaji Posted January 17, 2006 Share Posted January 17, 2006 try something like this... <html><script type="text/javascript">function chcursor(cur){document.getElementByTagName("body").style.cursor=cur;}</script><body style="cursor:hand" onload="chcursor('pointer')"></body></html> You'd have to put the cursor and onload attributes in every page though. Link to comment Share on other sites More sharing options...
playmenow Posted January 18, 2006 Share Posted January 18, 2006 Ahhh........isn't easier to use CSS to change the cursor? Link to comment Share on other sites More sharing options...
scott100 Posted January 18, 2006 Share Posted January 18, 2006 No need to use javasript for this, just plain css, examples attached:<a href="#" style="cursor:pointer">pointer</a><br /><a href="#" style="cursor:crosshair">crosshair</a><br /><a href="#" style="cursor:e-resize">e-resize</a><br /><a href="#" style="cursor:help">help</a><br /><a href="#" style="cursor:nw-resize">nw-resize</a><br /><a href="#" style="cursor:text">text</a><br /><a href="#" style="cursor:wait">wait</a>There are a few others but you get the idea. Link to comment Share on other sites More sharing options...
pulpfiction Posted January 18, 2006 Share Posted January 18, 2006 to change mouse pointer when the page is requesting the transaction from the server.<{POST_SNAPBACK}> The CSS code to change the pointer, is link:hover, I could be wrong..... but I guess what phyoe2004 needs is to change the pointer during the time when the page loads from the server, like some other cursor instead if the normal sandclock. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now