Roll Over

I'm trying to create a simple roll over. I want the normal picture on load, and then when they touch it, it changes to the next picture. Here are the 2 files:
arch1.jpg -first picture (original)
archives3 copy.jpg -second picture(on rollover)
If anyone could give me an example of how to do this, it would be helpfull.
Thanks,
Doc

The method is in AbstractButton and here is a simple example of how to do a rollover button image:
import javax.swing.*;
import java.awt.*;
public class TestRollover {
  public static void main( String [] args ) throws Exception {
    JFrame frame=new JFrame();
    frame.getContentPane().setLayout(new BorderLayout());
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    ImageIcon image1=new ImageIcon("original.gif");
    ImageIcon image2=new ImageIcon("rollover.gif");
    JButton button=new JButton(image1);
    button.setRolloverEnabled(true);
    button.setRolloverIcon(image2);
    frame.getContentPane().add(button,BorderLayout.CENTER);
    frame.pack();
    frame.setVisible(true);
  }// end main
}hope this helps, bopen.

Similar Messages

  • Roll over balloons in eBay searches not poping up w/ Safari 2.0.4

    Is there a setting or a technique to once again allow roll over balloons to pop up on eBay search listings? I'm referring to the "Enlarge" roll over link in the Gallery picture of search results. This is a "paid for" option that some sellers use.
    I do not have "Block Pop-up Windows" checked off in the Security Preference window.
    Firefox still allows this, but on both a Powerbook G4 and a iMac Dual Core using Safari Version 2.0.4 (419.3) this feature is no longer working for me. (It had worked in Safari until three days ago...could I have inadvertaently changed something?)
    For an example of a roll over balloon try searching eBay for an item of interest, and then scan down the resulting list. Typically a few items in large search results will have the "Enlarge" roll over below the gallery picture of an item being sold.
    24" iMac 2.16 Dual Core   Mac OS X (10.4.8)   Also, Powerbook 17" G4 & Powerbook G3

    Thanks again.
    BTW... I just received this from eBay in regard to my questioning them about this problem. As you said, they seem to be disregarding Safari.
    Dear eBay Member,
    Thank you for writing eBay in regard to the problem you are experiencing
    while trying to list your item using the Safari browser.
    If you are using OS X 10.2.x or higher, I would like to suggest using
    the Firefox browser. This browser seems to be the most compatible format
    for Macintosh users for eBay Picture Services.
    If you don't already have this browser installed on your computer,
    please visit the following page to download the Firefox browser:
    http://www.mozilla.org/products/firefox/all
    Once the page loads, please select which language you would like to
    download, and click on the link under the Mac OS X column.
    If you are using OS X 10.2.8 or older, I would then recommend using the
    Netscape browser. If you don't have this browser installed on your
    computer, please visit the following page:
    http://browser.netscape.com/ns8/download/archive72x.jsp
    Thank you for being a valuable member of the eBay community. Have an
    enjoyable time shopping and selling on eBay!
    Sincerely,
    Adam
    eBay Customer Support
    Powerbook 17" G4 & 24" iMac 2.16 Dual Core   Mac OS X (10.4.8)   Also, Powerbook G3 250 / OS 9

  • How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)

    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    3° Ive created buttons linking pages..
    - "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'
    - what should i do?
    5° Once i export it into Swf. how how can i visualize it? or put it online?
    Thank you for your time.

    stlbbl4u wrote:
    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    You should setup Object Styles - these can also include Paragarph Styles that can be triggered when the Style is selected.
    http://help.adobe.com/en_US/indesign/cs/using/WS5CEDB81A-0011-4dc9-9DE8-AC7AD4C80076a.html
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    I'm not sure what you mean - I don't do files with Animations
    3° Ive created buttons linking pages..- "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    Does it work properly when you export it to the finished file?
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'- what should i do?
    InDesign won't link directly to youtube videos. I think your best bet would be to use Downloader to download the video and embed them directly in Indesign.
    5° Once i export it into Swf. how how can i visualize it? or put it online? 
    Thank you for your time.
    You can look up how to embed a SWF file into your HTML - but it depends what you mean by "online" there's a dozen ways to get a file "online".

  • How do I make a textbox appear in a PDF made in InDesign CC when the cursor rolls over another textbox?

    I'm trying to make a textbox appear in a PDF made in InDesign when the user rolls the cursor over another textbox, and I want it to disappear when the cursor moves off the first textbox. I've tried the following with various setting, and it's just not working for me.
    Display a different button on rollover
    You can create a hot spot in which clicking or mousing over an object displays another object. To do this, create two buttons, hide one of the buttons, and use the Show/Hide Button action to show and hide the target button.
    Create an object to be used as the source button. In the Buttons panel, click the Convert Object To A Button icon.  
    Place the image you want to be used as the target button, and convert it to a button.  
    Select the target image and select Hidden Until Triggered at the bottom of the Buttons panel.  
    The image needs to be hidden in the exported document so that it can be displayed when the source button is moused over or clicked.  
    Select the source button and create two different actions, one to show the target image and a second to hide the target image.  
    If you want the image to appear when the mouse hovers over the source button, use the On Roll Over and On Roll Off events. If you want the image to appear when you click the source button and disappear when you release it, use the On Click and On Release events. In either case, use the Show/Hide Buttons action to display and hide the target button. See Make buttons interactive.   
    Use the Preview panel to test the buttons.  

    Here's more information about what I'm doing.
    1. create text box with a little text
    2. turn it into a button (Button 1)
    3. create another text box with some text
    4. turn this into a button (Button 2)
    5. check "Hidden Until Triggered" for Button 2
    6. For Button 1, select "On Roll Over" for Event
    7. For Button 1, click + to add Action and choose "Show/Hide Buttons and Forms"
    8. For Button 1, change icon next to Button 2 into eyeball (which I assume makes Button 2 visible on roll over).
    9. For Button 1,, select "On Roll Off" for Event
    7. For Button 1, click + to add Action and choose "Show/Hide Buttons and Forms"
    8. For Button 1, change icon next to Button 2 into crossed-out eyeball (which I assume makes Button 2 invisible on roll off).
    8. Export to PDF with modified smallest file size and include bookmarks and hyperlinks and include appearance for interactive elements.
    Both buttons are visible in the PDF, and nothing happens with roll over and off.
    What am I doing wrong?

  • Roll over images in a slide show

    I am trying to make a slide show of before and after images for a client.
    Rather than just have them all one after the other, I want all the after images to display as normal, and the before to display on hover for each slide.
    I can make this work in a basic slide show when rather than adding an image to the Hero Image box, I use the fill and states.
    However this only allows me to do one, as I can't add any more empty Hero Image boxes (or I don't know how to do that, is it possible?)
    When I add an image via the slide show menu it appears on top of any fills, and I can't seem to give images added this way a roll over state.
    Can anyone tell me how to either add extra blank Hero Image boxes, or how to apply the effect I want to the images in the Hero Image boxes.
    Thanks in advance, if there is any further info I can provide about my problem, please let me know!
    M

    Hi,
    You cannot add multiple hero image boxes within the same Slideshow. Now , you can use different slideshows for your different images but that wont give you the slideshow effect but you will be able to see all your after images at once and then if you rollover them you would be able to see the before images.
    Now, In order to create the effect that you want, what I would suggest you is to use a 'Composition widget'. In the composition widget, you can make the triggers as small thumbnails for your images and in the Target you can set the fill as your after image and in rollover state you can use the before image. After this you can use the Autoplay feature available in the composition widget and you will get the desired result.
    Hope this helps
    Regards,
    Rohit Nair

  • Is there a way to prevent roll-over ads from opening? Some sites are almost impossible to navigate because of this new nuisance.

    For instance, www.roughstock.com is a country music website where you can see lyrics and chords for popular songs that contributors have sent in. From the main page you click on the "Cowpie" tab to enter the page where you can search for songs. If you do this I am quite sure you will experience one of the roll-over advertisements I am talking about. They are small ads which, if you touch any portion of their area, will TAKE OVER the screen and play until the advertisement is finished or until you are able to find a usually obscure 'close' button.
    I've got 'pop-ups' disabled, but this new kind of ad is already resident on the page you wish to view so it is beating the system.
    Also, I'm not spamming for that site, it's just the most recent site where I've experienced this problem.

    It's going to get worse with crap like that as more web sites adopt HTML5 and HTML5 compatible browsers are released. There's all sorts of new tags in HTML5 that will probably be misused for displays like that.

  • Can I get rid of the underlined hyperlink and just have roll-over links?

    In iWeb 2009, can I get rid of the underlined hyperlink and just have roll-over links?

    You have to put them on the server where you are publishing your site to. Where are you hosting your site? If it's a MobileMe account then you have two options:
    1 - put the photos in a folder, name it "Pics" and put that folder in your iDisk/Pictures folder. Then use the following URL: http://homepage.mac.com/YourMMe_Account_Name/.Pictures/Pic/FileName (don't forget the period before Pictures).
    2 - put the "Pics" folder with image files in your iDisk/Web/Sites folder and use the following URL: http://web.me.com/YourMMe_Account_Name/FileName.
    If you're hosting on a 3rd party server it would depend on if you're using a domain name or not. I'm not familiar with 3rd party servers so Wyodor, Ethmoid or someone that is will need to point the way.

  • Swap images while rolling over popup menu

    Hello,
    I've been playing with fireworks CS5 for some days now and made a first attempt on a website.
    So far, i've made a navigation bar with two states in order to be able to add a simple roll over behavior, e.g. darkening text on rollover. I also have been able to make a dropdown menu (popup) via slices.
    Then I decided to swap images when on nav bar headings. So far, so good.
    When I did a preview in my browser, it appeared that as soon as I was leaving the nav bar, the image swapped back to the old setting. Perfect.
    But when I did a mouse over on one of the dropdown menu's of the navigation bar, the image swapped back as well.. I've been trying, but didnt manage to find out how to fix this.
    So, is there anyone here that knows if it is possible, and if so, how to keep images swapped to a second stage as long as the mouse is on the dropdown menu, but swaps back to the original state when leaving the dropdown and/or the navigation bar.
    Thanks in advance,

    Hi Bryan,
    It may be possible to cheat and put this onto the button:
    the option that you want is called TITLE.
    if you set one of the other parameters (e.g. the label)
    to be:
    LABEL_TEXT" TITLE="TITLE_TEXT
    basically when it adds the text onto the form it will wrap it in "
    If it doesn't strip out the " from your text you should get your extra parameter.
    it may slip past the portal checking.
    I can't test it as I only have WebDB, but I have done something similar with javascript in WebDB.
    good luck
    Michael

  • Grey Boxes when rolling over type in Illustrator CS5.5

    This is driving me insane. I have to have a solution as this is a work computer and I'm a designer who has deadlines to meet.
    Whenever I roll over, select, move or try to edit some type elements in Illustrator, the preview of the type flicks into grey boxes (see below).
    There's no cursor and I can't see what I'm typing nor can I be precise with the text placement.
    What is the problem and how do I fix it?

    By dock do you mean the Swatches panel? Have you tried the Delete Unused Panel Items action from the Action panel. They can also be in Symbols or Brushes but if you run the action it will delete them in order so that the color swatches are deleted last and if they were in a Symbol, Graphic Stlye or Brush with the original gone they should delete. Also make sure that everything is visible and unlocked.

  • How do you change the roll over color of text?

    i have text that i made a link and the roll over color is orange....how do i change this color? thanks

    cocktail5555,
    It's laid out pretty good by Suzanne Boben in in this thread, or you can use FrogDance.
    Mark

  • How do I fade in a roll over image

    Hi,
    I have a roll over text/png to link on my home page that I would like to fade in.
    I saw something on the net and tried it and it didn't work.
    Any thoughts?  I realize these won't CSS work on all browsers. Should I go to Java?
    My home page: www.adjacentdimensionsmedia.com
    HTML:
    <div class="clearovalfortree">
    <a href="portfolio.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','images/treewithtextversion3.png',1)" class="opacity" >
    <img src="clearovalfortree.png" alt="text for tree2" width="800" height="600" id="Image10"></a></div>
    CSS:
    img.opacity {
      opacity: 0.5;
      filter: alpha(opacity=50);
      -webkit-transition: opacity 1s linear;
    img.opacity:hover {
      opacity: 1;
      filter: alpha(opacity=100);
      -webkit-transition: opacity 1s linear;
    Paul

    All you need to do is place the images on top of each other and change the opacity of the top image on hover as in
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Untitled Document</title>
    <style>
    #test {
        width: 800px;
      position: relative;
      margin: auto;
    #test img {
        width: 800px;
      position: absolute;
      left: 0;
      -webkit-transition: opacity 1s ease-in-out;
      -moz-transition: opacity 1s ease-in-out;
      -o-transition: opacity 1s ease-in-out;
      transition: opacity 1s ease-in-out;
    #test img.top:hover {
      opacity: 0;
    </style>
    </head>
    <body>
    <div id="test">
        <img class="bottom" src="http://www.adjacentdimensionsmedia.com/images/treewithtextversion3.png" alt="">
        <img class="top" src="http://www.adjacentdimensionsmedia.com/big-tree-final1.jpg" alt="">
    </div>
    </body>
    </html>

  • I want to create a Roll Over on part of an image.

    Good day. 
    I would like to create a HTML page like this:   Cherry Hill Mall | Directory  for a Mall. 
    My plan is to create a image and then trace the specific store like a hotspot and then link a roll over to it.  But I'm not sure if its possible.  Is there perhaps a better way of doing this. 
    Kind regards
    Joleen

    I agree with Murray's suggestion about maphighlight.  You'll also need some stylish tooltips for the detail boxes.
    Tooltip | jQuery UI
    http://www.1stwebdesigner.com/css/stylish-jquery-tooltip-plugins-webdesign/
    Nancy O.

  • The roll over feature doesn't work for customizing, is there a way I can fix this

    I always have to change my browsers theme to see what it looks like, instead of just roll over. Is there a way to fix this?

    Previewing a persona only works on sites that are whitelisted via an allow exception.
    You can see the permissions for the domain in the current tab in:
    * Tools > Page Info > Permissions > [X] Install Extensions or Themes
    * Tools > Options > Security : "Warn me when sites try to install add-ons": Exceptions
    Make sure that you do not use [[Clear Recent History]] to clear the 'Site Preferences'.
    See http://kb.mozillazine.org/Themes#Lightweight_theme

  • Javascript error in Safari (sequel to roll-over button problem)

    Yesterday I started a thread on non-functioning roll-over buttons in Safari.
    In the mean time (with the help of iBod) I founs out that the problem has got something to do with JavaScript.
    The problem occurs in sites I built with FreewayPro 4.0.1
    The url's:
    www.wildeplantentuinen.nl
    www.kunst-zin.nl
    The problems occur only in Safari (2.0.2 and 3.0)and not in some other browsers (even ana IE version of 2001 works great)and probably since the last Tiger Update (10.4.11)
    The JavaSriptConsole gives an "Undefined Value" error for all of the non-functioning elements on a specific line.
    Any Javascript-gurus around that could help me. (I am not a code-wizard at all).

    Thanks ra5ul,
    That (more or less) solved the problem, . . . . . . but what is going on ?
    I edited all sourcecode of numerous html-pages by hand and now they work the way they should in Safari.
    But now every time I make a small change to any page, my web-building program changes the code back to the old syntax (which, again, all browsers can read except Safari).
    Why does the problem only occur in Safari ?
    I hate to put a line on the index-pages that Mac users should not try this website in Safari.
    Problem is, I made these sites in Freeway and I don't want to upgrade that program because I switched to Dreamweaver and iWeb (for the simple ones).
    Is there a smart work-around ?

  • Creating an interactive CV: mouse over / roll over pop ups, embedded documents and videos

    Hi everyone,
    I am pretty new to Adobe Acrobat Pro and new to this forum (1st post here!). Greetings from Spain... and apologies for grammar mistakes and misleading explanations (in advance). I have been checking this forum and googling quite a bit, but I do not get to many conclusions (maybe I sleep few due to our baby!).
    I want to create an interactive CV with the following characteristics:
    1) CV in 1 page in a PDF document (no problem here!)
    2) Hyperlinks in the text which open embedded files (pdf of others) hidden to the viewer but which are in the pdf document. Possible? (I want the recruiter to receive just one file). Even better if they could be open in another window (doubt it).
              How could it be done? I try add documents and they are attached at the end, so the original pdf gets to have more pages, all viewable.
    3) Furthermore, mouse over / roll over pop ups which show you a preview of the file you may open clicking the hyperlink, for a quick view of the content.
              I think that this may be done, but using other programs, like InDesign. I just try to add a document, but it's sort of a link to a document in my computer. I may add pdf, pps files.
    4) Even more, would it be possible to embed a video which would open in a new window? If not, I tried to add a link to youtube and there was a warning as "this program tries to open a window, if you trust the owner... " (similar safety message) and the very last thing I want the recruiter to have to decide whether to decide to watch it or not.
    I know its a questions in its very first stages, but the big point is to know if/what it is possible to do, so that I search in the right direction.
    If you have any idea or advice (even if not related to PDF pro, of course), just please let me know.
    Thanks a lot in advance. I hope this thread may help others.
    Cheers,
    tebanseeker

    Hi Dave,
    Thanks a lot for the input.
    (3) Right, I could not find either a way using just Acrobat Pro (I'm using XI). Sad thing that you confirm it... But it looks like you may do it using other programs on the PDF, but I don't know to use them. You may take a look at this:
    https://www.youtube.com/watch?v=HEyJuT8SSME (popup rollovers using Illustrator)
    https://www.youtube.com/watch?v=YOVRMVdZbVE (popup rollovers using InDesign)
    (4) I think that embedding would make the file to big, so I may opt for the hyperlink to youtube option, even if I deeply dislike that message, although youtube is a reliable source for the viewer.
    Any other input is very welcome. I am pretty illiterate in the field!
    Have a nice weekend,
    tebanseeker

  • Roll Over Help

    Hey Guys,
    Today I'm tring to create a roll over effect.  I have 4 Pictures: Let's Say A B C D.  If I roll over A I want the other picture to have a transparent light box on top so it looks like A is the main focus.  So if you roll over A the other pictures will turn dark and A will keep its color.  I can do this by making A a symbol and then putting a transparent png dark box on top of B C D.  That works.  What doesnt work is when I go back to the original time frame and make B a button also.  WHen I add the roll over effect, it only does it for that.  Let me show you in pictures.
    <---- that is the original
    <---- When I roll over A
    <---- When I roll over B
    The last two are made using two different flash files.  I can't put them together in one.  Can you please show me how?
    If I put them together and roll over on A, It comes out like this
    If you don't know what I'm tring to do, Please ask. Thanks for the help! I really appreciate it.

    Thanks, Here is the finished project. It works http://megaswf.com/simple_serve/76964/ Or if the other one doesn't work, try this. http://www.swfcabin.com/open/1290709215
    Thanks A LOT!

Maybe you are looking for

  • Error while transporting webservice datasources

    Hi all, I have created webservice datasources to fetch EP data to BW. and now i am transporting that Datasources from DEV to QA. I have colllected datasources alone in one req. (source system i have created in QA manually and i mapped that with DEV)

  • Using translets in a JSP page

    Hi, I have a Translet [xslt file converted to a class file].I want to use the translets to transform the given XML to HTML in a JSP page.I am able to perform the transformation,by using XSLT file directly without converting it into a class file.But w

  • Aperture 3.03 Problem

    I have noticed a serious slow-down in the Retouch function (repair & clone) after downloading Aperture 3.03. Has anyone else experienced this? Any solutions other than patience?

  • Photoshop Elements 11's Organizer slow to load Nikon NEF file thumbnails

    PSE 11's Organizer app is loading Nikon NEF file thumbnails very slowly in their thumbnail browser. Has anyone noticed this? Anyone has a fix? It's not my PC since thumbnails load quickly using Nikon's ViewNX 2 app. Thanks, Michael

  • Did BSP limit function call?

    We have create a simple BSP application, there we call a function 'LANGUAGE_CODE_SAP_TO_ISO' first in a page. But if we call another function 'READ_TEXT' continuly, the later one never work anymore! Whatz up with our BSP? Our code in BSP application: