Topic awaiting preservation: Script(bug) Help! |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Kennesaw, GA - USA |
posted 10-08-2003 19:29
Ok here the is the javascript. |
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 10-08-2003 22:20
Try this: |
Bipolar (III) Inmate From: Kennesaw, GA - USA |
posted 10-09-2003 20:02
Btw, I found that your script works fine. The problem is that, you can't reposition the <div> tags with images quickly. Or so I'm guessing... |
Paranoid (IV) Inmate From: France |
posted 10-09-2003 20:49
buddylee: Moving a DIV or an IMG won't hurt your browser, really. Experience, and the asylum's inmates, have prooved that much more heavy tasks can be achieved with DHTML in realtime. |
Bipolar (III) Inmate From: Kennesaw, GA - USA |
posted 10-11-2003 01:37
I'm not trying to disagree with you poi, ok I am trying to disagree with you... |
Paranoid (IV) Inmate From: France |
posted 10-11-2003 19:31
buddylee: By moving a DIV, I meant moving a DIV with an IMG tag inside. I just had a look at your site. In fact your busy cursor problem may come from the fact that you put the moving image as a background of your DIV. I've seen ( and timed ) that moving a background is slower than moving a simple IMG or DIV tag. Though I've never had the busy cursor. The page is light and you're not loading something after so I don't see how you can have had one. Weird. But I trust you, I swear code: function doMouseMove()
|
Bipolar (III) Inmate From: Kennesaw, GA - USA |
posted 10-13-2003 03:18
Thanks for the tips poi. I need to check out the math.min and the math.max functions. Do they make the functions faster? Or, what is the benefit? /turnon spellchecker :P |
Paranoid (IV) Inmate From: France |
posted 10-13-2003 16:59
The real benefits of Math.min() and Math.max() here are that they "saturates" the coordinate of the ruler line. Since you only have one object in movement, the speed is far from being a problem. Nonetheless my implementation is faster than your previous one, but only because I've removed 2 "parseInt(document.getElementById("site").style.top)". |
Bipolar (III) Inmate From: Kennesaw, GA - USA |
posted 10-13-2003 17:33
Thanks again for all your help poi. And you are an ass |