473,385 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

For those Mathematically inclined

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.

http://hesterloli.dnsalias.com/more5/dial.asp

http://hesterloli.dnsalias.com/includes/dial.htc

--
George Hester
__________________________________
Jul 23 '05 #1
4 1157
George Hester wrote:
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?
http://hesterloli.dnsalias.com/more5/dial.asp

http://hesterloli.dnsalias.com/includes/dial.htc

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
"Randy Webb" <Hi************@aol.com> wrote in message news:BK********************@comcast.com...
George Hester wrote:
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?
http://hesterloli.dnsalias.com/more5/dial.asp

http://hesterloli.dnsalias.com/includes/dial.htc



--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq


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
__________________________________
Jul 23 '05 #3
George Hester wrote:

<--snip-->
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?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #4

"Randy Webb" <Hi************@aol.com> wrote in message news:nO********************@comcast.com...
George Hester wrote:

<--snip-->
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?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq


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).

--
George Hester
__________________________________
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
6
by: andrea.gavana | last post by:
Hello NG, probably this is a basic question, but I'm going crazy... I am unable to find an answer. Suppose that I have a file (that I called "Errors.txt") which contains these lines: MULTIPLY...
16
by: Safalra | last post by:
Frequently in ciwah people say 'but what about the users without JavaScript?', so I decided to do an experiment. It suggests 35% internet users do not have JavaScript turned on in their browsers....
39
by: Antoon Pardon | last post by:
I was wondering how people would feel if the cmp function and the __cmp__ method would be a bit more generalised. The problem now is that the cmp protocol has no way to indicate two objects are...
3
by: Magnus Henriksson | last post by:
Hi all, While getting ready to get rid of an old computer of mine, I came across this transform that I wrote a few years ago (around 2002 I think). I did it just to prove that it could be done,...
40
by: nufuhsus | last post by:
Hello all, First let me appologise if this has been answered but I could not find an acurate answer to this interesting problem. If the following is true: C:\Python25\rg.py>python Python...
14
Dököll
by: Dököll | last post by:
Greetings and salutations! Hope it's a good week thus far... Got myself thinking and wanted to see what can be achieved with a certain bit of code: public double getPayment( ) { ...
145
by: Dave Parker | last post by:
I've read that one of the design goals of Python was to create an easy- to-use English-like language. That's also one of the design goals of Flaming Thunder at http://www.flamingthunder.com/ ,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.