11 Replies - 1797 Views - Last Post: 07 November 2002 - 03:21 AM

#1 Dr. Tim  Icon User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 993
  • Joined: 20-March 02

Always Drag Object

Posted 03 November 2002 - 05:28 PM

I want to drag var floyd. How would I do that?
Is This A Good Question/Topic? 0
  • +

Replies To: Always Drag Object

#2 Koenie  Icon User is offline

  • What?!

Reputation: 0
  • View blog
  • Posts: 1,313
  • Joined: 08-July 02

Re: Always Drag Object

Posted 04 November 2002 - 01:08 PM

uhm..... what?

explanation please.
Was This Post Helpful? 0
  • +
  • -

#3 Dr. Tim  Icon User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 993
  • Joined: 20-March 02

Re: Always Drag Object

Posted 04 November 2002 - 01:35 PM

lets say i want an image to follow my cursor anywhere it goes, no delay or anything, how would i do that?
Was This Post Helpful? 0
  • +
  • -

#4 Koenie  Icon User is offline

  • What?!

Reputation: 0
  • View blog
  • Posts: 1,313
  • Joined: 08-July 02

Re: Always Drag Object

Posted 04 November 2002 - 01:45 PM

document.getElementById("myImg").style.top = event.clientY;
document.getElementById("myImg").style.left = event.clientX;
Was This Post Helpful? 0
  • +
  • -

#5 Quik  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2
  • View blog
  • Posts: 3,750
  • Joined: 06-March 01

Re: Always Drag Object

Posted 04 November 2002 - 01:48 PM

you mean somthing on a geocities page? oh.. try http://www.dynamicdrive.com/ for samples
Was This Post Helpful? 0
  • +
  • -

#6 Dr. Tim  Icon User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 993
  • Joined: 20-March 02

Re: Always Drag Object

Posted 04 November 2002 - 06:01 PM

Can someone show me a working script that moves an image around with cursor, whole script please. It shouldnt be that complex.
Was This Post Helpful? 0
  • +
  • -

#7 Quik  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2
  • View blog
  • Posts: 3,750
  • Joined: 06-March 01

Re: Always Drag Object

Posted 04 November 2002 - 06:24 PM

if your to lazy to actually research this, why should anyone write a whole script for you?
Was This Post Helpful? 0
  • +
  • -

#8 Koenie  Icon User is offline

  • What?!

Reputation: 0
  • View blog
  • Posts: 1,313
  • Joined: 08-July 02

Re: Always Drag Object

Posted 05 November 2002 - 01:12 PM

I gave you a whole script
Was This Post Helpful? 0
  • +
  • -

#9 Dr. Tim  Icon User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 993
  • Joined: 20-March 02

Re: Always Drag Object

Posted 05 November 2002 - 01:29 PM

Quik, on Nov 5 2002, 02:24 AM, said:

if your to lazy to actually research this, why should anyone write a whole script for you?

I have no intrest in learning JS.
Was This Post Helpful? 0
  • +
  • -

#10 Koenie  Icon User is offline

  • What?!

Reputation: 0
  • View blog
  • Posts: 1,313
  • Joined: 08-July 02

Re: Always Drag Object

Posted 05 November 2002 - 01:34 PM

Then don't use it.
Was This Post Helpful? 0
  • +
  • -

#11 Dr. Tim  Icon User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 993
  • Joined: 20-March 02

Re: Always Drag Object

Posted 05 November 2002 - 06:06 PM

Koenie, on Nov 4 2002, 09:45 PM, said:

document.getElementById("myImg").style.top = event.clientY;
document.getElementById("myImg").style.left = event.clientX;

Do I put my image in a div layer?
Was This Post Helpful? 0
  • +
  • -

#12 Koenie  Icon User is offline

  • What?!

Reputation: 0
  • View blog
  • Posts: 1,313
  • Joined: 08-July 02

Re: Always Drag Object

Posted 07 November 2002 - 03:21 AM

You don't have to.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1