![]() Topic awaiting preservation: Script(bug) Help! (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Kennesaw, GA - USA |
![]() Ok here the is the javascript. |
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
![]() Try this: |
Bipolar (III) Inmate From: Kennesaw, GA - USA |
![]() 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 |
![]() 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 |
![]() I'm not trying to disagree with you poi, ok I am trying to disagree with you... |
Paranoid (IV) Inmate From: France |
![]() 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 |
![]() 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 |
![]() 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 |
![]() Thanks again for all your help poi. And you are an ass |