Change images dynamically in Repeater

Hi,
          I have an image control inside repeater.  I need to change the images dynmically during mouseover and mouseout.
Regards,
Jayagopal.

HI Jayagopal,
Just replace these below two functions in your code...
You are accessing the rxImage.currentItem which is not available after the Repeater has completed looping through the items. However if you want to get the details of the item clicked you can make use of the getRepeaterItem() function in conjunction with the current target.
var currRepItem:Object = event.currentTaget.getRepeaterItem();
private function onMouseOver(event:MouseEvent):void
                var localIndex:int=arsImage.length-1;
                var currItem:int = event.currentTarget.getRepeaterIndex();
                //imgSource[rxImage.currentItem].source = arsImage[mouseOverindex+1].label;
                var imgSource:Image = event.currentTarget as Image;
                imgSource.source = arsImage[mouseOverindex+1].label;
                mouseOverindex += 1;
                if(localIndex == mouseOverindex)
                    mouseOverindex=0;
            private function  onMouseOut(event:MouseEvent):void
             var imgSource:Image = event.currentTarget as Image;
                imgSource.source=arsImage[0].label;
Thanks,
Bhasker

Similar Messages

  • How to change images dynamically in jsp?

    Hi All,
    i Want to know how to change images dynamically in jsp, for example in any site if u look at advertise or any images, it will be changed after every few seconds.
    Please guide me
    Thanks
    Sandesh S

    sandeshas wrote:
    Hi BlusC,
    i was searching your mail Id to ask the question directly to u,i checked in your blog also, but i didnt get,I want to keep my email spam safe. Only trusted people and direct friends have it. Just use the forums for discussion.
    my question is suppose if i want to display and change the advertise(adds from different company ) in my web site,how can i do it by using jsp?
    Do i need to create animated gifs which contains all company adds??one might be from movie add,after few seconds next one migth be some other web site add like that, how can i achieve this in my servet,jsp or using struts.You create animated gifs with an [animated gif editor|http://google.com/search?q=animated+gif+editor]. There is nothing what JSP can do for you here.

  • How to change image dynamically in the edit margin of a report

    HI
    I want to change the image in the edit margin depending upon a value in the report . I have tried to use conditional formatting , but it's giving error ,"value references at above the frequency of the report "
    Please suggest some other means
    thanks

    hi himanshu,
    you can perform this on the basis of LSIND count,
    refer to the folowing code
    APPEND 5 Fcodes to I_BUTTONS TABLE
    set  pf-status 'MY MENU' excluding 'I_BUTTONS'.
      window starting at 2 2 ending at 200 40.
      if sy-lsind = 1.
        do.
          clear: v_chk_bx.
          read line sy-index field value wa_final-vbeln chk_bx into
          v_chk_bx.
          if sy-subrc <> 0.
            exit.
          endif.
          if v_chk_bx = 'X'.
            perform z11_partner_pop using wa_final-vbeln.
          endif.
        enddo.
      else.
        if sy-lsind = 2.
          append 'PART' to i_tab.
          append 'SCHD' to i_tab.
          set pf-status 'MY MENU' excluding i_tab.
          do.
            clear: v_chk_bx.
            read line sy-index field value wa_vbep-vbeln chk_bx into
            v_chk_bx.
            if sy-subrc <> 0.
              exit.
            endif.
            if v_chk_bx = 'X'.
              perform z11_partner_pop_2 using wa_vbep-vbeln.
            endif.
          enddo.
        endif.
      endif.
    reward if helpful
    Rohan

  • How to change the image dynamically depend upon the input parameter

    Hi All
    I have one report running depend upon the Organization specific, I have 15 operating unit and 15 different logo for each operating unit.
    How to change the Logo dynamically depend upon the input passed by the user.
    If I have three or four logo i can add in my layout using if else statement and its works fine but i have more that 10 logos so its no possible to keep these in My RTF Template.
    Is it possible to change the logo according to the input without keeping this in Template.
    I have seen this link but its not working fine
    http://erpschools.com/articles/display-and-change-images-dynamically-in-xml-publisher
    Regards
    Srikkanth.M

    Hi,
    I have not completed fully,so sorry i cant able to share the files, could you please give me some tips and steps to do.
    Without having the logo in RTF if it possible to bring the logo depends on the user input (Ie Operating unit).
    Regards
    Srikkanth

  • How to change the images dynamically in a table.

    Hai,
                     How to change the images dynamically in a table based on the condition in webdynpro abap.
    Edited by: Ravi.Seela on Oct 13, 2011 2:17 PM

    This has been much discussed earlier. Do search posts.
    For your scenario i would do the following.
    inside your node which is binded to the table, i create a new node image with cardinality 1 ..1 and a attribute called path of type string.
    create a  supply function for the node image .
    Supply method now has a Element (Parent element ) and node.
    Based on your record in element, set the right image source to path attribute and bind the node.
    This will make sure that the framework calls the image supply function for every row in a table.

  • Displaying dynamically changing image: a problem with JLabel.

    Hello! I use NetBeans 5.5 and I develop my GUI with Matisse. I'm rather a beginner in developing GUIs with this editor...
    I'd like to display a dynamically changing image. The idea is: GUI shows the image, that is modified as some computations run in a different thread. App will be run on a single machine.
    I'm trying to display the image as a label's icon. The problem is that my app's frame can be resized - and when it is, the label also resizes. When the label is resized, the image should also be resized - the image should always be of the same size as the label. The problem? I noticed, that it works only when I make my app's bigger. When I try to lower its dimensions, the label's dimensions remain the same. Why the label don't make its size smaller?
    My code works as follows: when app's main frame is resize, the panel (the one, that the label is placed in) is also resized. And, since the label is in the panel, it (should) also be resized. So I wrote all the resize-events handlers (therefore I know that the resize event is sent when my app's frame is resized, and when the panel is resized - but the label is resized only when it grows bigger). In this methods I modify the image displayed in the label (I resize the image).
    Or, perhaps, there is some other way to show a (dynamically changing) image with Swing... I chose JLabel, because I didn't want to write my own JComponent. JLabel can display image and that is all I need. The problem is: when the label grows bigger, I create a new, bigger image (icon). Why my label don't get smaller (the resize event isn't even sent)?

    There is no component that dynamically resizes an image. You need to create your own. Something like this:
    JComponent component = new JComponent()
         protected void paintComponent(Graphics g)
              //  Scale image to size of component
              g.drawImage(yourImage, 0, 0, getWidth(), getHeight(), null);
    };

  • Change image size dynamically in BIP report

    Can we change the size of image dynamically in bip report. If yes can I get some doccument or samples on it.
    Thanks
    Aj

    I am doing small POC
    I have a rtf template with three sample images on it with three different sizes for 1” by 1” , 3” by 3” and 5” by 5”.
    I have a standard size of 2” by 2” image in my server (Could change size in future depending on req)
    Now when I run the report the template should call the standard image from server and replace the sample images on the rtf and show the the standard image in three different sizes.
    Pls let me know if i am missing something

  • Dynamic Background - Changing images

    Hi,
    I'm new to Dreamweaver and also web design. I saw a site with a nice dynamic background that changes images. I was wondering what sort of function would I be looking to code to get the same sort of result? The website I saw was https://www.bizpora.com
    Thanks in Advance

    That site is using a JQuery supersized slideshow. You may download here:
    http://buildinternet.com/project/supersized/

  • Change image source distorts new image

    Is there any easy way, once I change image source in Edge Animate, to get it to at least be proportionally correct? When I change an image source with a different size, it comes in distorted.

    If you change the source it will fill the boundaries of the original source image automatically. If the size is different, it is probably better to delete the original image and drop the new one.
    If you are talking about loading an image dynamically and changing them dynamically, use css background image with no-repeat and have you div be the size of the largest image used unless you code the image size when they change.

  • Background color change of dynamic graphic

    hi ,
    i am using 3D Gauge dynamic  graphic i want to change image backgrond color from white to blue.
    thanks in advance.
    regards,
    rohit

    You can add a <rect> tag, see text in bold below ...
    <?xml version="1.0" encoding="UTF-8"?><svg height="300" text-rendering="geometricPrecision" width="300">
         <rect height="299" id="Background"  width="299" x="0" y="0" style="fill:none;stroke:rgb(0,255,0);stroke-width:1" />
         <defs>
              <radialGradient cx="70%" cy="30%" fx="80%" fy="40%" gradientUnits="objectBoundingBox" id="black-white_1" r="150%" spreadMethod="pad">
                   <stop offset="100%" stop-color="rgb(180,180,180)" stop-opacity="1"/>
                   <stop offset="100%" stop-color="rgb(0,0,0)" stop-opacity="0"/>
              </radialGradient>
         </defs>
         <ellipse cx="150" cy="150" fill="url(#black-white_1)" rx="140" ry="140" stroke="rgb(0,0,0)" stroke-width="1"/>
         <ellipse cx="150" cy="150" fill="none" rx="140" ry="140" stroke="url(#black-white_1)" stroke-width="4"/>
         <line fill="none" id="Needle" stroke="rgb(255,20,20)" stroke-linecap="round" stroke-width="5" transform="rotate(330 150 150)" x1="150" x2="150" y1="150" y2="260"/>
    </svg>
    Regards.

  • How to add Image dynamically in Webdynpro ABAP

    Hi Experts,
    How to add Image dynamically in Webdynpro ABAP.
    My requirement is i maintain all the images in a table.
    image source has to pick the table URl dynamically and display.
    is that possible in webdynpro?
    and also please give the suggesion,
    without using MIME objects is that anyway to get images?
    Thanks in advance.
    Regrads,
    Jeyanthi

    Hi,
      are those icons wou want to display then. he following code will be useful.
    data : lo_IMG type ref to CL_WD_IMAGE.
    LO_IMG = cl_wd_IMAGE=>new_IMAGE( id = img_id SOURCE = 'ICON_BW_APD_TARGET' tooltip = sts_tltp ).
    lo_cont->add_child( the_child = lo_img ).
    here lo_cont is the container where you want to add the image dynamically and source is the attribiute through which you can change the ICON image. this thing you can getit from data base table and change accordingly.
    Regards,
    Anil kumar G

  • How to render image dynamically in ADF using URL

    Hi all,
    I have a requirement where i need to render the images dynamically using the url. As the url are of the IPM Application and each of the url is associated to a particular image of a particular document. I have tried making the URL Data Control but couldn't able to get the Image as per the document,even the image is not being rendered onto the page.I want the whole IPM console to be rendered on my jspx page.
    Note- It is not a wsdl url.
    Please suggest how should i implement this
    thanks in advance

    if you decompile the imaging.ear file, there is a web.xml file which you can add the following parameter:
    <context-param>
    <param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name>
    <param-value>never</param-value>
    </context-param>
    or take a look at      Receiving "Warning: Unable to load content in a frame. Frame content will load at the top level." When Trying to Use the <af:inlineFrame> Component [ID 1266770.1] on Oracle Support.
    Make sure you take a copy of the imaging app before you make changes. You can then upload back through the weblogic console.
    Sudi

  • Background image is slightly repeating itself in my table

    Last week, someone really helped (Murray) in helping me add a
    background image to my header table, then nesting another table
    inside for my links. I tried to do it manually, however, it just
    wouldn't work. He then added some new code and it worked perfectly!
    However, I did notice that now the background image in that table
    doesn't extend the full length of the table. It cuts of 1/8th of an
    inch short and then the image starts to repeat itself. It isn;t
    much but doesn't look clean. Any ideas on how to change it to
    flush? I tried to manuever the main table of the site over, but it
    didn't have an effect. I think the background image just stayed the
    same with the change. Thanks for your help once again! Code is
    below but had to shorten it since ithis site only allows a certain
    amount of text. website is:
    www.1percentclub.org
    <html>
    <he
    ><title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <script language="JavaScript">
    <!--
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a
    )&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
    i<a.length; i++)
    if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
    d.MM_p[j++].src=a
    function MM_findObj(n, d) { //v3.0
    var p,i,x; if(!d) d=document;
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers
    .document); return x;
    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
    Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
    if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    </head>
    <style type="text/css">
    a {text-decoration: none;}
    </style>
    <body bgcolor="#000000" text="#CCCCCC" link="#33CCFF"
    vlink="#33CCFF" alink="#33CCFF" leftmargin="0" topmargin="0"
    marginwidth="0" marginheight="0"
    onLoad="MM_preloadImages('/History-Header2008WhiteBord.jpg','/Showcase-Events-LinkWhiteBo .jpg','/Instructional-DVD-2008GLOW.jpg','/Skills-Clinics-Link-2008GLO.jpg','/Contact-Us-Li nkGLOW.jpg','/GameTimeGear-LogoGLOW.jpg','/Playitagainsports-logoGLOW.jpg','/Africa-Link_G LOW.jpg')">
    <table width="60%" border="1" cellspacing="0"
    cellpadding="0"
    bordercolor="#FFFFFF" align="center">
    <tr bgcolor="#333333" valign="top" align="center">
    <td height="1125">
    <div align="left">
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0"
    style="background-image:url(2008-Website-Header_FINAL_-.jpg);">
    <tr valign="top">
    <td height="289">
    <table width="100%" border="0" cellspacing="3"
    cellpadding="7">
    <tr valign="top">
    <td height="40">
    <p><font face="Arial"
    color="#333333"><b><font size="3"
    color="#33FFFF"><a href="homepage.htm"><font
    color="#33CCFF">Home
    </font></a><font color="#33CCFF">|
    </font><font color="#33CCFF"><a
    href="centralcalifinest.htm">Showcase
    Events</a> | <a href="clinics.htm">Skill
    Clinics</a> | <a href="clinics.htm">Team
    Clinics</a> | <a href="videos.htm">DVD</a>
    | <a href="History.htm">History</a>
    | <a href="Contact_1%25_CLUB.htm">Contact
    </a></font></font></b></font></p>
    </td>
    </tr>
    </table>
    <p><br>
    </p>
    <p>  </p>
    <p><br>
    </p>
    </td>
    </tr>
    </table>
    <table width="100%" border="0" cellspacing="0"
    cellpadding="6">
    <tr>
    <td height="780" align="center" valign="top"
    width="25%">
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr align="center" bordercolor="#FFFFFF"
    bgcolor="#333333">
    <td height="122"><a href="#"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image14','','/History-Header2008WhiteBord.jpg',1)"><img
    name="Image14" border="0" src="/HistoryLinkWhite-border.jpg"
    width="180" height="118"></a></td>
    </tr>
    <tr align="center">
    <td height="125"><a href="#"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image15','','/Showcase-Events-LinkWhiteBo.jpg',1)"><img
    name="Image15" border="0" src="/Showcase-Events-Link2008Whi.jpg"
    width="180" height="118"></a></td>

    Change this -
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0"
    style="background-image:url(2008-Website-Header_FINAL_-.jpg);">
    to this -
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0"
    style="background-image:url(2008-Website-Header_FINAL_-.jpg);background-repeat:no-repeat; ">
    It's time for you to apply yourself to learning HTML and CSS.
    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
    ==================
    "dontsettle22" <[email protected]> wrote in
    message
    news:fnq7cb$a2p$[email protected]..
    > Last week, someone really helped (Murray) in helping me
    add a background
    > image
    > to my header table, then nesting another table inside
    for my links. I
    > tried to
    > do it manually, however, it just wouldn't work. He then
    added some new
    > code
    > and it worked perfectly! However, I did notice that now
    the background
    > image
    > in that table doesn't extend the full length of the
    table. It cuts of
    > 1/8th of
    > an inch short and then the image starts to repeat
    itself. It isn;t much
    > but
    > doesn't look clean. Any ideas on how to change it to
    flush? I tried to
    > manuever the main table of the site over, but it didn't
    have an effect. I
    > think
    > the background image just stayed the same with the
    change. Thanks for
    > your
    > help once again! Code is below but had to shorten it
    since ithis site
    > only
    > allows a certain amount of text.
    >

  • Rendering images dynamically from file server path

    Hi,
    We are having JDeveloper 11.1.2.4
    We have following requirement - Image files are located on server. File locations (path and name) are stored in database table.
    We need to dynamically access file locations from database table, access file from server and render it in ADF image component.
    Is it possible? If yes, we would really appreciate some pointers/help on how to achieve it.
    Please note that we are able to render images dynamically when they are stored in database BLOB column. We can do that using a ImageServlet class. In doGet() method, we are fetching the database BLOB column based on current row id.
    Thanks,
    Vivek

    Here is the scriplet I tried. But it is not redering the image and definitely I am missing something here. Please suggest changes or any direction.
    <%
    File f = image.getThumbnailFile(); //image file from a bean
    ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
    InputStream inputStream = new FileInputStream(f);
    byte[] bytes = new byte[1024];
    int read;
    try{
              while ( (read = inputStream.read(bytes)) > -1 )
                      byteOutput.write(bytes, 0, read);
              //byte[] ba = byteOutput.toByteArray();
              ByteArrayInputStream byteInput = new ByteArrayInputStream(byteOutput.toByteArray());
              response.setContentType("image/gif");                       
              while ( (read = byteInput.read()) > -1 )          
                   response.getOutputStream().write(read);
              response.getOutputStream().flush();
    catch(Exception e){}                           
    %>

  • Displaying image dynamically

    Hi,
    i am getting data from backend sys its working fine.
    when eve we r give input like material number like 1, 2, ....... then then press button it shows data and IMAGE also
    here i have taken images 1.jpg, 2.jpg, .......... workspace -
    > mimes-----> comp.............
    i am setting source of that image prop like 1.jpg here
    when i give input   1   and click button it display r/3data and image but it is used for that only. if i want to display 2  then i change image prop source (here material number is 1 and image is 1.jpg.........depends up on material num can we write code here)
    i want to display it dynamically (depends upon material num it can show the data and image)
    can any one help
    Regards
    bhanu

    Hi Nikhil,
    i am explaining about my thread clearly
    i have taken 1.jpg, 2.jpg, 3.jpg....... images in workspace ..mimes ... components ... packageee
    now take button and image with  visible prop
    In  init() method i have take instance,bind for backend data
    setting visible prop none(image)
    In onaction()
    have taken execute,invalidate in try catch
    setting visible prop is visible(image)
    when i give material no  1  then it can display output  data and image
    if i want to display material no 2 data
    when i give  material no 2 then it can display output data  but image is 1.jpg  b'coz  i set source of image porp as 1.jpg
    the above posted code i have taken in onaction button().
    through hard coding i can display it individually but i want to display it dynamically  likee
    when we give material no 1 it can display 1's data and image 
    when we give material no 2 it must  display 2's data and image
    can u explain me clearly if possible with step by step.
    sorry for the late reply
    Regards,
    bhanu.

Maybe you are looking for

  • Error message on screen: No bootable device -- insert boot disk and press any key comes on

    Error message comes on screen: No bootable device -- insert boot disk and press any key.  What do I do?

  • WEBUTIL ON AS 10.1.2

    Hi There, I've configured WEBUTILS on IDS but dont know how to configure it on Application Server 10.1.2 ..pleae guide as I need to use some webtuils function .. Thanks

  • Macros in BPC 7.0NW

    Hi all, Does anyone knows any document or place where I can find the name of all the existing macros I can use in BPC? I would like to use custom buttoms in the forms but I don't know the name of the macros availables and I have not installed the on

  • DNS host name for virtual IP on WLC 5760?

    Hi all, Does anybody of you know, if there is a way in setting a DNS hostname for the virtual IP on the 5760 WLC? The parameter-map does not offer any option. AireOS based WLCs do offer it in order to see a DNS name instead of the virtual IP when con

  • Final Cut Pro 4.5 and Quicktime 7 compatibility issues. Error 39!

    I see some people saying Quicktime 7 is not compatible with Final Cut 4.5 and some saying it is. I upgraded to 10.3.9 and then Quicktime 7 and I started getting error 39 at this one spot in my timeline and then crashing if I tried to play just a few