devxlogo

Create Horizontal and Vertical Lines Using DHTML

Create Horizontal and Vertical Lines Using DHTML

It’s possible to dynamically create horizontal and vertical lines and rectangles using Internet Explorer 4.0 Dynamic HTML to alter the width and/or height of a single pixel image. Using this method and lots of code it could even be possible to create a rudimentary bar graph. The following code shows you how to alter the length of a line in response to the user clicking on a link.

 Select width for line below: 50 pixels or  200 pixels

devx-admin

Share the Post: