Add a link in an image

Hello,
I want to create clickable area on the images. Can I do it directly in Java?
Thanks for the help.
Edited by: user1708164 on 3-mar-2011 7.49

user1708164 wrote:
I simply wish that it can intercept the click on some image area. Maybe these areas reporting to the user with an overlay image. Then the action to be taken in this area click on the dicide dynamically, depending on the point that you clicked and the information I have stored in a file.
Edited by: user1708164 on 3-mar-2011 10.18One simple way of doing this is to break the image up into several images. For instance, suppose you break up a picture into four equal parts.
Then you add four JButtons, each with one of the four images, on a GridLayout (4 X 4) and add an ActionListener to each button. Remove the Borders from the Buttons and you'll have what looks like one image, but with four areas in which different actions can be achieved.

Similar Messages

  • ADD A LINK AROUND MAIN IMAGE IN PHOTO GALLERY

    Can anyone help with the code for this. I need to add a link
    to each image as it appear in the spry photo gallery. Each link
    would be different and set in the xml file can some one help
    please. I can't figure this one out.

    It's usually something like:
    <div spry:region="ds1" spry:repeat="ds1">
    <a href="{link_dataref}"><img src="{image_dataref}"
    /></a>
    </div>

  • How do you add a link to an image item

    I have added an Image Item to a page and want to be able to add a link to that image but dont see any where you can put the link in the Image Item properties

    One easy way to do this would be to add an image page, upload your image to the page, then create an html portlet with the appropriate tags to refer to the image and your link.

  • Add a link to an image in iBooks?

    Is this possible? I can't seam to add any links to an image that I placed in the document.

    Thanks, this is the only way I found how to link an images in iBooks. I put a text link in front dropped the opacity to 0%. The "red character links" are not visible in ipad, but are visible when exporting to pdf.

  • Someone can help me? I want to add a link in this image (white tree). I think this is in a CSS file.

    I need to know how do I add a link in this icon. I believe it is in a CSS file.
    Please help me!

    Find this in one of your templates:
    <span id="Hover_tree"><img alt="" src="/images/red_area_nav_bg.png" /></span>
    replace with:
    <span id="Hover_tree"><a href="your link here"><img alt="" src="/images/red_area_nav_bg.png" /></a></span>
    Hope this helps!

  • When I add a link to an image it stops aligning with text

    I have my icon vertically aligned perfectly with a line of text right after it, but when I add a link to the icon, the text moves to the top of the image (not above it, but just aligned to the top of the image so it isn't centered vertically anymore). I am not changing anything but adding the link. I have had this issue before and wasn't able to fix it....

    If you created your page from a Dreamweaver template, I am not surprised that it set images up to display: block; Here is what that does:
    The element is displayed as a block element (like paragraphs and headers). A block element has some whitespace above and below it and does not tolerate any HTML elements next to it
    You could also (if you want to have whitespace above and below image elements) try display: inline-block; Here is what that does:
    The element is placed as an inline element (on the same line as adjacent content), but it behaves as a block element
    Remember: display: inline; is the default.

  • How to add links to different images within an animation in Photoshop CS4?

    Hey guys,
    I am trying to create an animation with photoshop cs4, but I was wondering if there is a way for me to add a link to each image as the animation is looping, that people can click on the image that is appearing on the screan at that particular moment and take them exactly to the link, and so on with the rest of the images within the animation. Please Help!!! I have no experience with CS4 as you can see or any other for that matter, so I would really appreciate any information that you can give me. Or if it's easier in Flash... please tell me how!! Thank you soooo much!!!

    Exactly as Zeno said. You'll either need Flash/ Flash Catalyst or do it all with JavaScript inside the web design application.
    Mylenium

  • Adding a link to an image.. Help!

    I use Dreamweaver and I was able to add a link to an image on
    my site. The link directs people to a video. The problem is, it
    works perfectly in IE, but in the Foxfire browser when I click on
    the image, a new blank page opens and then the video pops up on
    windows media player.
    In IE, the page stays the same and just the windows media
    player pops up.
    Why would it work differently in Foxfire?

    The reason will be that IE has a setting to handle the videa
    but FF is very
    modular and so will not.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Miss_Angela" <[email protected]> wrote in
    message
    news:fcpue6$5k9$[email protected]..
    >I use Dreamweaver and I was able to add a link to an
    image on my site. The
    >link
    > directs people to a video. The problem is, it works
    perfectly in IE, but
    > in the
    > Foxfire browser when I click on the image, a new blank
    page opens and then
    > the
    > video pops up on windows media player.
    >
    > In IE, the page stays the same and just the windows
    media player pops up.
    >
    > Why would it work differently in Foxfire?
    >

  • How do I add a hyperlink to an image in my Mail signature

    In outlook I can simply add a URL to an image in a signature like in the image I've attached. When I try to add a link to an Image in Mail it changes the image to a blue underlined link. How do I add a hyperlink to an image in my Mail signature?

    Hello,
    http://allforces.com/2006/04/14/css-signatures/
    http://timmargh.net/archive/2006/05/custom_css_signatures_in_mailapp.php

  • Mail 3.6 Adding Link to Graphic Image

    In the Edit menu of Mail 3.6, there is an option to add a link to text or a graphic. I've assigned a link to a graphic, however when I click the graphic, the link has been modified and the URL is incorrect. Is this a bug?

    You cannot add a link to an image. It's for text only.

  • How do you add multiple links to a rollover image?

    Hi guys,
    I'm pretty much a novice when it come to DW, but i understand some things and can get by with a simple website(i only use design mode).
    Anyways, i understand how to use rollovers if its a basic image over image swap. My issue is, I have a link that says "T-shirts" and what i want is when you roll the mouse over that text, it swaps to another text -"1 or 2". Now on the "1 or 2" image, i want to have 2 seperate links on them.  I tried using hotspots but to no avail. Everytime, the "1 or2" text comes out as a single link. Is doing this possible? I'm using CS4 if that helps btw.
    Thanks!!

    I think you're trying to make something that is more complicated than it needs to be... First, as far as I know there is no easy way to accomplish what you're trying to do with a single image...
    The first option would be to split your initial image in half, and create a rollover effect on the left half on rollover with the specified link 1, and add a second rollover effect on the right side image so that it also changes. Do the same with the right half image - create the rollover effect along with the link for that image only, then add a rollover script that affects the left side image (I've attached a very basic sample to demonstrate in the zip folder - note that there are two rollover images - each with a separate web link, and each has a rollover effect that affects both buttons...)
    Second option is perhaps using a "Dropdown" menu that (on rollover) shows two more links... there are many ways this can be accomplished - the easiest (in my opinion) is by using the "spry menu bar". Once created, you can adjust the colors, fonts etc., and an image could be replaced on the initial link within the css... (my website is still under construction, but hopefully will show what I mean: http://www.jgigandet.com/) If you google "drop-down menu html, you'll find several other alternatives  to spry as well...
    Hope that helps...
    Jesse

  • How to add a link to a report inline image?

    Hi,
    I use apex 3.1.2
    I have made a report where I show a small inline image. The image is stored as a blob in the db (IMAGE:XXSMALLPICS:PICTURE:ID::::::inline:Download). It works fine, but I would like to add a link to the small image so that if I click on the image a larger image shows in a popp up window.
    How can that be done?
    I don't succeed to add any type of link to the image.
    /Erik

    Hi Sam,
    Firstly, you have an error in your SQL statement:
    SELECT FILE_NAME,
    '&lt;img onclick="javascript:showImage(this);" &gt;src="#OWNER#.DISPLAY_IMAGE?inID=' || NVL(IMAGE_ID, 0) || '" &gt;height="50" width="50" /&gt;' IMAGE
    FROM A_IMAGES
    ORDER BY FILE_NAMEYou have an extra &gt; - it should be:
    SELECT FILE_NAME,
    '&lt;img onclick="javascript:showImage(this);" src="#OWNER#.DISPLAY_IMAGE?inID=' || NVL(IMAGE_ID, 0) || '" height="50" width="50" /&gt;' IMAGE
    FROM A_IMAGES
    ORDER BY FILE_NAMEFor the Region Header - I just click on the report in the page definition and scrolled down to the setting called "Region Header". Then I pasted in:
    &lt;div id="imagediv" style="display:none; position:absolute; top:0px; left:0px; height:0px; width:0px; margin:0px; padding:0px; border:0px; background-color:whitesmoke;" align="center" onclick="javascript:closediv();"&gt;&lt;table style="border:0px; padding:0px; margin:0px; width:100%; height:100%;" cellpadding=0 cellspacing=0&gt;&lt;tr&gt;&lt;td style="vertical-align:middle; text-align:center"&gt;
    &lt;img id="largeimage" src="" style="border:3px double darkblue;"&gt;
    &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
    &lt;/div&gt;
    &lt;script type="text/javascript"&gt;
    var iDIV = document.getElementById("imagediv");
    var iIMG = document.getElementById("largeimage");
    function showImage(i)
    iIMG.src = i.src;
    iDIV.style.width = document.body.clientWidth;
    iDIV.style.height = document.body.clientHeight;
    iDIV.style.display = "block";
    function closediv()
    iDIV.style.width = 0;
    iDIV.style.height = 0;
    iDIV.style.display = "none";
    iIMG.src = "";
    &lt;/script&gt;If you go back to my page, you will see that I have added two screenshots (Page41ReportSource.gif and Page41RegionHeader.gif) that show you what I have done on my report.
    Andy

  • Add a link from image in web app

    I need to add a link to social media site in a static image in a web app detail layout.
    I have thought this would be...
    <a href="{tag_facebook}"><img alt="" src="/_assets/css/images/social-facebook.png" /></a>
    but this displays the link bedside the icon.
    I have tried field type "Text string (Hyperlink)" and "Text string (String)".
    any help appreciated.
    thanks megan

    Hey Liam,
    Franchise list of stores added to a web app abd each store can have a different link added to the icon.
    The icon is hard coded into the layout
    The url needs to change for each
    e.g. 15 Stores, some have their own Facebook page, some will link to a central Facebook page.
    So the icon is static in the web app detail layout, but url changes.
    When I add the code
    <a href="{tag_facebook}"><img alt="" src="/_assets/css/images/social-facebook.png" />
    the result in browser looks like...
    thanks Liam

  • PDF Portfolio - add web link to image

    The layout for my pdf portfolio is an image where i want to have links to.html pages over the image.  Is that possible?
    The only links that I see you can drag on the image are images or .pdfs.
    Thanks!

    Open Preview, and check Help > Annotate a PDF.  It describes such things as adding a text bubble, etc.
    There is no explicit way to add a link in Preview.  Preview is, after all, primarily a viewer with a few markup tools.
    I happen to use a product called PDFPen which is available in the App Store to mark up PDFs.
    I have no financial interest in PDFPen.  I am a reasonably satisifed customer.

  • Add Link to Flash Image

    Hi,
    I'm a bit of a newby to dreamweaver and flash. I've made some
    nice buttons in flash so when you rollover and click they change
    colour, make sound etc. Thing is, I thought when I imported these
    into dreamweaver I'd be able to just add a link and target like
    most other things. WRONG. cant see anywhere where I can add a link.
    Is this possible? I want to be able to click the flash image (in
    the top frame) so it opens the relevant page in the main frame.
    Any help would be appreciated.
    Regards
    Peter

    Frames? EGAD!
    The decision to use or not use frames should be based on a)
    your site's
    needs, and b) your willingness to accept the potential
    problems that frames
    can create for you as developer and maintainer of the site
    and for your
    visitors as casual users of the site.
    I am down on frames because I believe that they create many
    more problems
    than they solve.
    Judging from the posts here, and the kinds of problems that
    are described,
    the kind of person most likely to elect to use frames is also
    the kind of
    person most likely ill-prepared fo solve the ensuing problems
    when they
    arise. If you feel a) that you understand the problems and b)
    that you are
    prepared to handle them when they occur, and c) that you have
    a need to use
    frames, then by all means use them.
    As far as I know, the most comprehensive discussions of
    frames and their
    potential problems can be found on these two links -
    http://apptools.com/rants/framesevil.php
    http://www.tjkdesign.com/articles/frames/
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Walt F. Schaefer" <[email protected]> wrote in
    message
    news:[email protected]...
    > You're using Flash navigation with sound effects to
    control content in
    > Frames? You may want to step back and reconsider the
    entire project. You
    > are about to create a usability nightmare. Perhaps some
    study and research
    > is in order.
    >
    > --
    >
    > Walt
    >
    >
    > "Cpt_C" <[email protected]> wrote in
    message
    > news:[email protected]...
    >> Hi,
    >>
    >> I'm a bit of a newby to dreamweaver and flash. I've
    made some nice
    >> buttons in
    >> flash so when you rollover and click they change
    colour, make sound etc.
    >> Thing
    >> is, I thought when I imported these into dreamweaver
    I'd be able to just
    >> add a
    >> link and target like most other things. WRONG. cant
    see anywhere where I
    >> can
    >> add a link. Is this possible? I want to be able to
    click the flash image
    >> (in
    >> the top frame) so it opens the relevant page in the
    main frame.
    >>
    >> Any help would be appreciated.
    >>
    >> Regards
    >>
    >> Peter
    >>
    >
    >

