EXAMPLE

HTML

&lt;div id="myBackground"&gt;&lt;/div&gt;


CSS

#myBackground {
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;

    background: url(http://jsfiddle.net/img/initializing.png) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}


JavaScript

var imgUrl = "url(http://cdn.css-tricks.com/wp-content/themes/CSS-Tricks-10/images/bg.png)";

$(function() {    //    starts when page is loaded and ready
    setTimeout(function() {
        $("#myBackground").css("background-image", imgUrl);
    }, 2000);    //    2 second timer
})




Alternate Style (with FadeIn/Out effect)

HTML

&lt;div id="myBackground"&gt;
    &lt;img src="http://jsfiddle.net/img/initializing.png" /&gt;
    &lt;img src="http://cdn.css-tricks.com/wp-content/themes/CSS-Tricks-10/images/bg.png" /&gt;
&lt;/div&gt;


CSS

#myBackground {
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
}
#myBackground img {
    height: 100%;
    width: 100%;
}
#myBackground img:nth-child(2) {
    display: none;
}


JavaScript

$(function() {    //    starts when page is loaded and ready
    setTimeout(function() {
        $("#myBackground img:nth-child(1)").fadeOut("slow");
        $("#myBackground img:nth-child(2)").fadeIn(1500);
    }, 2000);    //    2 second timer
})


Changing background image one time on responsive background image
I use a TextChanged-EventHandler
I wrote a program in c# that creates a new TextBox on every button1_Click event
Now,I want each new TextBox (which was created) to show typed text.
How can I do this with EventHandler(TextChanged)?

namespace WindowsFormsApplication5
{
    public partial class Form1 : Form
    {
        Int32 i = 1;

    public Form1()
    {
        InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
        TextBox c = new TextBox();
        this.Controls.Add(c);
        c.Name = "x" + i.ToString();
        c.Left = 3;
        c.Top = 30 * i;
        i++;
        c.TextChanged += new EventHandler(c_TextChanged);


    }

    void c_TextChanged(object sender, EventArgs e)
    {
        textBox1.Text =           
    }

}
}

