Total members 11362 |It is currently Thu Oct 02, 2014 1:26 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

All times are UTC [ DST ]



  custom cursor in javascript
Tue Dec 02, 2008 1:07 am 

This example allow you to do javascript custom cursor ,the cursor in this example is like " sniper shot cursor".it is based on 3 files ,
1. html file contain a empty page (index.html ) ,
2. Javascript file cursor.js .
3. Small PNG image.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>Javascript  sniper shot cursor </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script type="text/javascript" src="cursor.js"></script>
</head>
<body>

</body>
</html>



Attachments:
File comment: cursor.js javascript file
cursor.js [7.09 KiB]
Downloaded 3052 times
File comment: png image
cursor.png
cursor.png [ 1.39 KiB | Viewed 9729 times ]
File comment: screenshot to running program ,
untitleda.JPG
untitleda.JPG [ 1.74 KiB | Viewed 9707 times ]

_________________
Please recommend / share my post if you found it helpful.
Author:
Mastermind
User avatar Posts: 2694
Have thanks: 73 time
  Re: custom cursor in javascript
Fri Feb 26, 2010 12:14 pm 
thanks for this script. this is the only mouse cursor script which worked 50% for me.. i used this code in my site.. we want a heart icon. i did everything... but only the PLUS symbol is coming .. not the heart symbol ... i tried using PNG and then CUR file.. not working...

please help me..


Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : custom cursor in javascript
 JavaScript Cursor     -  
 Create a Custom Log in java     -  
 Change cursor to help     -  
 Image Custom Filter In Java     -  
 Create Custom Filters For JFileChooser!!!!     -  
 Create Custom Brushes in Photoshop     -  
 Change cursor to move     -  
 Finding The Blinking Cursor     -  
 Change cursor to wait     -  
 Change cursor to crosshair     -  

All times are UTC [ DST ]









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team