Results 1 to 3 of 3

Thread: Dancing Stars Cursor Modification

  1. #1
    Join Date
    Mar 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dancing Stars Cursor Modification

    Hi,

    I would like to know if it is possible to modify this script so that the cursor trail will automatically fade out after X seconds:

    http://dynamicdrive.com/dynamicindex13/star.htm

    Thanks in advance!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, first of all be aware that this script doesn't work in modern Mozilla browsers like FireFox and Netscape to begin with. It does work in IE and older Netscape browsers. I can modify it to stop, fading out would be another matter entirely, maybe for the IE5+ part. Anyways, try this, where it says:
    Code:
    function animateLogo() {
    make it look like this:
    Code:
    x=0
    function animateLogo() {
    x+=1
    and where it says:
    Code:
    setTimeout("animateLogo()", 15);
    make it look like this:
    Code:
    if (x>=8*75){ // change 8 to approx. number of seconds before effect ends
    if(document.all)document.all('starsDiv').style.display='none';
    else{
    for (i = 0; i < 7; i++)
    document.layers['a'+i].visibility='hide'}
    clearTimeout(astars);}
    else
    astars=setTimeout("animateLogo()", 15);
    for an effect that ends after about 8 seconds.

  3. #3
    Join Date
    Mar 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your help It works

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •