Announcement

Collapse
No announcement yet.

Background Image

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    In the onapplicationinit you need to break the php section by ?>
    then apply your style
    then re-open php <?php
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      This would be the same ?!?

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

      But it does not word.

      Comment


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

        Code:
         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
        Last edited by Mansaylon; 03-12-2016, 07:00 AM.

        Comment


        • #5
          background-image: url('body.jpg') !important
          /Giuseppe

          Professional Scriptcase Services
          Some Customers opinions

          Comment


          • #6
            Great. Thank you very much!!

            Comment

            Working...
            X