ProJaCore Posted January 23, 2014 Share Posted January 23, 2014 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 Link to comment https://forums.phpfreaks.com/topic/285603-minimal-if-set/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.