smitty62
asked on
Can't get cursor to change
I want to use a different cursor on a web page. Here is the code, but it works only in IE:
<body style="cursor:url('http://doinet2.illinois.gov/home/Documents/nat630.cur')">
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
greetings smitty62, , , , , You must place that javascript AFTER the page code for -
<div class="bubbles"></div>
has finished loading, at the bottom of the page,
OR
place the JS code in the jquery document ready container in the JS on top of page
$( document ).ready(function() {
var $bubbles = $('.bubbles');
function bubbles() {
/// rest of code below
= = = = = = = = =
if you place code before the -
<div class="bubbles"></div>
without the $( document ).ready(function() { then the javascript can not find the non extant elements with the .bubbles class