Graeme06
Technical User
- Jun 6, 2006
- 60
Yet another question. After this though I should be done (well maybe one more question, but that's it).
Anyways, basically I've got a floating inner frame. This is working great, but it always shows up in the same spot, which kind of defeats the point of it being floating. I have an idea of how to go about this but theres 3 things I'm wondering:
1.) How do you find out the current mouse location (at the time of a certain function being called - oh and I just need the Y value)? Also is this number the location relative to the top of the website or position on the users screen? I tried Googling this and got nowhere (maybe I used the wrong keywords).
2.) So I have the iframe and it's within a CSS area <div id="floating">, the CSS is in an external file. Now if these are both already declared at the time of finding out the mouse location, how would I be able to reposition it while the page is being viewed?
3.) THis is similar, but a bit different, is it possible for the frame to move along with the mouse? Maybe using action listeners for mousemove or something?
Thanks a lot, and hopefully this is just about it,
Graeme
Anyways, basically I've got a floating inner frame. This is working great, but it always shows up in the same spot, which kind of defeats the point of it being floating. I have an idea of how to go about this but theres 3 things I'm wondering:
1.) How do you find out the current mouse location (at the time of a certain function being called - oh and I just need the Y value)? Also is this number the location relative to the top of the website or position on the users screen? I tried Googling this and got nowhere (maybe I used the wrong keywords).
2.) So I have the iframe and it's within a CSS area <div id="floating">, the CSS is in an external file. Now if these are both already declared at the time of finding out the mouse location, how would I be able to reposition it while the page is being viewed?
3.) THis is similar, but a bit different, is it possible for the frame to move along with the mouse? Maybe using action listeners for mousemove or something?
Thanks a lot, and hopefully this is just about it,
Graeme