AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   MOTD scrolling problem. (https://forums.alliedmods.net/showthread.php?t=162466)

FiFiX 07-19-2011 08:33

MOTD scrolling problem.
 
Hello. I'm opening motd that way:
Code:

formatex(buffer, 1500, "<html><head><meta http-equiv=^"Refresh^" content=^"0;url=http://xxxx/motd/inne/taryfikator/%s/%s^"></head><body><p>LOADING...</p></body></html>", ip, port);

show_motd(id, buffer, "Taryfikator");

ip and port are consts. Anyway it works almost fine, but there is problem with scrolling. The page is to long to be displayed at all. It needs to be scrolled down. The scroll bar from motd is moving, but nothing happens, the page doesn't scroll at all. Is there any way to fix that?

fysiks 07-19-2011 14:58

Re: MOTD scrolling problem.
 
Remove the doctype declartion from the target page. Also, you can just pust the url when using show_motd(), there is no need for a meta refresh.

This is discussed a lot here. Searching would provide this answer :).

If you can't remove it then you only other option is an iframe.

DSASDFGH 07-19-2011 16:26

Re: MOTD scrolling problem.
 
motd uses html, so make scrolling in your html code

fysiks 07-19-2011 16:55

Re: MOTD scrolling problem.
 
Quote:

Originally Posted by DSASDFGH (Post 1514084)
motd uses html, so make scrolling in your html code

No. The scrolling is not controlled by HTML.

deadman909 07-19-2011 22:06

Re: MOTD scrolling problem.
 
Quote:

Originally Posted by fysiks (Post 1514016)
Remove the doctype declartion from the target page. Also, you can just pust the url when using show_motd(), there is no need for a meta refresh.

This is discussed a lot here. Searching would provide this answer :).

If you can't remove it then you only other option is an iframe.

What if its a link from a site. You cant edit there stuff so how would you remove doctype than?

Also do you think you can show an example of one using inframe like that people can just change the link. That would be really helpful for allot of people =)

fysiks 07-19-2011 22:20

Re: MOTD scrolling problem.
 
Quote:

Originally Posted by deadman909 (Post 1514256)
What if its a link from a site. You cant edit there stuff so how would you remove doctype than?

You don't.

Quote:

Originally Posted by deadman909 (Post 1514256)
Also do you think you can show an example of one using inframe like that people can just change the link. That would be really helpful for allot of people =)

Google. Although, I like w3schools.com

deadman909 07-19-2011 22:45

Re: MOTD scrolling problem.
 
Quote:

Originally Posted by fysiks (Post 1514259)
You don't.



Google. Although, I like w3schools.com

So wait inframe is not part of plugin is part of the HTML Code u use?

fysiks 07-20-2011 00:47

Re: MOTD scrolling problem.
 
Quote:

Originally Posted by deadman909 (Post 1514268)
So wait inframe is not part of plugin is part of the HTML Code u use?

iframe is just html

deadman909 07-20-2011 01:01

Re: MOTD scrolling problem.
 
Quote:

Originally Posted by fysiks (Post 1514331)
iframe is just html

Oh okay so basically there is no real soultion for websites huh

fysiks 07-20-2011 02:00

Re: MOTD scrolling problem.
 
Quote:

Originally Posted by deadman909 (Post 1514332)
Oh okay so basically there is no real soultion for websites huh

Why do you say that? You either remove the doctype declaration or use iframes. It's been a while since I've used an iframe but I hear it scrolls.

Have you tried to using an iframe?


All times are GMT -4. The time now is 00:51.

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