MozillaZine

How to draw a rectangle over an image?

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
surabhi
 
Posts: 1
Joined: July 17th, 2016, 9:25 pm

Post Posted July 17th, 2016, 9:30 pm

Hi,
I have an issue i have taken the same code which is there to draw a rectangle over an image :
http://stackoverflow.com/questions/9398 ... er-a-image

Now I want to draw more than 1 rectangle, which means when I draw second rectangle 1st rectangle must also be visible!!!! what changes shuold I do,,,, please help me:)

Thanks in advance!!!!!

jscher2000

User avatar
 
Posts: 10077
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA

Post Posted July 22nd, 2016, 4:48 pm

I think StackOverflow is a good place to pursue this question. It seems you will need to allow for new rubber band elements, so obviously adapt the script by not assuming a single id for the element.

Return to Web Development / Standards Evangelism


Who is online

Users browsing this forum: No registered users and 2 guests