Raised This Month: $12 Target: $400
 3% 

[CS:GO] MOTD better scrollbar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 06-29-2016 , 19:55   [CS:GO] MOTD better scrollbar
Reply With Quote #1

Hey guys, Im not sure if anyone has made this up, but anywhay I wanted to show you, how you can make the scrollbar better as it is now.


Here is little video of showing the difference between current and mine version. Sorry that my English is not perfect :[



At the bottom you can download test plugin + html web files.

Hope this will become handy for some people! Maybe someone can make the motd even better!?
Attached Files
File Type: sp Get Plugin or Get Source (motdtest.sp - 953 views - 1.1 KB)
File Type: zip Motd test.zip (2.7 KB, 409 views)
__________________

Last edited by boomix; 06-29-2016 at 19:57.
boomix is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-30-2016 , 08:42   Re: [CS:GO] MOTD better scrollbar
Reply With Quote #2

Very nice, it makes popup panel a lot more useful.
Mitchell is offline
VPPGamingNetwork
Veteran Member
Join Date: Sep 2012
Location: Japan
Old 06-30-2016 , 13:34   Re: [CS:GO] MOTD better scrollbar
Reply With Quote #3

good work man
__________________

We provide MOTD Ads
Net 1 payments
Visit us
VPPGamingNetwork is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 06-30-2016 , 16:50   Re: [CS:GO] MOTD better scrollbar
Reply With Quote #4

Looks like I found web page (first so far) where I can accept modified scrollbar and scrolling :-D
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 07-04-2016 , 07:07   Re: [CS:GO] MOTD better scrollbar
Reply With Quote #5

Thank you for sharing this tip
What is that redirect.php tho?
__________________

Last edited by iGANGNAM; 07-04-2016 at 07:08.
iGANGNAM is offline
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 07-04-2016 , 10:24   Re: [CS:GO] MOTD better scrollbar
Reply With Quote #6

Quote:
Originally Posted by iGANGNAM View Post
Thank you for sharing this tip
What is that redirect.php tho?
Nothing that big

PHP Code:
<html>
 <head>
  <title>title</title>
 </head>
 <body oncontextmenu="return false" onkeydown="return false">
 <?php
    
echo '<script>';
    echo 
'window.open("'.$_GET['url'].'", "", "width=1280, height=720");';
    echo 
'</script>'
 
?>
 </body>
</html>
you can also make that it opens window in not fixed size, but I was too lazy to do that.
__________________
boomix is offline
CowGod
Senior Member
Join Date: Feb 2015
Old 07-08-2016 , 23:56   Re: [CS:GO] MOTD better scrollbar
Reply With Quote #7

nice job as always boomix!
CowGod is offline
Send a message via Skype™ to CowGod
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 12-15-2017 , 11:28   Re: [CS:GO] MOTD better scrollbar
Reply With Quote #8

If you guys have custom scrollbar speeds or are doing other stuff with the scrollbar on your websites, you can check the user agent to only run the script if its a viewer from the in game browser.

Example user agent for CSGO:
Code:
Mozilla/5.0 (Windows; U; Windows NT 10.0; en-US; Valve Client/1513197415; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36
Example:
HTML Code:
<script src="/jscripts/jQuery.scrollSpeed.js"></script>
<script type="text/javascript">
  if (navigator.userAgent.indexOf('Valve Client') > -1) {
    $(function() {
      jQuery.scrollSpeed(150, 200);
    });
  }
</script>
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte 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:52.


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