So, I made a 1920x1080 Loading picture, and added a spinning 'loading .gif' but, I wanted to add the current map, player name/avatar and how many people are on.
I've already looked at: [url]http://wiki.garrysmod.com/page/Loading_URL[/url]
I don't really understand how to implement javascript into html(I also have no past html experience)
Can anyone help me ?
Also, the loading page is here: [url]http://zealousgamers.com/LoadingScreen/LoadenScreen.html[/url]
There is music so if you don't want to hear it, mute sound before you get to it.
Seemingly obvious you have no HTML experience when you designed the whole loading screen with a picture :v:
Well, first of all any javascript goes in <script> tags, so just before the end of the body you can put them here like so:
[code]
</body>
<script>
//Javascript here
</script>
[/code]
I don't know whether you have programming experience, but the Javascript functions return the information specified. If you use have a <div> element with an id like "info", then you can use
[code]
function GameDetails( servername, serverurl, mapname, maxplayers, steamid, gamemode ) {
document.getElementById("info").innerHTML = servername+"<br>"+mapname;
}
[/code]
And this code goes inside the <script> tags.
This will display the server name, then on a new line, the map name
Sorry, you need to Log In to post a reply to this thread.