This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

cursor mouse trails for applets

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what i wana do is make that when someone is one one of the websites i am makeing i ant it to have unique mouse trais that follows the mouse , like maby bubbles or some thing like that
is this done in an applet or some other way ?
i also would like to know if i can use mask images, paste an X on top of an other image that is runnig in animation
please help me with this thanks
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do all of this in applets... ( Though I think the "bubbles following the mouse" trick is better done in JavaScript... if it was done in an applet, the bubbles would only follow the mouse in the applet panel, not all over the page... )

To draw a mask image over an animation all you would need to do is use double-buffering to draw the animation ( look for other posts in this forum, or in the AWT/JFC/Swing forum to find directions for using double-buffering for animations... ), then, right after drawing the current frame of the animation, draw your mask image. Since it was drawn second, it will appear on top of the animation.

HTH,
-Nate
 
My, my, aren't you a big fella. Here, have a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic