background-image

jquery simple animate/rotate of a css background-image inside a div?

Hi all, I was wondering if anyone could help me out, or point me in the right direction. I'm looking for a snippet of jquery that will automatically change the background image of a div every say 5 seconds or so. My initial bg image is set in css, but i'm not sure how to create the function to make it swap between an array of images? I...

Background Image Flickers on WebKit-based browsers (Safari/Chrome)

I have a image frame which constantly and quickly changes images when users drag over the frame. These images are Real-Time generated based on user's interaction so every image generated should be downloaded as soon as it become available. The highest speed could be 5 images per seconds. However, I have a image flickering problem when us...

Background image won't display at its original size

With the following code, I can't get the background image to display at its original size (it's always a fair bit larger). I tried changing the Stretch property, but "None" seems to be the most appropriate value. <Canvas Width="500" Height="500"> <Canvas.Background> <ImageBrush ImageSource="{Binding ElementName=...

jQuery class fade on input blur/active

Hi guys I have made an input with an image as background. When the input is active the input changes image. I want it to animate/fade between theese states. The way it works now: Class idleInput is added to the input onload. When input is active activeInput class is added instead. How can I animate this? <script type="text/javascript...

Change WPF window background image in C# code

I have a couple of Images configured as application resources. When my application starts, the background of the main window is set via XAML: <Window.Background> <ImageBrush ImageSource="/myapp;component/Images/icon.png" /> </Window.Background> If a given event occurs, I'd like to change this background to another resource ("/mya...

Changing the background image of HBox

Hi, I have assigned a logo image of my software to HBox as follows - <mx:HBox id="logoBox" width="98%" textAlign="left" backgroundSize="100%" horizontalAlign="left" height="18%" backgroundImage="images/img_header_new_3-bg.jpg" verticalAlign="bottom" backgroundColor="#1573A4"> Now I need to change the backgroundImage to some other im...

Using CSS with background image/login

Currently I'm trying to edit a login screen for a web based application. As of now, I have the login prompt (user & password) at a particular place on page so that it corresponds with the background image. Right now this image is set to 1024x768. What I was wondering, is there a way to have the background automatically scale depending ...

Layering UIViews so that bottom most layer can be seen

I have a UIView to which i add a background image. Then to that view i add a scroll view. To the scroll view i add some UIButtons. I would like to be able to set the scroll view to be transparent (still being able to see the UIButtons) so that i can see the background image underneath it, so that it shows between the buttons. I have t...

scale background image without div (on body)

Any way to do this without using a div? Acting only on the body alone? ...

JPanel with image background

How to put image background on JPANEL? JPanel pDraw = new JPanel(new GridLayout(ROWS,COLS,2,2)); pDraw.setPreferredSize(new Dimension(600,600)); //size of the JPanel pDraw.setBackground(Color.RED); //How can I change the background from red color to image? ...

How to maximize image size as the size of the JPanel

How I can maximize the size of picture with the size of JPanel? ...