Daniel0 Posted October 15, 2006 Share Posted October 15, 2006 This might be old news to some, but due to a bug in Firefox the autoscroll can be customized. The way the autoscroll icon appears is that Firefox inserts an image in the page. The image is inside the html tag so it can actually be styled using CSS. You could use img to style all images, but that would ruin all images, so you could also use the child-of operator (or whatever it is) to only style images that are a direct children of the html tag (which yours hopefully isn't!!!). So by using this css code you can make the autoscroll image show up as the PHP logo for Firefox users: [code]html > img { width: 0!important; height: 67px !important; padding-left: 120px !important; background: url(http://php.net/images/php.gif);}[/code]An example of a website that actually uses it is [url=http://www.sitepoint.com/]Sitepoint[/url] (you obviously need to view it in Firefox to see it)Since this is actually a known bug (https://bugzilla.mozilla.org/show_bug.cgi?id=242466) this "functionality" may be removed, but since it was filed in 2004 it might stay for some time.Source: [url=http://www.sitepoint.com/]Sitepoint[/url] Quote Link to comment https://forums.phpfreaks.com/topic/23995-customizing-autoscroll-icon/ Share on other sites More sharing options...
zq29 Posted October 15, 2006 Share Posted October 15, 2006 Heh, that's pretty cool Quote Link to comment https://forums.phpfreaks.com/topic/23995-customizing-autoscroll-icon/#findComment-109024 Share on other sites More sharing options...
ober Posted October 16, 2006 Share Posted October 16, 2006 yay! FF is becoming like IE.Finally something that'll push users to Opera. :) Quote Link to comment https://forums.phpfreaks.com/topic/23995-customizing-autoscroll-icon/#findComment-109498 Share on other sites More sharing options...
Daniel0 Posted October 16, 2006 Author Share Posted October 16, 2006 What are you talking about? That it has a bug that is several years old? Quote Link to comment https://forums.phpfreaks.com/topic/23995-customizing-autoscroll-icon/#findComment-109503 Share on other sites More sharing options...
ober Posted October 16, 2006 Share Posted October 16, 2006 No, that a bug has the possibility of becoming a "browser-specific feature"... much like the hundreds of stupid little things that MS wrote into IE so you could random useless crap like change the scrollbar colors, etc. Quote Link to comment https://forums.phpfreaks.com/topic/23995-customizing-autoscroll-icon/#findComment-109512 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.