Total members 11893 |It is currently Tue Nov 05, 2024 4:25 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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 3789 times
File comment: png image
cursor.png
cursor.png [ 1.39 KiB | Viewed 12893 times ]
File comment: screenshot to running program ,
untitleda.JPG
untitleda.JPG [ 1.74 KiB | Viewed 12871 times ]

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada
Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

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     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com