mark a rectangle

Discussion in 'Javascript' started by Lammi, Sep 6, 2007.

  1. Lammi

    Lammi Guest

    hi,

    i need to mark an area in a div. the idea is, that a user clicks a
    startpoint, moves the mouse to an endpoint and in the div a matching
    rectangle will be colored while he moves the mouse. that's not so
    difficult.
    once the user has marked an area in the div, this area should be
    "restricted". if the user tries to mark that area again or a new
    rectangle laps over the existing, an error should be thrown or better,
    the new rectangle should end and the border of the old one. i need
    some hints how to realize that. does anybody know a similar example
    script?

    thanx in advance
     
    Lammi, Sep 6, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kenneth

    Rectangle object in asp.net?

    Kenneth, Jan 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    550
    Steve C. Orr [MVP, MCSD]
    Jan 15, 2004
  2. Alberto

    Paint a rectangle

    Alberto, Jan 1, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    443
    Scott Mitchell [MVP]
    Jan 1, 2005
  3. Tyrant Mikey
    Replies:
    10
    Views:
    5,516
    Tyrant Mikey
    Feb 7, 2005
  4. Cirene
    Replies:
    5
    Views:
    596
    Cirene
    May 17, 2008
  5. Lammi

    mark a rectangle

    Lammi, Sep 6, 2007, in forum: Javascript
    Replies:
    5
    Views:
    144
    Gregor Kofler
    Sep 6, 2007
Loading...

Share This Page