Web Banner Image Fade

I'm an experienced Java Architect with no experience of JavaFX. I'm trying to develop a proof of concept Flash-style web banner to see if it is feasible to replace existing Flash elements on my client's site with JavaFX elements, thus removing the need for a costly proprietary RIA toolkit.
Now the banner in question takes a physical URL from an XML document, loads a set number (also configured in a simple XML document) of images horizontally across the banner. It fades each image out independently and once invisible, it replaces that image with another random image from the URL and fades back in (ensuring it doesn't already exist in the other visible images). Whilst doing this, a quote is displayed across the images in a colour set by the XML file, and this quote fades in and out as well, changing to another quote from a set list, and fading back in once the new quote is found.
Now I'm sure I can figure out some of the more typical functionality that I come across with Java, C++, etc. on a daily basis, such as interacting with an XML document, and loading images from URLs (perhaps), but the actual timing, fading, working loading new images and quotes at the right time, etc. is all new as I tend to develop business systems and not applications with visual effects. So help is needed on how to best go about doing this. I've begun with a very basic attempt at a Stage and tips on going forward would be appreciated.
Also, as a side note, in JavaFX how would I extend the Stage and Scenes, and any other object, essentially, and then load them as variables...? remember I'm an OO-oriented Java and C++ programmer, so I understand inheritance, but cannot seem to find the right syntax in JavaFX after an hour working on this basic Flash-eliminating challenge.
My code is below:
package ribbon;
import javafx.animation.Interpolator;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.scene.paint.Color;
import javafx.scene.Scene;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.stage.Stage;
//capture the dynamic width and height of the scene
var width: Number = bind scene.width;
var height: Number = bind scene.height;
var quote: Text = Text {
    font: Font {
        size: 16
    x: 10,
    y: 30,
    fill: Color.RED
    opacity: bind angle
    content: "Interesting quote goes here..."
var scene: Scene = Scene {
    fill: Color.BLACK
    content: [
        Rectangle {
            x: 0,
            y: bind height - 30
            width: bind width,
            height: 25
            arcHeight: 5
            arcWidth: 5
            fill: Color.BLACK
            opacity: 0.5
        quote,
var angleStart = 1.0;
var angle = angleStart;
var fade = Timeline {
    keyFrames: [
        KeyFrame {
            time: 0s
            values: angle => angleStart tween Interpolator.LINEAR
        KeyFrame {
            time: 3s
            values: angle => 0.2 tween Interpolator.LINEAR
    autoReverse: true
    repeatCount: 1000
var stage = Stage {
    title: "Photo Ribbon"
    width: 680
    height: 100
    scene: scene
fade.play();
stage;Thanks in advance.

If the banner image is not displaying, it is either not in an acceptable web file format (optimized for web as jpg, gif or png). Or it is corrupted.  Or the path to the image file on server is broken. 
It's impossible to say more without a link to your problem page.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists 
http://alt-web.com/

Similar Messages

  • How do I slice an image for a web banner and upload it to my website?

    Hi there! I am trying to slice an image into a web banner to upload it as the headed to my website layout. I have previously done this before, but a few months ago my computer crashed and I lost everything. I have a new computer now (Macbook Pro running 10.9.3) and downloaded a free trial of CS6. I vaguely remember what I am doing but am apparently way out of practice.
    I have tried at least a dozen different times to slice the banner and add the links, but for one, it keeps showing up with gaps in the image when I try and preview it on my computer. I cannot figure out why. Secondly, when I try to save it for the web as HTML and images, it is not working. It keeps saying something about needing to replace targets, etc. I am honestly lost and when I had originally made my website two years ago I don't remember it being nearly this difficult. I have some moderate HTML/CSS web design skills but I'm not sure if I am having a brainfart or what.
    Secondly, I cannot get the files to upload properly to my web server. I use FatCow as my host if this makes any difference. I've been watching tutorials on Youtube and trying to refresh my memory but I am so lost.
    Thanks!

    Can you save images via Tools > Page Info > Media ?
    The usual way to save an image is via the right-click context menu > Save Image as.<br />
    If you have a Mac without a right mouse button then see:
    * http://kb.mozillazine.org/ui.click_hold_context_menus

  • Banner image will not display in Dreamweaver; can you help?

    Banner image will not display in Dreamweaver; can you help?

    If the banner image is not displaying, it is either not in an acceptable web file format (optimized for web as jpg, gif or png). Or it is corrupted.  Or the path to the image file on server is broken. 
    It's impossible to say more without a link to your problem page.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Web Banner Crop Help

    Hi there,
    I have been asked to take some photos for a company's web banner. The dimensions are 1024 x 300 px.
    I have taken the image and used PS to crop it into the right size, but after saving the image, it displays the size as 900 x 264 px. Does anyone know why this is happening and how to get around this?
    Thanks in advance!

    Thanks for your reply.
    I really don't understand. I open the jpeg in photoshop. Go to crop and under size & resolution put in 1024 x 300 px. Once happy with the crop, I save the document as a Jpeg. I don't decrease the quality - it stays on maximum. But sure enough when I check the properties of the newly saved image, it displays as900 x 264 px.

  • How do i make images fade into each other

    Hey guys,
    I'm looking to find out how I can make text and/or images fade and appear on my web page. This affect is used on the adobe home page where text fades and other text appears.
    If someone could point me in the right direction that would be great. I think  need to know flash. but any advice would be appreciated. Thanks

    jQuery
    http://www.geeksucks.com/toolbox/23-jquery-fade-in-fade-out-effect.htm
    jQuery Cycle Plug-in might do what you need
    http://malsup.com/jquery/cycle/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Web banner looks different in Safari

    I replaced a Web banner on a site I do work for and it looks different in Safari then in FireFox and IE.
    The banner blends in to the background in the other browsers but the color appears "off" in Safarai.
    Is there anything I can do to fix this? I have never had this problem before.
    Here is the site: http://www.ehealthinnovation.org (the banner is at the top).
    Thanks.
    Brian
      Mac OS X (10.4.5)  

    I'm no expert on this by any means (so anyone out there please correct me if wrong) but I think it's to do with the color profile attached (or lack of) to the jpg used in the banner.
    This post by -g has some more information that might be useful.
    If all else fails, try changing the image to be a gif instead.

  • Simple web banner with links

    I give. I've tried and tried to google, check forums, etc. and cannot find the exact answer to what I believe should be simple (if you know what you are doing).
    I need a simple rotating web banner with three photos. Each photo represents a different event and needs a different link to a different brochure.
    I have Dreamweaver CS3, Photoshop CS and Imageready CS.
    Please help if you have a moment to spare. I would greatly appreciate it!

    NivoSlider is one option that can do what you want.
    http://nivo.dev7studios.com/features/
    http://nivo.dev7studios.com/support/jquery-plugin-usage/
    To link the images, just wrap the images inside <a> tags, as per the usage page.

  • Pause before image fade-ins?

    I'm very new to DW, so be gentle.  :-)
    on my opening web page, I have 2 jpgs that I want to fade into view on load--first one, then the other.
    I can make them both fade in using the fade command in the behaviors menu. BUT--what I really want is for the page to load blank, pause for 2 seconds before the first image fades in, pause again for about 3 seconds before the next image fades into view.  2 images, 2 pauses, 2 fade-ins.  Is there some easy code to create the pauses before the fade-ins for each image?  (I'm working in DW CS5 on a mac)  thx for whatever you can offer.

    Adjust the following values to suit
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style>
    body {
        width: 980px;
        margin: auto;
    #logo1, #logo2 {
        display: none;
    </style>
    </head>
    <body>
    <img src="http://shoguncarco.com.au/img/camaro.png" alt="description" name="logo1" id="logo1" />
    <img src="http://shoguncarco.com.au/img/challenger.png" alt="description" name="logo2" id="logo2" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <script type="text/javascript">
    $(function() {
        $('#logo1').fadeIn(3000, function() {
        $(this).delay(1000).fadeOut(2000, function() {});
        $('#logo2').fadeIn(6000, function() {
        $(this).delay(1000).fadeOut(2000, function() {});
    </script>
    </body>
    </html>
    Gramps

  • Rotating images fade-in

    i managed to create a rotating image banner with the help from this website
    http://www.communitymx.com/content/article.cfm?cid=651FF
    but without the fade-in fade-out effect it doesn't look very nice. how can i make the images fade-in like in the below website
    http://www.flipflopflo.co.uk/home
    i found some help here
    http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
    but (as i am not professional user) i dont understand what to do with the scripts shown there. for example on "Step 2" it says
    "Step 2: Then, insert the following sample       HTML for 2 sample Fade In slideshows:"
    insert where?

    free flash tutorials sites list here
    http://www.links-mylinks.com/2007/10/flash-sites-free-tutorial-templates.html

  • Help with Image fades

    Hi,
    Haven't used Flash in a couple of years now, and it has
    changed a lot...so I am a bit behind with the times. I need to do a
    site with a each section of the website having a background, that
    fades in when the user goes there. I want the transition from
    section to another to be smooth, and the new background image fade
    in on top as the other fades out (at the same time!)
    Also how do i make some of the links on my website HTML pages
    and some flash? I need to be able to link back to the flash section
    of a site when clicking on the flash section. I found an example on
    the Louis Vuitton site, if you click on your account or newsletter
    and then click back to the Services it will go back to that
    specific section of the flash site.
    http://www.louisvuitton.com
    - check it out to see what I mean.
    Hope you can help, I want to start developing my flash skills
    again.
    Thanks

    Hi,
    Haven't used Flash in a couple of years now, and it has
    changed a lot...so I am a bit behind with the times. I need to do a
    site with a each section of the website having a background, that
    fades in when the user goes there. I want the transition from
    section to another to be smooth, and the new background image fade
    in on top as the other fades out (at the same time!)
    Also how do i make some of the links on my website HTML pages
    and some flash? I need to be able to link back to the flash section
    of a site when clicking on the flash section. I found an example on
    the Louis Vuitton site, if you click on your account or newsletter
    and then click back to the Services it will go back to that
    specific section of the flash site.
    http://www.louisvuitton.com
    - check it out to see what I mean.
    Hope you can help, I want to start developing my flash skills
    again.
    Thanks

  • Banner image disappears when I move css to external style sheet

    If I have the following code in the head of the document, the banner image is displayed:
    <link href="css/styles.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="javascript/copyNote.js"></script>
    <style type="text/css">
    <!--
    #banner
    margin: 0 auto;
    width: 980px;
    height: 198px;
    background-image:url(images/banner.gif);
    -->
    </style>
    But if I move the above code to the linked external style sheet (css/styles.css) everything shows up except the banner image.
    Anyone know what I'm doing wrong?

    BcSurvivor08 wrote:
    the image path shouldn't change since the image is still in the image folder, right?
    Yes, but the path to the image in the CSS must be relative to the location of the external CSS file.
    In other words, the following rule in the home page
    #banner
    margin: 0 auto;
    width: 980px;
    height: 198px;
    background-image:url(images/banner.gif);
    would be written in the external CSS file as
    #banner
    margin: 0 auto;
    width: 980px;
    height: 198px;
    background-image:url(../images/banner.gif);
    because the CSS file is inside the css folder (one level down from the root folder).
    ../ says "From the "css" folder, go up a folder level then look for banner.gif inside the "images" folder..

  • Web Banner with Video: How to start a flash animation ONLY after .flv is finished loading.

    Hi,
    I am making a 10 sec. web banner and am required to use a video that is on an external server. I had no problem getting the video file converted, uploaded to the external server and it is now playing back perfectly after exporting the .swf file.
    The problem I am having is that my animations (mostly text items, which are placed very carefully throughout the .flv movie) aren't matching up with the movie's movements (due to the .flv starting later due to streaming – I am assuming).
    How would I go about syncing these two things, so that the animations always line up exactly with the video's movements? Something like a preloader would be totally fine. I've also read about 'Cue Points' but they seem to be a little unnecessary for what should be a simple 10 sec. banner.
    Also the .flv itself is exactly 10 sec. long, but the banner is 13 sec. long so that the last screen (with the most important information) is shown statically for 3 sec. Should I be doing anything to compensate for this other than simply adding the 3 sec. in the timeline in flash, and letting the .flv restart when the entire .swf starts looping?

    use cuepoints in the video to sync your swf movieclips/timelines with your video.

  • Image fade in

    Hi there,
    Is there somebody who knows if it's possible to have an image fade in on load in muse?
    Thanks for the help!
    Peter

    If it's just an image that you'd like to fade in on load, you can use a Composition widget (Blank), load an image into it (and get rid of the extra triggers/targets), have Autoplay set to .5 second with Transition to Fading and with Hide all Initially option checked. That should give you the desired effect. To make the only remaining trigger invisible, take the trigger's Normal state and remove the default Fill/Stroke applied to it and at last move it over the target while making sure that the Triggers on Top option is disabled.
    Thanks,
    Vinayak

  • URGENT: button rollover animations and image fade ins?

    Hello, I have a site where an image appears which has 6 words
    on it. Each word will be a button where the following actions take
    place:
    on rollover a line draws through the button
    an image fades in on the left and another on the right
    when you click the button, a large window (not popup, prefer
    within flash) appears with information, I guess an swf or mc would
    work.
    once you roll out the images fade out and the line draws in
    other direction so it disappears
    How can I code the buttons to do all this? I am using flash
    8.
    THanks!

    Ok so far so good. IF you mouse over super saturday you will
    see what happens. Now, what is the code when I mouse out so those 2
    things that appeared will disappear? Also, when you click super
    saturday, you will see an swf that loads but it loads in between
    other layers and all other buttons are active outside the swf. How
    do I overlay it over everything then also have a close button on
    this swf? here is the code for a button:
    blu.onRollOver = function() {
    blu._parent.attachMovie("link8","blu_mc",1,this.getNextHighestDepth(10000));
    sat.onRelease = function() {
    loadMovie("popup_saturday.swf", "popup");
    and the site so far:
    http://interactiveboom.com/test/final.html
    THX

  • I am using CS6 and when I go to save an image for Web the image does not retain its quality

    I am using CS6 and when I go to save an image for Web the image does not retain its quality. The first week I did this it worked just fine and now the images save very pixely.
    Here is a screenshot of my image on the artboard as I am editing it
    Here is a screenshot of the image as I'm trying to save it for Web
    As you can see, the image becomes pixely. I have tried to save it as every type of png and jpeg but nothing seems to work. I have no idea why it has started to do this. Please help!

    Change None to Art optimized then click apply(alteast in CS5 there was an apply, believe they removed that in CS6 as so many people missed that part).

Maybe you are looking for