Ulugbek Posted June 29, 2015 Posted June 29, 2015 Hi All Need your help How set background image uniloginform? Quote
Ulugbek Posted June 29, 2015 Author Posted June 29, 2015 See demo login I try set property backgrondimage but i see image only mainform not login form Quote
Sherzod Posted June 30, 2015 Posted June 30, 2015 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. 1 Quote
Sherzod Posted January 21, 2016 Posted January 21, 2016 Hi, For stretch maybe it help: UniSession.AddJS('Ext.onReady(function(){document.body.style["background-size"] = ''100% 100%''})'); Best regards. Quote
Beginner Posted July 14, 2016 Posted July 14, 2016 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; Quote
Sherzod Posted July 14, 2016 Posted July 14, 2016 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. Quote
Beginner Posted July 15, 2016 Posted July 15, 2016 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 Quote
mmx110 Posted July 27, 2016 Posted July 27, 2016 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 Quote
mmx110 Posted July 27, 2016 Posted July 27, 2016 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 Quote
Beginner Posted February 2, 2018 Posted February 2, 2018 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.