Link to home
Start Free TrialLog in
Avatar of jhughes4
jhughes4

asked on

Draw a line between two dynamic-generated icons

Using JSP or HTML how can I draw a line between two images that are dynamically created?  For example I load img1 on certain conditions then I load img2, and I want a line that connects them.

thanks in advance.
Avatar of jhughes4
jhughes4

ASKER

any suggestions?
Avatar of bloodredsun
Create an absolute div that contains an image that joins the two other images. If you have a gif with a transparent background this would work.

Will you always know where the images are on the page?
I guess I would since I would be creating them based on the input from the user.  I'm sorry I'm new to JSP, what is an "absolute div"?  Can you provide a sample?

thanks
ASKER CERTIFIED SOLUTION
Avatar of bloodredsun
bloodredsun
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If the images are dynamically created, why not just draw the line on the image before you return it to the browser?
Thanks for the suggestions.  I tried the DIV element, but I couldn't get the line "skinny" enough & using what gnoon and TimYates suggested proved to be too difficult to dynamically create since I don't know the number of the images required.  So I decided to go with a tree view instead for the time being...thanks.