repel cusor

I would like to create an application that can be incorporated into a simple HTML web page I am creating. The general idea is that the web page makes an offer that is too good to be true. All you have to do is click on the “WINNER” button at the bottom of the page to win an incredible prize.

Here’s the rub. The code establishes a perimeter around the button. When the cursor breaches the perimeter of the button, the button is repelled by the cursor. The idea is that the cursor can never contact the button because it is constantly moving away from the cursor.

This is currently beyond my skill level so any ideas/help would be greatly appreciated.
I doubt that you are anywhere near that. C++ doesn't really mix well with the web, and if it does it's definitely beyond me. Try using Java.
Thanks tummychow. I have zero Java experience. Can you recommend a Java tutorial that will point me in the right direction?
Meh. Sorry, nothing for you. But I'm pretty sure you can find one online.
EDIT: By the way, although a lot of java's core syntax is the same as C++, there are differences, and, importantly, java is an OO language, where as C++ is a functional-OO mixture.
Last edited on
Thanks tummychow and Bazzy. I can do a Google search!
I was hoping to bypass all the clutter and find a connection specific to my applications needs.
It sounds as if you are interested in client-side scripting or a Java applet of some sort. I would look into the former first.
Use this index, it's the best I know of, and is what I use when my book complexes me.

http://java.sun.com/docs/books/tutorial/reallybigindex.html

start from the basics, and learn it all much like c++, there's some differences but java is a pretty easy language to grasp. and it's getting easier everyday it seems, java community trying to make the language more and more nub friendly.
Last edited on
Topic archived. No new replies allowed.