AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [CS:GO] MOTD better scrollbar (https://forums.alliedmods.net/showthread.php?t=284614)

boomix 06-29-2016 19:55

[CS:GO] MOTD better scrollbar
 
2 Attachment(s)
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!? :)

Mitchell 06-30-2016 08:42

Re: [CS:GO] MOTD better scrollbar
 
Very nice, it makes popup panel a lot more useful.

VPPGamingNetwork 06-30-2016 13:34

Re: [CS:GO] MOTD better scrollbar
 
good work man

KissLick 06-30-2016 16:50

Re: [CS:GO] MOTD better scrollbar
 
Looks like I found web page (first so far) where I can accept modified scrollbar and scrolling :-D

iGANGNAM 07-04-2016 07:07

Re: [CS:GO] MOTD better scrollbar
 
Thank you for sharing this tip :)
What is that redirect.php tho?

boomix 07-04-2016 10:24

Re: [CS:GO] MOTD better scrollbar
 
Quote:

Originally Posted by iGANGNAM (Post 2433257)
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.

CowGod 07-08-2016 23:56

Re: [CS:GO] MOTD better scrollbar
 
nice job as always boomix!

Byte 12-15-2017 11:28

Re: [CS:GO] MOTD better scrollbar
 
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>



All times are GMT -4. The time now is 14:16.

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