• Loading Screen
    17 replies, posted
[code]<html><head> <iframe width="1" height="1" scrolling="no" frameborder="no" src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F47601039%3Fsecret_token%3Ds-aXCQf&amp;auto_play=true&amp;show_artwork=false&amp;color=ff7700"></iframe> <title>Gamefire</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"> body { margin: 0px; padding: 0px; font-family: Verdana, Geneva, 'DejaVu Sans', sans-serif; font-size: large; color: rgb(255,255,255); background-color: rgb(0,0,0); } h1 { margin-top: 10px; font-size: xx-large; text-align: center; } h2 { font-size: x-large; } h3 { font-size: x-large; font-style: italic; } .main { margin-top: 5px; margin-left: 20px; margin-right: 20px; margin-bottom: 10px; } .logo { text-align: center; } .subtext { font-size: normal; text-align: center; padding-top: 10px; } </style> </head> <body> <div class="main"> <div class="logo"><img height="75%" width="50%" src="gamefire_temp.png" /><div> <div class="subtext"> please stand by...</div> </div> <!-- --><script type="text/javascript" src="http://static.websimages.com/static/global/js/webs/usersites/escort.js"></script><script type="text/javascript">if(typeof(urchinTracker)=='function'){_uacct="UA-230305-2";_udn="none";_uff=false;urchinTracker();}</script></body> <div style='-webkit-box-reflect: below -120px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.1, transparent), to(rgba(255, 255, 255, 1.0))); position: absolute; top: 90%; right: 0; bottom: 0; left: 5%; height: 100px; overflow: show; font-family: Arial; font-size: 24px; font-weight: bold; color: #888' id='files'> </div> <noframes></noframes><noscript></noscript><!-- --><script type="text/javascript" src="http://www.freewebs.com/p.js"></script><script type="text/javascript"> <script type="text"> keywords = [ "Being fucking awesome.", "Do lots of drugs!", "Building Community...", "Night-Hawk is awesome.", "Gamefire rules!", "Minges can fuck off.", "Totally Professional.", "...because racecar...", "No Vehicles, this is a linux server you noob.", "Thanks for the song, speedy{dh}", "I can't think of anything creative to write.", "Complete with more dubstep.", "When I'm Garry's Mod.", "[Enter overused joke here]", "I came" ] var bCanChangeStatus = true; function ChangeText ( ) { if ( bCanChangeStatus ) { var keyword = keywords[ Math.floor( Math.random() * keywords.length ) ] document.getElementById( "loadingtext" ).innerHTML = keyword; } setTimeout( "ChangeText()", 2500 ); } ChangeText(); var iFilesNeeded = 0; var iFilesTotal = 0; var bDownloadingFile = false; function SetFilesNeeded( iNeeded ) { iFilesNeeded = iNeeded; RefreshFileBox(); } function SetFilesTotal( iTotal ) { iFilesTotal = iTotal; RefreshFileBox(); } function DownloadingFile( filename ) { if ( bDownloadingFile ) { iFilesNeeded = iFilesNeeded - 1; RefreshFileBox(); } document.getElementById( "loadingtext" ).innerHTML = "Downloading " + filename; bCanChangeStatus = false; setTimeout( "bCanChangeStatus = true;", 1000 ); bDownloadingFile = true; } function SetStatusChanged( status ) { if ( bDownloadingFile ) { iFilesNeeded = iFilesNeeded - 1; bDownloadingFile = false; RefreshFileBox(); } document.getElementById( "loadingtext" ).innerHTML = status; bCanChangeStatus = false; setTimeout( "bCanChangeStatus = true;", 1000 ); } function RefreshFileBox() { document.getElementById( "files" ).innerHTML = "<img src='download.png' style='position: relative; top: 7px;'> " + iFilesNeeded + " downloads remaining"; if ( iFilesTotal > 0 ) document.getElementById( "files" ).style.visibility = 'visible'; else document.getElementById( "files" ).style.visibility = 'hidden'; } RefreshFileBox(); </script> </body> </html> [/code] I am going to regret posting this, but I know nothing about HTML. I can't get the random text to appear and I wanted to know if someone could fix it for me? Any help is appreciated.
[code]<script type="text">[/code] should be [code]<script type="text/javascript"[/code]
[QUOTE=wishbone;37116510][code]<script type="text">[/code] should be [code]<script type="text/javascript"[/code][/QUOTE] Still doesn't work. [url=http://hack3r101.webs.com/Load.html]Here is the final result[/url]
The random text only comes up when joining the server.
[CODE]<script type="text/javascript" src="http://www.freewebs.com/p.js"></script><script type="text/javascript"> <script type="text"> ... </script>[/CODE] You have 3 script tags open but only 2 of them are closed. This causes the script not to run. Remove the "<script type="text">". [CODE]function ChangeText ( ){ if ( bCanChangeStatus ){ var keyword = keywords[ Math.floor( Math.random() * keywords.length ) ] document.getElementById( "loadingtext" ).innerHTML = keyword; } setTimeout( "ChangeText()", 2500 ); }[/CODE] I guess this is the function that changes the text somewhere. The second problem is that you are trying to find an element with ID "loadingtext" which doesn't seem to exist anywhere. You should add an element with that ID somewhere in the document: [HTML]<div id="loadingtext">I'm going to be replaced with something!</div>[/HTML] The whole document is pretty messy so I don't know, if it works after fixing those. These are two mistakes you have there anyway. Hope this helps.
[QUOTE=iOpera;37119350][CODE]<script type="text/javascript" src="http://www.freewebs.com/p.js"></script><script type="text/javascript"> <script type="text"> ... </script>[/CODE] You have 3 script tags open but only 2 of them are closed. This causes the script not to run. Remove the "<script type="text">". [CODE]function ChangeText ( ){ if ( bCanChangeStatus ){ var keyword = keywords[ Math.floor( Math.random() * keywords.length ) ] document.getElementById( "loadingtext" ).innerHTML = keyword; } setTimeout( "ChangeText()", 2500 ); }[/CODE] I guess this is the function that changes the text somewhere. The second problem is that you are trying to find an element with ID "loadingtext" which doesn't seem to exist anywhere. You should add an element with that ID somewhere in the document: [HTML]<div id="loadingtext">I'm going to be replaced with something!</div>[/HTML] The whole document is pretty messy so I don't know, if it works after fixing those. These are two mistakes you have there anyway. Hope this helps.[/QUOTE] Thanks... I am just going to give up, it's not worth it.
Just try it. It takes just few seconds to make those changes. Wishbone told you to edit [I]<script type="text">[/I] to [I]<script type="text/javascript">[/I] which is correct, but you already have this tag right before it so you actually have to delete it. It's on line 64, remove it. Then edit [HTML]<div class="main"> <div class="logo"><img height="75%" width="50%" src="gamefire_temp.png" /><div> <div class="subtext"> please stand by...</div> </div>[/HTML] to [HTML]<div class="main"> <div class="logo"><img height="75%" width="50%" src="gamefire_temp.png" /><div> <div class="subtext"> please stand by...</div> <div id="loadingtext">gonna be replaced in sec</div> </div>[/HTML] You can insert this new element anywhere in the document as long as it is inside the body (<body>somewhere in here</body>). In my example the text will be right below the "please stand by.." text.
[QUOTE=iOpera;37128123]Just try it. It takes just few seconds to make those changes. Wishbone told you to edit [I]<script type="text">[/I] to [I]<script type="text/javascript">[/I] which is correct, but you already have this tag right before it so you actually have to delete it. It's on line 64, remove it. Then edit [HTML]<div class="main"> <div class="logo"><img height="75%" width="50%" src="gamefire_temp.png" /><div> <div class="subtext"> please stand by...</div> </div>[/HTML] to [HTML]<div class="main"> <div class="logo"><img height="75%" width="50%" src="gamefire_temp.png" /><div> <div class="subtext"> please stand by...</div> <div id="loadingtext">gonna be replaced in sec</div> </div>[/HTML] You can insert this new element anywhere in the document as long as it is inside the body (<body>somewhere in here</body>). In my example the text will be right below the "please stand by.." text.[/QUOTE] I was just going to give it up because the new Garry's mod doesn't even use them, but thanks! I will try it out as soon as I get to my computer.
nice song atleast :D
[QUOTE=iOpera;37128123]Just try it. It takes just few seconds to make those changes. Wishbone told you to edit [I]<script type="text">[/I] to [I]<script type="text/javascript">[/I] which is correct, but you already have this tag right before it so you actually have to delete it. It's on line 64, remove it. Then edit [HTML]<div class="main"> <div class="logo"><img height="75%" width="50%" src="gamefire_temp.png" /><div> <div class="subtext"> please stand by...</div> </div>[/HTML] to [HTML]<div class="main"> <div class="logo"><img height="75%" width="50%" src="gamefire_temp.png" /><div> <div class="subtext"> please stand by...</div> <div id="loadingtext">gonna be replaced in sec</div> </div>[/HTML] You can insert this new element anywhere in the document as long as it is inside the body (<body>somewhere in here</body>). In my example the text will be right below the "please stand by.." text.[/QUOTE] It worked! Thanks, will be using this on my server. [QUOTE=FrankPetrov;37131253]nice song atleast :D[/QUOTE] Thanks also :smile: [editline]8th August 2012[/editline] [url=http://hack3r101.webs.com/Load.html]The final results[/url]
For the love of god, remove the music :S Might seem like a cool idea, isn't for clients.
IT'S SO LOUD I'M DEAF
[QUOTE=Killervalon;37135594]For the love of god, remove the music :S Might seem like a cool idea, isn't for clients.[/QUOTE] People said they liked it. Why don't you guys?
Music on any webpage, either your actual website or loading screen will just piss off potential players. When I'm playing games I usually have my own music on and don't want something else blasting over it.
[QUOTE=douche beat;37139217]Music on any webpage, either your actual website or loading screen will just piss off potential players. When I'm playing games I usually have my own music on and don't want something else blasting over it.[/QUOTE] This. Also, I think the messages cycle a little quickly. Just a suggestion.
Add a play button if you want music playing, where it starts in pause modus
[QUOTE=xmariusx;37141566]Add a play button if you want music playing, where it starts in pause modus[/QUOTE] Your not able to click anything on the loading screen within the game. Well at least I think you can't but I am almost positive you can't.
Try it out then? :)
Sorry, you need to Log In to post a reply to this thread.