Foreground image for buttons on jsp

Is it possible for me to create a button with an image on it in the jsp editor. You can do it for a link by dragging and dropping the image on the visual editor.

Hi,
HTML, and thsi is what JSP generate, doesn't support iconic buttons
Frank

Similar Messages

  • Spry menus - using images for buttons

    A search of the forums shows two approaches, to use an image
    for a button in a Spry menu.
    One of them uses HTML to put an <img> into the
    <li>. Here is the example I found cited [contributed by
    arandlett - though said there not to work in IE7].
    <ul class="MenuBarVertical" id="MenuBar1">
    <li><img src="images/bullet.png" align="left"
    /><a class="MenuBarItemSubmenu"
    href="index.htm">home</a></li>
    <li><img src="images/bullet.png" align="left"
    /><a href="#">About</a> </li>
    </ul>
    The other advises "find "background-color" and change it to
    "background-image: url(link/to/image)" " [contributed by The only
    RaM].
    Underlying of course, is the question, how does the HTML
    interplay (or not!) with the Spry javascript?
    By this time, there must be pretty wide experience. After
    all, putting interesting buttons in the popups/dropdowns is in many
    ways what this is about.
    We would be quite appreciative to learn what experience
    indicates, now, is best practice. Or, does it depend, on ... ?
    Thanks in advance for your help, David Allen

    Let me add a note to my own post.
    We would still be delighted to hear others' experience, with
    images in Spry menus. One thing does emerge with a little further
    look: The Spry menu is suited to using the _same_ image for each
    button. If the desire is to vary that image (such as to use an
    unusual font, so that the text changes on each image), then
    Fireworks clearly is the tool of choice.
    Again, we would be pleased to hear other experiences, David
    Allen

  • Timers for button in jsp?

    Hello,
    I am farily new to JSP and I want to know if it is possible to add a timer event (complete with actionlistener for button and for the timer) for a button created in the jsp page. ie I have a button created as:
    <INPUT ID="Button1" TYPE="BUTTON" VALUE="something" ONCLICK="doSomething()">
    (doSomething is writing some data to file say abc.txt)
    IN addition to this doSomething function I would also like to start a timer to write timestamp into abc.txt about every 10 min.
    can it be done? pls help me ....
    thanks.

    Nope - not with java.
    A JSP is a java SERVER page.
    The java bit of the code runs on the server, and builds an HTML page, which it sends back to your browser.
    From that point on, you just have a standard web page - you can't run any code on the client.
    Listeners, timers etc etc on the CLIENT side have to be done in javascript, which is a totally different language.
    Cheers,
    evnafets

  • Images for button

    Hi,
    Can anyone provide link for adf- predefined image repository for buttons like add, delete, search, describe so on ...

    locate the <jdev_home>/jdeveloper/ide/lib/ folder and open oicons.jar and then navigate to oracle/javatools/icons

  • Images for Buttons

    Any suggestions as to how I can use an image as a button? I have successfully imported my image, got it displaying fine but PL/SQL is unavailable for it. Why can't I do a 'When-Image-Pressed' on an imported image. I also tried using the image item but do not know how to set the source.
    Oh yeah, while I'm on the subject, how do you get an iconic button to display its icon? Does it have to be a .ico?
    Ben

    Hi,
    Well your first part of question , well i have to work on it.May be only then i would be able to suggest u anything.
    As far as iconic button are concerned. There is a property in button property pallette of button type. Set it to iconic.
    Set iconic file name(Give complete path of file).
    Well not neccassary it should be .ico. Can be other image file also.
    navneet jain
    [email protected]

  • Swaping images for buttons

    what is the action script code, and what else is needed, to
    make my buttons change color (indeed image) on rollover?
    I have got this from the manual:
    366ActionScript classesonRollOut (Button.onRollOut
    handler)onRollOut = function() {}Invoked when the pointer moves
    outside a button area. You must define a function that executes
    when the event handler is invoked.Availability: ActionScript 1.0;
    Flash Player 6ExampleIn the following example, a function that
    sends a trace() statement to the Output panel is defined for the
    onRollOut handler: my_btn.onRollOut = function () {trace
    ("onRollOut called");};onRollOver (Button.onRollOver
    handler)onRollOver = function() {}Invoked when the pointer moves
    over a button area. You must define a function that executes when
    the event handler is invoked.Availability: ActionScript 1.0; Flash
    Player 6ExampleIn the following example, a function that sends a
    trace() statement to the Output panel is defined for the onRollOver
    handler: my_btn.onRollOver = function () {trace ("onRollOver
    called");};
    how do I hanlde the trace() statement??
    Thanks,
    Dario

    Also, if the buttons are bitmap images as opposed to vector
    drawing objects or text created in Flash, the bitmaps will use a
    lot more memory.
    In Dreamweaver, one uses the replace image onRollover method
    to achieve this type of change, but Flash operates differently, so
    unless the image that your using is a picture, you can most likely
    re-create the button using Flash drawing tools and text, directly
    on the Stage.
    You can also use ActionScript to change the look of a Button,
    use an MovieClip as a Button, use the color controls(tint,
    brightness or alpha as mentioned above), use Flash filters, use the
    Tweens and Transitions classes to animate it, or use a variety of
    other advanced methods, and combinations of any of these!
    Agreeing with 2m, if you could post a simple example file
    online, we could be of more assistance.

  • Use sprite image for button icons

    Hi all,
    I'm developing a mobile app in sapui5, i have many buttons in that.
    I also have a sprote image which contains all the icons.
    Please help me to use the sprite image as icons to the button.
    Thanks,
    Rahul.

    sorry the sprote implies sprite
    sprote ~ sprite

  • Image with transparent background als foreground of a button

    I'd like to build an app with buttons using the phone's accent Color as Background and an Image with transparent Background as foreground of the button. It should look like the tiles on the start screen of WP8.1.
    The following code doesn't work (no foreground appears)
    <Button x:Name="myButton" Background="{ThemeResource PhoneAccentBrush}">
     <Button.Foreground>
         <ImageBrush ImageSource="/Assets/myImage.png"/>                    
     <Button.Foreground>
    </Button>
    Are there any ideas?
    Thanks
    Martin

    Hi mfv_technet,
    The Foreground property is used to get or set a brush that describes the foreground color. So we can not bind the Foreground to a image,
    if I do not misunderstand you, in my mind if we want to set the button look like the tiles on the start screen of WP8.1, maybe you can try to refer to the following xaml:
    <Button x:Name="myButton" Foreground="Red" Background="{ThemeResource PhoneAccentBrush}" Margin="116,136,0,363" Width="195" Height="141">
    <Button.Content>
    <StackPanel Orientation="Vertical">
    <Image Source="/Assets/myImage.png" Width="80" Height="80"></Image>
    <TextBlock Text="Button"></TextBlock>
    </StackPanel>
    </Button.Content>
    </Button>
    The result:
    If I have misunderstood you, please feel free to let me know.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a button in JSP page inside an UIWebView by pressing the button i want to run another existing iPhone native application in background only.Do anyone have a solution for this.

    I have a button in JSP page inside an UIWebView by pressing the button i want to run another
    existing iPhone native application in background only.Do anyone have a solution for this.

    Sounds like a virus.... I hope it's not...
    Launching Other Apps within an iPhone

  • Using Images for each button

    I am trying to create a spry menu that has 5 buttons and each button will have 3 different images for each state (something like this http://jjcstudios.com/woof_wallet/ ) I was going to use the insert > navigation bar but I read that this method creates a lot of extra javascript and they recommended using Spry instead. Can anyone point me in a direction to create a clean method of doing java rollovers or modifying the spry menu so it will work as a rollover. thanks john

    John,
    To place the javascript in an external file, grab the code that is producedon the page
    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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      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[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_nbGroup(event, grpName) { //v6.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          nbArr[nbArr.length] = img;
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        nbArr = document[grpName];
        if (nbArr)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          nbArr[nbArr.length] = img;
    and place it in a file called menu.js or similar.
    In your page place the following in between the <head></head> tags
    <script src="menu.js" type="text/javascript"></script>
    to link the Javascript.
    If you want to put menu.js in a different folder, make sure you adjust the link accordingly, like "js/menu.js"
    Ben

  • Help Choosing specific image for a button - slider not precise enough!

    I am using an image from my movie as a menu button. The slider is not giving me enough precision to seleect the image I want. It seems to move a few frames at a time. Is there anyway to make the slider more precise as it scrolls through the movie?
    Power Mac G4   Mac OS X (10.3.9)   Dual 867MHz 1.25 GB DDR SDRAM

    I've tried the arrow keys but that moves the cursor either to the very beginning of the movie, to the middle or to the end. I also tried arrow keys with option. control and command keys pressed down.
    There must be a more precise way of locating the still image for the menu button. Perhaps I could go back to final cut, creat a still image and import that as the menu button...but it seems like there must be a simpler solution within iDVD. Help.

  • Onmouseover for button images

    I am using images for my buttons. In the attribute section/ image attributes of the button properties I have:
    #APP_IMAGES#addrow1.gif
    I want to change the image when the user mouse over.
    I tried adding: onmouseover="this.src='/i/htmldb/addrow2.gif';" to the image, and copying the image files to the /i/ folder, but it doesn't work. How can I toggle the button image with mouseover?

    hi,
    thanks for reply. How do I post a link do I need to upload it to a server somewhere?
    I sort of got it to work in the end. When I applied onClick or onMouseDown it always applies a second onMouseOver so then I right-click the second onMouseOver in the Beahviors palette and choose onClick from dropdown menu, this seems to fix it.
    Though there is still 1 thing puzzling me. Is it possible to get the onClick image or "hit" button state to restore to original image as soon as user releases mouse button rather than when pointer rolls off the button. Only a very minor detail and not really an issue. Just would look slightly slicker if the "hit" state was a brief flash or pulse.
    cheers
    s

  • Providing image for Standard Buttons on Application Forms

    I've seen some postings on changing the standard buttons used in forms. Does anyone know if this has changed at all in Release 2? I want to put my own image for a button instead of the standard gray button and before doing the workarounds recommended, I want to know if this has been addressed in the new release.
    Thanks.

    I am afraid, the new release does not include changes where you can replace buttons with images.

  • Getting images for toolbar buttons

    I am having problem with getting images for my JToolBar buttons. Please where and how can I get the images?

    sun has these:
    http://developer.java.sun.com/developer/techDocs/hi/repository/

  • Using a background image for the buttons in spry menu

    Hi All,
    Going nuts here.
    I'm using the vertical spry menu widget w DW CS3 and trying
    to alter the css style sheet, so that I can use a li class for each
    of the 14 links on this page, with an upstate and a hover state
    only. (the focus, and hover while down will be the same as the
    others, to keep it simple and not too distracting)
    The page is here that I will be replacing the entire
    background image in sidebar1 and sidebar2 with a custom spry menu
    with the 14 li classes for 2 seperate menus:
    http://audibleimagesav.com/blank_doc.html
    Has anyone used a background image in place of just using
    bkgrd colors and borders for the spry menu ?
    I am aware of the attributes that the help docs suggest that
    need to be altered as listed here :
    http://livedocs.adobe.com/en_US/Spry/1.4/help.html?content=WS0BB04E11-1BE3-4a67-BC94-BE7DA 93A0159.html
    I have been working on just an experimental page, that is now
    hacked up, however if you want to see that it is here with only the
    first list item coded:
    http://audibleimagesav.com/site%20theme%20ideas/sprymenu_exp.html
    The spry css menu widget for that page is here:
    http://audibleimagesav.com/SpryAssets/SpryMenuBarVertical.css
    So in short, has anyone done a bkgrd image for the main menu
    (not submenu) in a spry widget?
    Thanks in advance.
    Art
    Art Hansen
    Web Design & Marketing
    http://www.innova-techsolutions.com
    321.750.3852 - Cocoa Beach, Florida, USA

    http://meyerweb.com/eric/css/edge/popups/demo2.html
    Maybe

Maybe you are looking for