Results 1 to 2 of 2

Thread: How to display link and use it ?

  1. #1
    Join Date
    Jun 2009

    How to display link and use it ?

    I have following code in jsp file
        <div id="image_1" style="position: absolute;  left:2px; width: 300px; z-index: 0;">
    	<a id="image_link_1" href="<%=link_url%>" target="<%=link_target%>">
    		<img id="Img1"   src="<%=image_src%>" height="190px" alt=""/>		
    <% } 
    In this code url for the link and target (_self or _blank) are obtained dynamically. When I implementy this code, I can only see the image which is obtained as a result of <img id="Img1" src="<%=image_src%>" height="190px" alt=""/>. I dont get the linkanywhere on or around the image. How can I see and use the link in here ?

  2. #2
    Join Date
    Jun 2009
    United Kingdom
    One thing to verify is link_url is not empty. I have had problems in the past with links if href="".

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center