Jump to content


Photo

Customizing autoscroll icon


  • Please log in to reply
4 replies to this topic

#1 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 15 October 2006 - 10:35 AM

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:
html > img {
	width: 0!important;
	height: 67px !important;
	padding-left: 120px !important;
	background: url(http://php.net/images/php.gif);
}

An example of a website that actually uses it is Sitepoint (you obviously need to view it in Firefox to see it)

Since this is actually a known bug (https://bugzilla.moz...g.cgi?id=242466) this "functionality" may be removed, but since it was filed in 2004 it might stay for some time.

Source: Sitepoint

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 15 October 2006 - 11:48 AM

Heh, that's pretty cool

#3 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 16 October 2006 - 01:10 PM

yay!  FF is becoming like IE.

Finally something that'll push users to Opera.  :)

Info: PHP Manual


#4 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 16 October 2006 - 01:28 PM

What are you talking about? That it has a bug that is several years old?

#5 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 16 October 2006 - 01:54 PM

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.

Info: PHP Manual





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users