R
RichardOnRails
Hi,
I want to draw geometric figures in my webpages. I found a nice
example at
http://www.codeproject.com/KB/scripting/drawConnectorsJL.aspx
which included the following 7 lines:
<style type="text/css">
body {font-size:8pt; font-family:Arial;}
..treeItem {display:block; margin:0px; padding:1px; padding-left:5px;
white-space:nowrap; border-bottom:solid 1px #999999; cursorointer;}
..treeItem_hi {display:block; margin:0px; padding:1px; padding-left:
5px; white-space:nowrap; border-bottom:solid 1px #999999;
cursorointer; background-color:#0099cc;}
..treeItem_set {display:block; margin:0px; padding:1px; padding-left:
5px; white-space:nowrap; border-bottom:solid 1px #999999;
cursorointer; background-color:#d8ebf5;}
</style>
<script type="text/javascript">
Lines 3-5 include the specs:
display:block; margin:0px; padding:1px; padding-left:5px; white-
space:nowrap; border-bottom:solid 1px #999999; cursorointer;
I should be able to factor this out into a logically higher level item
from which these three lines could derive this common stuff. But I'm
a JS newbie, so I'd like help in doing that.
Thanks in Advance,
Richard
I want to draw geometric figures in my webpages. I found a nice
example at
http://www.codeproject.com/KB/scripting/drawConnectorsJL.aspx
which included the following 7 lines:
<style type="text/css">
body {font-size:8pt; font-family:Arial;}
..treeItem {display:block; margin:0px; padding:1px; padding-left:5px;
white-space:nowrap; border-bottom:solid 1px #999999; cursorointer;}
..treeItem_hi {display:block; margin:0px; padding:1px; padding-left:
5px; white-space:nowrap; border-bottom:solid 1px #999999;
cursorointer; background-color:#0099cc;}
..treeItem_set {display:block; margin:0px; padding:1px; padding-left:
5px; white-space:nowrap; border-bottom:solid 1px #999999;
cursorointer; background-color:#d8ebf5;}
</style>
<script type="text/javascript">
Lines 3-5 include the specs:
display:block; margin:0px; padding:1px; padding-left:5px; white-
space:nowrap; border-bottom:solid 1px #999999; cursorointer;
I should be able to factor this out into a logically higher level item
from which these three lines could derive this common stuff. But I'm
a JS newbie, so I'd like help in doing that.
Thanks in Advance,
Richard