This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

MOTD Auto-Close?


Post New Thread Reply   
 
Thread Tools Display Modes
Mitchell
~lick~
Join Date: Mar 2010
Old 10-08-2014 , 08:51   Re: MOTD Auto-Close?
Reply With Quote #11

more like this:
http://stackoverflow.com/a/14621615

Heres what i'd use going off that:
Spoiler

Last edited by Mitchell; 10-08-2014 at 08:54.
Mitchell is offline
Nuklier
Junior Member
Join Date: Oct 2014
Old 10-08-2014 , 12:02   Re: MOTD Auto-Close?
Reply With Quote #12

i make it like this http://take.ms/mYRcO
and in the browser it work perfect http://134.249.140.62/te.html closing in 2.5s
but in game CS GO it is not closing.... https://monosnap.com/image/xMu7MrDr6...MoDbZuD4vOZgfX it stays like this only the side bar for moving page is disappearing after 2.5s
Nuklier is offline
LambdaLambda
AlliedModders Donor
Join Date: Oct 2010
Location: London
Old 10-08-2014 , 12:08   Re: MOTD Auto-Close?
Reply With Quote #13

https://forums.alliedmods.net/showpo...01&postcount=7

try that one then.
LambdaLambda is offline
Nuklier
Junior Member
Join Date: Oct 2014
Old 10-08-2014 , 12:13   Re: MOTD Auto-Close?
Reply With Quote #14

Quote:
Originally Posted by LambdaLambda View Post
it completely disable motd i want motd to pop up and then disappear in some time
Nuklier is offline
LambdaLambda
AlliedModders Donor
Join Date: Oct 2010
Location: London
Old 10-08-2014 , 12:32   Re: MOTD Auto-Close?
Reply With Quote #15

Edit the code then?
LambdaLambda is offline
Nuklier
Junior Member
Join Date: Oct 2014
Old 10-08-2014 , 13:12   Re: MOTD Auto-Close?
Reply With Quote #16

Quote:
Originally Posted by LambdaLambda View Post
Edit the code then?
well i will try but i'm dont know source at all
Nuklier is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 10-08-2014 , 13:45   Re: MOTD Auto-Close?
Reply With Quote #17

Quote:
Originally Posted by LambdaLambda View Post
That was from 2008, so i wouldnt see that working again anytime soon.

ive went to "view-source:http://134.249.140.62/te.html"
just to look if that was really what you put in for your motd. and yeah, not sure if it would stop the javascript in the motd but the webpage is incorrect.

try:
Code:
<html>
<head>
<script type="text/javascript">
window.onload = function() {
    window.setTimeout(CloseMe, 2500);
};

function CloseMe() {
    window.close();
}
</script>
</head>
<body>
<img alt="" src="http://134.249.140.62/1.jpg" style="float: left; width: 1138px; height: 640px;" />
</body>
</html>
Like i posted above, since you read past it.
most likely the cause was that you didnt do what i gave you and body onload="" does not work in cs:go's motd.

Last edited by Mitchell; 10-08-2014 at 13:49.
Mitchell is offline
Nuklier
Junior Member
Join Date: Oct 2014
Old 10-08-2014 , 15:00   Re: MOTD Auto-Close?
Reply With Quote #18

this is my motd.txt https://monosnap.com/image/aI0axsjCF...xpm85quwmkKHGL
and this is my te.html https://monosnap.com/image/RzTioRrqg...7zgDnKjiHfNIEg
now cat is not showing and motd is still not auto closing... i feel like
Nuklier is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 10-08-2014 , 15:41   Re: MOTD Auto-Close?
Reply With Quote #19

Ill try it when i get home in an hour.
Mitchell is offline
Nuklier
Junior Member
Join Date: Oct 2014
Old 10-09-2014 , 16:34   Re: MOTD Auto-Close?
Reply With Quote #20

any luck?
Nuklier is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode