Raised This Month: $207 Target: $400
 51% 

[L4D2] MOTD Scrolling, How?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XJR15
Senior Member
Join Date: Sep 2010
Old 11-06-2020 , 05:15   [L4D2] MOTD Scrolling, How?
Reply With Quote #1

OK I noticed when text in MOTD gets long enough it doesnt automatically add in the scroll wheel so i was wondering how do i enable this for MOTD?

thank you.
__________________
XJR15 is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-06-2020 , 07:28   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #2

Hi there good Sir,
Excuse this humble learner for taking a ride on your post.
I v try writing an html code on it with no success. It appear that the motd only link you to external site. If there another way doing this i also interested to know. Doesn't matter in html, js or php.
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 11-06-2020 at 07:29. Reason: Or python. As long as it working as intended.
GsiX is offline
XJR15
Senior Member
Join Date: Sep 2010
Old 11-10-2020 , 13:11   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #3

Anyone? this is really bothersome I and some others really want to know how this is done for L4D2.
__________________
XJR15 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-10-2020 , 18:05   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #4

I never did a MOTD but in HTML you can play with CSS for the scrolling attribute.

Here is a link for more info.

https://www.w3schools.com/cssref/pr_pos_overflow.asp

I don't know if javascript runs well on MOTD for L4D2, but if the CSS don't work, maybe you have to hack with js
__________________

Last edited by Marttt; 11-10-2020 at 18:05.
Marttt is online now
XJR15
Senior Member
Join Date: Sep 2010
Old 11-11-2020 , 08:55   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #5

object.style.overflow="scroll" kinda works it adds the scroll wheel but when i add more lines it doesnt expand the scroll wheel it just adds it, more ideas would be nice. especially if they can find 1 for l4d2
__________________

Last edited by XJR15; 11-11-2020 at 09:26.
XJR15 is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-12-2020 , 12:27   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #6

hummm... this intrigue me.. never try css on it.. i ll play with it when i have extra time..

EDIT: @XJR15 if you dont mind show your html code? i have few time to spare to play with the motd?
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 11-13-2020 at 01:48.
GsiX is offline
XJR15
Senior Member
Join Date: Sep 2010
Old 11-13-2020 , 07:03   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #7

Quote:
Originally Posted by GsiX View Post
hummm... this intrigue me.. never try css on it.. i ll play with it when i have extra time..

EDIT: @XJR15 if you dont mind show your html code? i have few time to spare to play with the motd?
i had object.style.overflow="scroll" at the bottom of my motd it added in the scroll wheel but when i add more words it doesnt work i honestly dont know how the code for this is suppose to work as there was no instructions outside of that code itself.
__________________

Last edited by XJR15; 11-13-2020 at 07:03.
XJR15 is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-13-2020 , 08:50   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #8

mine work correctly.. ok look.. i cant help you without looking at your html, css, js or whatever to see what wrong...
i v passed my free time.. however i v write a simple example for you.. hope this help.

PHP Code:
<html>
    <
head>
        <
title>L4D2 MOTD Test</title>
    </
head>
    <
body style="margin:0px;padding:1px;background:#000 000;">
        <
article style="width:100%;height:100%">
            <
img src="https://steamcdn-a.akamaihd.net/steam/apps/550/capsule_616x353.jpg?t=1601578341" style="width:50%;height:50%" />
            <
img src="https://wallpaperaccess.com/full/425811.jpg" style="width:100%;height:100%" />
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
            <
div style="width:100%;height:100%;overflow:scroll">
                <
img src="https://images3.alphacoders.com/142/142549.jpg" style="width:150%;height:100%" />
            </
div>
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
        </
article>
    </
body>
</
html
Edit: Ok since i don't see/not allowowed to see what wrong in your html, i just give you my hunch.
Wrap the object into a div, target the particular div for overflow.


Hope this help

Edit2: this gone has gone outside sp.
Dear moderator, o/t pls delete but don't ban me.
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 11-13-2020 at 10:14.
GsiX is offline
valinaghi
New Member
Join Date: Nov 2020
Old 11-15-2020 , 11:00   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #9

