Drawing rectangle in a web page

This is a discussion on Drawing rectangle in a web page within the Tech Board forums, part of the Community Boards category; Do you know how I could draw a rectangle on a web page as shown on the webpage below? http://www.redalt.com/Tools/kubrickr...e6b5851e49%3A5 ...

  1. #1
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696

    Drawing rectangle in a web page

    Do you know how I could draw a rectangle on a web page as shown on the webpage below?

    http://www.redalt.com/Tools/kubrickr...e6b5851e49%3A5

    EDIT: The webpage won't load I guess.
    Basically I want create a webpage that will let user to draw a rectangle on a webpage, just like what you do when you crop an image in an image editor. Javascript solution preferred
    Last edited by alphaoide; 02-20-2005 at 06:24 PM.
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Code:
    <div style="height: 15px; width:15px; border: 1px solid black;">&nbsp;</div>
    Now you can use javascript to assign the actual values

  3. #3
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    Okay, that's easy. I haven't done javascript long enough to notice the obvious.

    Thanks, my new moderator ROCKS!!
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  4. #4
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Please make sure to test it. It's been awhile since I've used the height tag.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Web Page Organization
    By Khelder in forum C# Programming
    Replies: 4
    Last Post: 05-06-2004, 10:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21