{"id":436,"date":"2009-11-09T10:48:21","date_gmt":"2009-11-09T17:48:21","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=2381"},"modified":"2009-11-09T10:48:21","modified_gmt":"2009-11-09T17:48:21","slug":"hide-browser-scrollbars","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=436","title":{"rendered":"Hide Browser Scrollbars"},"content":{"rendered":"<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\n\/*\r\nThis snippet is by Mels le Noble\r\nwww.melslenoble.nl\r\nIt will hide the browser scrollbars.\r\n*\/\r\n\r\n\/\/ see if we are testing locally\r\nif (stage.loaderInfo.url.split(&quot;\/&quot;)&#x5B;2])\r\n{\r\n ExternalInterface.call(&quot;function(){document.body.style.overflow=&#039;hidden&#039;;document.html.style.overflow = &#039;hidden&#039;;}&quot;);\r\n}\r\n<\/pre>\n<p>This snippet by <a href=\"http:\/\/www.melslenoble.nl\">Mels le Noble<\/a> will hide the browser scrollbars. The bulk of the snippet is the javascript inside the ExternalInterface.call() method. I like the trick that Mels uses to check if the swf is local&#8230;. snippet-worthy in itself.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* This snippet is by Mels le Noble www.melslenoble.nl It will hide the browser scrollbars. *\/ \/\/ see if we are testing locally if (stage.loaderInfo.url.split(&quot;\/&quot;)&#x5B;2]) { ExternalInterface.call(&quot;function(){document.body.style.overflow=&#039;hidden&#039;;document.html.style.overflow = &#039;hidden&#039;;}&quot;); } This snippet by Mels le Noble will hide the browser scrollbars. The bulk of the snippet is the javascript inside the ExternalInterface.call() method. I like [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[98],"tags":[99,14,135,4,134],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-ui","tag-actionsnippet","tag-as3","tag-contest","tag-flash","tag-javascript"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=436"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/436\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}