Skip to Content
author's profile photo Former Member
Former Member

Link for an image

Hi,

I show an image with the following code.

    <htmlb:image src     = "../logo.gif"
                 alt     = "logo"
                 tooltip = "logo"
                 height  = "57"
                 width   = "60" />

Now, I want a link on this image. When the user made a click on the image, he goes to another web-page. How can I do this?

Regards,

Jens

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2004 at 10:19 AM

    Hi Jens,

    do it like this:

          <htmlb:link   id = "link2"
                        reference = "http://www.sap.de" >
            <htmlb:image src="../it00/father_son.jpg" alt="Not available"/>
          </htmlb:link> 
    

    I hope this is what u mean.

    Regards,

    Fabian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2004 at 10:19 AM

    Hi,

    Check the following code.

    <htmlb:image id = "OK"

    src= "<%= cl_bsp_mimes=>sap_icon( id 'ICON_CHECKED' ) %>"

    onClick = "OK"

    <b>onClientClick = "alert('imageclicked');"</b> />

    I hope it serves your purpose.

    Regards,

    Vara

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.