For those Mathematically inclined

R

Randy Webb

George said:
The idea here is to rotate the eyeball around the border of the circle
with the mouse. I have it close but it's not right. Any suggestions?
Oh your browser must be able to work with htc. Thanks for any ideas.
The script is in the htc.

Why not make it an html file, make it work, and then convert it to an htc?
 
G

George Hester

Randy Webb said:
Why not make it an html file, make it work, and then convert it to an htc?

Changing it to a html would not change the mechanics that's involved. I am not having
trouuble with the htc. Thanks though.

George Hester
__________________________________
 
R

Randy Webb

George Hester wrote:

Changing it to a html would not change the mechanics that's involved. I am not having
trouuble with the htc. Thanks though.

While you are not having trouble with the .htc file, you are limiting
your possible audience of people who may potentially help you. When
having a problem, you want as many people as possible willing to help
you, no?
 
G

George Hester

Randy Webb said:
George Hester wrote:



While you are not having trouble with the .htc file, you are limiting
your possible audience of people who may potentially help you. When
having a problem, you want as many people as possible willing to help
you, no?

Yes I suppose so Randy. Putting this into a html is not as easy as you may think. The image is a VML
and if I put the code for that into a html then I get a lot of crap in the folder where the html
will reside. It's not pretty. Oh for <circle></circle>.

If someone said to you I have a circle on a web page that I would like to have an image
follow the border, would the fact that the questioner implements this in a htc matter?

This htc uses JavaScript. And I know I am letting the y component jump to 0. I am also not able
to keep the y component in a steady state. When dx is negative (mouse left to right) the eyeball does the upper
circumference of the circle. mouse(right to left) the lower half of the circumference.

I believe someone who is well versed in JavaScript can "see" this happening just by looking at code. Which I
provided it is in the htc. Maybe I am wrong about that.

I have an example of using setTimeout to do this. It does it without user intervention. Maybe I can
finagle what they have into what I have. It turns out that what I did is pretty close to
what they have. He uses 2-space to do it f(x,y) whereas I use y=f(x) = sqrt(r^2 + x^2).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top