Background Image

Hello

How can I put a background image in a single application?
I tried it in the onLoad event:

body {
background-image: url(‘body.jpg’);
}

Apparently this statement is not respected there.

Bye
Mansaylon

In the onapplicationinit you need to break the php section by ?>
then apply your style
then re-open php <?php

This would be the same ?!?

echo "
<style>
body {
background-image: url(‘body.jpg’);
}
</style>
";

But it does not word.

I have analyzed the source code. Will there perhaps my background-image of the color overrides?


 function scAjaxProcOn(bForce)
  {
    if (null == bForce)
    {
      bForce = false;  
  }
    if (document.getElementById("id_div_process"))
    {  
    if ($ && $.blockUI && !bForce)  
    {  
      $.blockUI({           message: $("#id_div_process_block"),    
      overlayCSS: { backgroundColor: sc_ajaxBg },      
    css: {             borderColor: sc_ajaxBordC,      
      borderStyle: sc_ajaxBordS,  
          borderWidth: sc_ajaxBordW  
        }    
    });    
  }  
    else    
  {

        document.getElementById("id_div_process").style.display = "";  
      document.getElementById("id_fatal_error").style.display = "none";
        if (null != scCenterElement)    
    {    
      scCenterElement(document.getElementById("id_div_process"));
        }    
  }
    }  
} // scAjaxProcOn 

background-image: url(‘body.jpg’) !important

Great. Thank you very much!! :slight_smile: