ProJaCore Posted January 23, 2014 Share Posted January 23, 2014 (edited) hello everbodyy i will make a loading screen in gmod with dynamic background all settings are fine but i can't finish the last step then a map load in the loadin screen the background will change to her own background image (also in her own folder under "background/MAPNAME" ) can help me anybody ? i have write my idea ... i am not so a javascript guru ... so i will ask how i can send a var (var = "skgdkerg") to a if exist -- so i mean ->> var m = mapname | end file var e = endchoice | var d = defaultbg ### if m exist at "background/" { var e = m ; } else { var e = d } css file that will manipulate from the javascript ###### {background: url('backgrounds/<script type="text/javascript"> document.write(e) </script>/1.jpg; ?>'); background-size: 100% auto; background-size: cover; width: 100%; height: 100%;} thanks Edited January 23, 2014 by ProJaCore Quote Link to comment https://forums.phpfreaks.com/topic/285603-minimal-if-set/ Share on other sites More sharing options...
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.