Jump to content

Recommended Posts

Posted

Hi Ulugbek!

 

While, you can use this "solution", try:

procedure TUniLoginForm1.UniLoginFormCreate(Sender: TObject);
begin  
  UniSession.AddJS('document.body.style.background = ''url("/files/Chrysanthemum.jpg") repeat scroll 0% 0%''');
end;

Best regards.

  • Upvote 1
  • 6 months later...
  • 5 months later...
Posted

not work for me why ?

procedure TfrmLogin.UniLoginFormCreate(Sender: TObject);
begin
  UniSession.AddJS('document.body.style.background = ''url("/files/bg01.jpg") repeat scroll 0% 0%''');
  
// show image
added this code for strech not work and not show image  
  UniSession.AddJS('Ext.onReady(function(){document.body.style["background-size"] = ''100% 100%''})');
end;
Posted

 

not work for me why ?

procedure TfrmLogin.UniLoginFormCreate(Sender: TObject);
begin
  UniSession.AddJS('document.body.style.background = ''url("/files/bg01.jpg") repeat scroll 0% 0%''');
end;

 

Hi,

 

Now you can use this:

 

UniMainModule->LoginBackground

 

Best regards.

Posted

OK I doit like that

Login Page Backgorud

 

and on create login form

add this

UniSession.AddJS('document.body.style.background = ''url("/files/bg01.jpg") repeat scroll 0% 0%''');

 

 

Thanks

  • 2 weeks later...
Posted

Hi Dear Delphi Developer!

I set with: UniSession.AddJS('document.body.style.background = ''url("/files/bg.jpg") repeat scroll 0% 0%''');

But Why BackGround Image for login form shows in Standalone Mode and not Shown in isapi mode under iis?

If I can add js file to the server before runing UniGui please tel me script Format for that?

Regards

Posted

OK! I resolved it with set in Costum CSS:

background: #fafafa url(files/image.png) center top repeat;

 

its Work for me under iis!

 

there is some other sample for use:

 

body .site {
background-color: #fafafa;
}

 

Alternately, you could add a background pattern to it should you desire:

body .site {
background: #fafafa url(http://yourdomain.com/path/to/your/image.png) center top repeat;
}

 

And finally, you could implement a fullscreen image if needed:

body .site {
background: #fafafa url(http://yourdomain.com/path/to/your/image.jpg) center center no-repeat;
-webkit-background-size: cover;
background-size: cover;
}

 

 

Regards

  • 1 year later...
Posted

Hi All

How add this css class or where add for login form ?

Anybody help me pls

 

OK! I resolved it with set in Costum CSS:

background: #fafafa url(files/image.png) center top repeat;

 

its Work for me under iis!

 

there is some other sample for use:

 

body .site {
background-color: #fafafa;
}

 

Alternately, you could add a background pattern to it should you desire:

body .site {
background: #fafafa url(http://yourdomain.com/path/to/your/image.png) center top repeat;
}

 

And finally, you could implement a fullscreen image if needed:

body .site {
background: #fafafa url(http://yourdomain.com/path/to/your/image.jpg) center center no-repeat;
-webkit-background-size: cover;
background-size: cover;
}

 

 

Regards

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...