asp.net - css help, displaying image with div -


edit:

its confirmation div box when user click on save button, typicall see confirming have receivied inqury.

and div box this:

"[image] got email, , should hear within 24 hours."

below code using display div image whats happening that, when page loads see image first , after save image see div msg , image , div disappears (as suppose to)

<div id="divstatus"></div>   <style type="text/css">  #divstatus {     background:transparent url(../images/ico_confirmation_sml.gif) no-repeat scroll 0 0;     padding-left: 22px;     min-height: 27px; }    scriptmanager.registerclientscriptblock(this, this.gettype(), key, "$(function() { $('#divstatus').html('" + msg + "').show().fadein(800).fadeout(9000); });", true); 

i have updated code bit, check demo

http://jsfiddle.net/69f6h/2/

#divstatus {     background:url("http://www.lancs.ac.uk/~lubbs/images/home.gif") no-repeat;     padding-left: 22px;     min-height: 27px;     display:none;  }​  scriptmanager.registerclientscriptblock(this, this.gettype(), key, "$(function() { $('#divstatus').html('" + msg + "').fadein(800).fadeout(9000); });", true); 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -