Click here to Skip to main content
15,898,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my code

HTML
 <div class="image">
<a href="#" title="More Details "><img src="<%=img%>" alt=""/>
<span class="play"></span></a></div>


CSS
image a span.play { display:none; background: url('../img/play.png') center center no-repeat; margin: -130px 10px 0 0; 
       height: 120px; 
       position: relative;
       z-index: 100; opacity: 0.8; 
}
.image a:hover span.play { display:block; }
.clear { clear: both;}	


now i want give link for play icon and one more link for <%=img%> image. How to do this one.


Thanks in Advance
Posted
Comments
Dholakiya Ankit 7-Aug-13 6:39am    
u want popup ?
User-10031173 10-Aug-13 0:37am    
For play icon i want popup and for another link is to be redirect to another jsp page

Use Image Map:-
XML
<img src="abc.gif" width="145" height="126" alt="" usemap="#map">

<map name="map">
  <area shape="rect" coords="0,0,82,126" href="pqr.htm" alt="img1">
  <area shape="circle" coords="90,58,3" href="abc.htm" alt="img2">
  <area shape="circle" coords="124,58,8" href="xyz.htm" alt="img3">
</map>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900