Quote:
Originally Posted by GsiX View Post
mine work correctly.. ok look.. i cant help you without looking at your html, css, js or whatever to see what wrong...
i v passed my free time.. however i v write a simple example for you.. hope this help.

PHP Code:
<html>
    <
head>
        <
title>L4D2 MOTD Test</title>
    </
head>
    <
body style="margin:0px;padding:1px;background:#000 000;">
        <
article style="width:100%;height:100%">
            <
img src="https://steamcdn-a.akamaihd.net/steam/apps/550/capsule_616x353.jpg?t=1601578341" style="width:50%;height:50%" />
            <
img src="https://wallpaperaccess.com/full/425811.jpg" style="width:100%;height:100%" />
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
            <
div style="width:100%;height:100%;overflow:scroll">
                <
img src="https://images3.alphacoders.com/142/142549.jpg" style="width:150%;height:100%" />
            </
div>
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
        </
article>
    </
body>
</
html
Edit: Ok since i don't see/not allowowed to see what wrong in your html, i just give you my hunch.
Wrap the object into a div, target the particular div for overflow.


Hope this help

Edit2: this gone has gone outside sp.
Dear moderator, o/t pls delete but don't ban me.
thank you a lot. I had these problem too. and I fix it
valinaghi is offline
XJR15
Senior Member
Join Date: Sep 2010
Old 11-17-2020 , 20:10   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #10

Quote:
Originally Posted by GsiX View Post
mine work correctly.. ok look.. i cant help you without looking at your html, css, js or whatever to see what wrong...
i v passed my free time.. however i v write a simple example for you.. hope this help.

PHP Code:
<html>
    <
head>
        <
title>L4D2 MOTD Test</title>
    </
head>
    <
body style="margin:0px;padding:1px;background:#000 000;">
        <
article style="width:100%;height:100%">
            <
img src="https://steamcdn-a.akamaihd.net/steam/apps/550/capsule_616x353.jpg?t=1601578341" style="width:50%;height:50%" />
            <
img src="https://wallpaperaccess.com/full/425811.jpg" style="width:100%;height:100%" />
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
            <
div style="width:100%;height:100%;overflow:scroll">
                <
img src="https://images3.alphacoders.com/142/142549.jpg" style="width:150%;height:100%" />
            </
div>
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
        </
article>
    </
body>
</
html
Edit: Ok since i don't see/not allowowed to see what wrong in your html, i just give you my hunch.
Wrap the object into a div, target the particular div for overflow.


Hope this help

Edit2: this gone has gone outside sp.
Dear moderator, o/t pls delete but don't ban me.

OK this is mine without the smoker and boomer info the scroll wheel is there but its not really even necessary if u erase all of it after "Infinite Ammo!" please help me adjust my motd to fit a working scroll wheel in there with any amount of words.

PHP Code:
type !csm in chat to change your survivor character.
type !join in chat if stuck in spectate.
Right Click to pass your throwable to a teammate when near them.
You can crawl when incapacitated with W key.
type !pickbot !nextbot !prevbot in chat to select a bot when on survivor team or when DEAD.

L4D2 Arcade Edition:
Tier 1 Weapons are now Tier 2 level balanced.
Pump shotguns deal double damage.
MP5 has 30 roundsAK47 damage 58Higher Rate of Fire than AK47Lower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.
Uzi has 40 roundsSCAR damage 44Highest Rate of Fire than all guns in the gameLower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.
SMG Silencedhas 60 roundsSG552 damage 332nd Highest Rate of Fire gun in the gameLower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.
M16 deals 40 damage from standard 33to give it more stopping power than SG552which has a scope to compensate.
Infinite AmmoSmoker Cloud deals 5 damageto a maximum of 30 damageBoomer Explosion deals 30 damage in a small radius.
<
div style="width:100%;height:100%;overflow:scroll"
</
div
__________________
XJR15 is offline
Reply


Thread Tools
Display Modes

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 12:28.


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