• Custom loading screen - Help with the java
    0 replies, posted
Hello :) I'm building a custom loading screen. The php $_GET functions is working fine, so is OTHER java within the webpage, but I can't get the functions called by garrysmod to display anything at all. I have created the java functions according to this (crappy) wiki page [URL]http://wiki.garrysmod.com/page/Loading_URL[/URL] but the result is that simply nothing is shown. A google search doesn't turn up anything else at all related to these java functions. Here is my code: [CODE] <body> <p id="status"></p><p id="dfile"></p> <p id="files"></p> <p id="filesleft"></p> <script> var status="", dfile="", files="", filesleft=""; function SetStatusChanged( status ) { var status= "<font color='red'>Connection Progress: "+status+"<br>"; document.getElementById("status").innerHTML=status; } function DownloadingFile( fileName ) { var dfile= "Currently downloading: "+fileName+"<br>"; document.getElementById("dfile").innerHTML=dfile; } function SetFilesTotal( total ) { var files= "Total files to download: "+total+"<br>"; document.getElementById("files").innerHTML=files; } function SetFilesNeeded( needed ) { var filesleft= "Files remaining: "+needed+"<br>"; document.getElementById("filesleft").innerHTML=filesleft; } </script> </body>[/CODE] Any ideas why it's not working? The functions aren't being called because the strings ("<font color='red'>Connection Progress: ") aren't shown either. Thanks! EDIT: fixed the incorrect concatenation, still no luck EDIT2: Nevermind, I got ahead of myself and forgot all about correctly naming the variables. Code above ^ works fine!
Sorry, you need to Log In to post a reply to this thread.