Jump to content

Customizing autoscroll icon


Daniel0

Recommended Posts

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]
Link to comment
https://forums.phpfreaks.com/topic/23995-customizing-autoscroll-icon/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.