Maybe you are looking for

  • Can't see music in mp3 on mac

    I have a SansaDisk mp3 player and would like to change up my current playlists...I see it on the desktop of my iMac when I plug it in, but when I try to access my music folder I get nothing. No songs are listed...just a blank screen. Also, can I take

  • Action on zoom event

    Hi I have developed a flash-RMA which shows some text. The RMA is embedded  in a pdf. I discovered that sometimes, when zooming in acrobat/reader  the text is not displayed correctly (i.e. linebreaks shift, somtimes the  last line of text drops out o

  • An Error Message

    I wrote the following code: try { videoControl = (VideoControl)player.getControl("VideoControl"); if (videoControl != null) {      videoControl.initDisplayMode (videoControl.USE_DIRECT_VIDEO, this);      int cHeight = this.getHeight(); int cWidth = t

  • How to query the selected row?

    i have a table displayed in a gridcontrol... how would i go about binding a controlButton to this table so that when this button is clicked, it returns the value of a particular column that is currently selected in the gridcontrol??? ... currently, w

  • Multipe EDI Transactions mapped to single B2B Monitoring Directory

    Hi We have a typical requirement situation in our company. We are doing EDI transactions with one of our Trading partner. We are exchanging different EDI documents. But, because of some limitations we are using Oracle B2B to exchange only one transac