How can I show a background image with a variable?

I try to explain it:



I have a div called "entrante1_ctn" that must contain a background image. This code works, but I don't want to do...


sym.getComposition () .getStage ().getSymbol("entrantes_sym").$("entrante1_ctn").css ('backgro undImage','url(images/entrantes/entrante1.png)');


I would like to the somtehing like that...


sym.getComposition () .getStage ().getSymbol("entrantes_sym").$("entrante1_ctn").css (' undImage ',' url backgro ( variable )');


The variable is a table element, but this code does not work:


sym.getComposition () .getStage ().getSymbol("entrantes_sym").$("entrante1_ctn").css (' undImage ',' url backgro ( ent_1 [0] )');



Please, helpp!

Hi or Hello,

  • The principle( general case) ==> .css ("background-image ',' url(images/myImage.png)'");
  • With a variable (a variable):

var image = "images/myImage.png ';

. CSS ("background-image", "url (" + image +') ');

  • Your particular case (your case) ==> .css ('background-image', ' url ('+ ent_1 [0] + ')');

Tags: Edge Animate

Similar Questions

  • How can you save the background image contained in a Thunderbird e-mail message

    How can you save the background image contained in a Thunderbird e-mail message

    Have you read the instructions which preceded the right click? What of their suite?

  • How can I get a background image sensitive identical to the junction College Web site?

    Hello!

    I tried hard to figure out how to get the same effect that has College Junction - home - daily well-being all together . More specifically, the ability to resize the window of my browser and have scale of the background image to size without image quality loss. I have a 1920 x 1034 image. The width of my page is fixed to 800px. Then I fill an object with my image (suitable size) and apply the function of width of 100%. When I saw these settings in the browser, I'm able to resize the upper window of the page of 800px with desirable effect of the image scaled to fit the browser BUT the image loses quality (resolution).

    I bought the QooQee Widget: Smart 1.1 and I'm able to do a little bit reactive recess with her, but I have not found a way to create the same effect as the junctions of college. The best I can do is create an effect similar but end with gray side bars when I resize the browser to one size other than the proportions of the image. (see below)

    site iamge.PNG

    It was a little maddening for me. I have to do something wrong. Maybe my page properties were not correctly setup? Any help would be appreciated, thanks!

    More specifically, the ability to resize the window of my browser and have scale of the background image to size without image quality loss.

    There is no such thing, and there may be - for simple mathematical reasons. The web site that you referenced uses magical, just a very large image (oversized) that most of the browsers is not displayed to the maximum size one way or another. It's an illusion at low cost. The only other factor is the pixel, scaling the browser and in the case of Chrome algorithms, they are dependent on the GPU acceleration, so it's more likely something is wrong with that, if you really see the degradation.

    Mylenium

  • How can I change the background image of an album?

    I'm trying to figure out how to change the background image of the album. I'm not trying to change the picture of the official album, but the background image for the album. Is there a way I can change it?

    Your screenshot is the section of the iTunes store. None of the graphics or text on the iTunes Store are under your control. You cannot change them.

  • How can I change the background image for a single tab on the navigation bar

    I create a film site for LEVEL and for the navigation bar, I intend to have a different character for each tab. However, I can't put one image of each separate tab. Instead, a single image appears on each of the tabs. Here is an example of the CSS source.

    < td width = "200" > < ul id = "navigation" > < br / >

    "< li > < a href ="... / pages/index.html "> home < /a > < /li > < br / >"

    "< li > < a href ="... / pages/cast.html "> Cast < /a > < /li > < br / >"

    "< li > < a href ="... / pages/pictures.html "> photos < /a > < /li > < br / >"

    "< li > < a href ="... / pages/soundtrack.html "> music < /a > < /li > < br / >"

    "< li > < a href ="... / pages/interview.html "> Interviews < /a > < /li > < br / >"

    "< li > < a href ="... / pages/links.html "> links < /a > < /li > < br / >"

    < /ul >

    < table >

    #navigation {}

    list-style-type: none;

    padding: 0px;

    margin: 0px;

    }

    #navigation li {}

    margin: 0px;

    padding: 0px;

    list-style-type: no

    }

    #navigation li a: link, #navigation li a: visited {}

    display: block;

    Width: 200px;

    height: 100px;

    text-decoration: none;

    text-align: center;

    line-height: 100px;

    do-family: "Trebuchet MS", Arial, Helvetica, sans-serif;

    make-weight: bold;

    -webkit-transition: 1000ms relieve;

    -moz-transition: 1000ms relieve;

    -ms-transition: 1000ms relieve;

    -o - transition: 1000ms relieve;

    transition: 1000ms relieve;

    color: #648AAE;

    background-repeat: no-repeat;

    background-image: url (.. / Images/gifs/Batman-still-2.gif);

    background-position: center bottom;

    text-transform: uppercase;

    letter-spacing: 0.79em;

    border-radius: 5px;

    }

    #navigation li a: focus, #navigation li a: hover, #navigation li a: active {}

    Color: #000000;

    background-image: url (.. / Images/gifs/Batman-animation-2.gif);

    background-repeat: no-repeat;

    background-position: center bottom;

    background-color: #454545;

    border-radius: 25px;

    }

    So, how can I put one image on each of the tabs (home, cast, photos, etc.). Thanks in advance for your help.

    Assign a class to the element, and use CSS to apply an image as in

  • class = 'home'; > Home

  • Cast

  • Photos

  • Music

  • Interviews

  • Links

  • and the CSS

    #navigation li a: link. Home, #navigation li a: visited. Home {}

    background-image: url (.. / Images/gifs/Batman-still-2.gif);

    }

  • How can I put a background image in AFTER I've filled the space in a document?

    Oops, I decided in my poster, I want to put a picture behind the text and pictures that I have already in it.  How can I do this?

    I am trying to get everything to look as he sits on a desktop computer, so I want to paste a picture of my desk (as in real desk top, not the computer desk top) as a background.

    Thank you

    Sophie

    We really do not know how your document is set up, so it is difficult to make a suggestion Fail-Safe. But I suggest placing your image as usual and then using object-> fix-> send backward to move behind everything else in your document. If you use layers, you can make a new layer for your décor and drag your new layer to the bottom of the stack.

  • How can I change the background image along the top of the page format?

    at the same time, it gave me the opportunity to open a session on Firefox to choose a background image that appears at the top. I would change it and can not find a menu item to take me to this option.

    He is a character. Go here: http://www.getpersonas.com/en-US/gallery/All/Popular/23

    To narrow the field down a little, choose a category from the left menu.

    If you already have some of them, click on the Firefox button, go to add-ons, then the menu appearance.

  • How can I change the background image for the lock screen?

    Hi, I just bought a new laptop and I got Windows 7 installed in the store, and I would like to change the background image for the lock screen.  When I went to activate my account, I found out that it has already been activated, but I can't find the settings-> settings more PC in the lower corner on the right.  Thank you!

    Lock screen?

    Are you referring to the login screen?

    Or wallpaper?

    Right-click on your desktop and select Personalize.

    Office link is at the bottom left and use a win-7 theme.

  • How can I write a map image with dreamweaver CC?

    How can I create an image map hotspot in dreamweaver CC

    Switch to the Design mode.

    Click on your image to the foreground.

    In the HTML (Ctrl + F3) Properties Panel, you will see tools hotspot - pointer, Rectangle, circle and polygon.

    Nancy O.

  • How can I remove a background image when replying to emails using windows live mail?

    I have Windows Live Mail on Windows 7. I'm trying to reply to an email, and I want to remove the colored background, but not pass in plain text mode. This was easy to do it on Windows Mail, but I don't see no option anywhere to do this on WLM.

    Hello TulsaJan,

    Thanks for your post.  The information below may or may not be what you are looking for.  If this isn't the case, please ask your question in the Windows Live Solution Center for questions about the Windows Live products you will find here the best assistance.

    Create a message in Windows Mail or Outlook Express and insert a background image

    Go to the Source tab

    "Locate the"tag «»

    Insert ' style = "" background-repeat: no - repeat; "" "' (not counting external quotes) after"

    See you soon

  • How can you make a background image change to a State faded at some point in scrolling?

    I am referring to a technique that I have seen used in the relevant Magazine iPad app if someone used it. I understand having a shape behind text that presents a gradient feathers and when you scroll down the form vanishes little by little the background image. But this is not the effect I'm trying to achieve. On some articles, the screen is a complete image and when you scroll type to the top, the bottom everything fades away when you scroll up to a point.

    I tried to search for hours, but I feel that I don't get the case because I don't really know what to look for. I feel like it requires something else than DPS is capable of. I hope this makes sense and I would be very happy to suggestions and help!

    Thank you!

    Try to apply the gradient of feathers to the structure of content scrollable, not the backstory. It will appear to change the color of the shading.

  • How can I make my background image look like these?

    Hello, I'm using CS5 and I was hoping someone could help me make my photo horizons resemble pictures below. Any help would be greatly appreciated.

    tumblr_lq5jsnrY261qzqmo7o1_500.jpg

    You can:

    (1) shoot the subject on a colorful background prepared in advance, using a lens to give just the right depth of field to render sharp and the background blur.  A search of photos for the "photographic background" on Google turns up examples.

    (2) hide the background, that the subject is standing face-to-face, digitally put him in front of a digital background.  This thread might be instructive for you: http://forums.adobe.com/thread/899170?tstart=0

    My favorite video is piece of masking of the basics of Russell Brown (related to the above thread, but here is a direct link): http://tv.adobe.com/watch/the-russell-brown-show/masking-basics-in-photoshop-cs5/

    -Christmas

  • How can I show just the images imported into multimedia

    For years, when I imported the photos in my organizer, he showed any who come only.  Now, they are listed in the main catalog, so the dates vary, they are everywhere.  Don't know why this has happened, but no idea how I can get back to normal?

    Display by 'Import batch. That should do it.

  • How can I show all the images that are on my computer.

    I know that someone had a glance on my computer and I could see everything that was there, he even showed me the duplicates.  I recently had my computer for a Checkup and I copied a few things on a memory stick, but some of the pictures seem to be missing.  Any ideas.

    Hello

    I suggest you follow the methods and check them off below if it helps.

    Try to follow the link below and check if it helps.

    To view the hidden files and folders

    I hope this helps.

  • How can I show only images with the tag specific higher in the hierarchy of keywords, not including sublevels?

    I use a lot the hierarchical keywords.  For example, the location of the World/Europe/Austria/Tirol/specific.  I sometimes attribute only a top-level keyword (example: Austria) of an image when I don't know any more details.  How can I show only the images that have the label that I select, but not those with levels of basements for this keyword?  Exactly as the choice in folders view to examine only a folder selected, but not subfolders.  There could be a complicated way to implement a smart collection that includes a keyword, but excludes images with more that this number of keywords, but that could be really intensive work.

    It's easy, but fairly obscure: in the library filter bar, select the keyword column.  Click on the 'Properties' button on the right, and then select display: flat.  Now painfully, scroll through the list and select the desired keyword:

Maybe you are looking for

  • Win Media Player: Video goes full screen and cannot access controls

    All videos play automatically goes to full screen and I can't access controls by the keyboard or mouse. Sometimes crashes mode full screen. I tried setting the options of WMPlayer nothing helps. Any suggestions?

  • Full software functionality for Windows 7 missing functions HP2610

    MFP HP2610, Windows 7 Installed last full feature printer software from HP website. Problems: 1. I wanted to send a fax from the computer but couldn't find controls cover page to put a message on the cover page. 2. There is no Preview Fax button. 3 q

  • Problems with my optical drive

    Hello I use Win8.1 and I should have all the Thinkvantage software and drivers for this installed device. There was a device I liked that no longer works. The feature that has been when I have use my optical drive, it turned off and I could see a sty

  • New workflow 7 TO - load or dead?

    Hello. Received flow 7 (Signature Edition) a few hours ago. I plugged it in... but nothing happened, nothing appeared. I read a few threads, so I expect a loading for a few seconds, but the guarded white/black screen icon. Plug the adapter directly i

  • Constant cpu restart

    I was wondering if someone can tell me why my guard computer restart all the time. Windows XP Service pack 3, thanks in advance for any help