Jump to content

minimal if & set


ProJaCore

Recommended Posts

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 by ProJaCore
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.