display text over image based on array of elements

quantum5454

New Member
i want display text over image based on array of elements. see following code array's are st1,st2 contains some values and st3 array contains text. here i want display text over image based on x and y coordinates. here x and y coordinates are st1 and st2 respectively. please help me i am out of idea. \[code\] <script language="javascript"> <c:forEach var="d" items="${e}" > <c:set var="st1" value="http://stackoverflow.com/questions/15500343/${fn:substringBefore(d,'-')}" /> <c:set var="st2" value="http://stackoverflow.com/questions/15500343/${fn:substring(d,'-','+')}" /> <c:set var="st3" value="http://stackoverflow.com/questions/15500343/${fn:substringAfter(d,'+')}" /> var st1=new Array(); var st2=new Array(); var st3=new Array(); st1.push("${st1}"); st2.push("${st2}"); st3.push("${st3}"); </c:forEach> </script> <img id='myimg' src="http://stackoverflow.com/questions/15500343/detroit-nights.jpg" height='300' width='300' />\[/code\]
 
Back
Top