Old 27-02-2008, 16:49   #1 (permalink)
willpower935
Registered User
 
Join Date: Nov 2007
Posts: 30
Youtube question

Hey guys,

http://s.ytimg.com/yt/img/master-vfl33777.gif

When looked at the background image of youtube.com, I saw this^. Des anyone have any idea of how youtube utilizes this image in order to create their site?

Thanks
  Reply With Quote
Old 27-02-2008, 18:44   #2 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,537
They are most likely using that as their background image for various things in the site. They put everything into one image, and then just position the background image so that it shows only the part of the image that they want people to see. By putting it all into one image, only one image has to be downloaded saving the browser from having to make multiple requests to the server for background images.
  Reply With Quote
Old 27-02-2008, 18:53   #3 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,126
Yup, that ^
__________________
  Reply With Quote
Old 27-02-2008, 19:37   #4 (permalink)
willpower935
Registered User
 
Join Date: Nov 2007
Posts: 30
whoa, that's genius. I wonder why not many other people do the same thing.
  Reply With Quote
Old 27-02-2008, 19:48   #5 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
The term is css sprites.

I would like to try that on a couple of my sites.... but don't have the patients. It is also amazing to thing about how many request to the server are being avoided on a site like youtube which has millions upon millions of page views a day.
  Reply With Quote
Old 27-02-2008, 22:37   #6 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,358
Quote:
Originally Posted by d3mcfadden
but don't have the patients
I was planning on becoming a doctor, but I didn't have the patients.
  Reply With Quote
Old 28-02-2008, 18:31   #7 (permalink)
willpower935
Registered User
 
Join Date: Nov 2007
Posts: 30
I was planning on becoming a doctor, but I didn't have the patients.


ingenius^
  Reply With Quote
Old 28-02-2008, 18:41   #8 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,358
I didn't come up with that, but I don't remember where it's from.
  Reply With Quote
Old 28-02-2008, 21:17   #9 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,537
Quote:
whoa, that's genius. I wonder why not many other people do the same thing.

Some of us (on this site) do!
  Reply With Quote
Old 28-02-2008, 22:24   #10 (permalink)
.sleep
Senior Member
 
.sleep's Avatar
 
Join Date: Mar 2007
Location: california
Posts: 281
Send a message via AIM to .sleep
i use them. not to that extent though. usually one image per object. i like the idea of having them all on there though. might be a pain to have to measure everything out. i just like position:top; position:bottom;
  Reply With Quote
Old 28-02-2008, 22:40   #11 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,126
Quote:
Originally Posted by .sleep
i just like position:top; position:bottom;
Not to be a dick, but there's no such thing.
__________________
  Reply With Quote
Old 28-02-2008, 22:59   #12 (permalink)
illvibe
say werd.
 
illvibe's Avatar
 
Join Date: Oct 2004
Location: Japan
Posts: 1,277
Quote:
Originally Posted by herkalees
Not to be a dick, but there's no such thing.
You know what he meant...
  Reply With Quote
Old 28-02-2008, 23:06   #13 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,537
Quote:
Originally Posted by .sleep
i just like position:top; position:bottom;
Quote:
Originally Posted by herkalees
Not to be a dick, but there's no such thing.

I think my wife would disagree
  Reply With Quote
Old 28-02-2008, 23:17   #14 (permalink)
illvibe
say werd.
 
illvibe's Avatar
 
Join Date: Oct 2004
Location: Japan
Posts: 1,277
Quote:
Originally Posted by haku
I think my wife would disagree
Standards-compliant sex.
  Reply With Quote
Old 29-02-2008, 06:08   #15 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,126
Quote:
Originally Posted by illvibe
You know what he meant...
Potentially. Did he mean position:relative; top:0;/bottom:0;?
Or, position:absolute; top:0;/bottom:0;?

Huge difference.
__________________
  Reply With Quote
Old 29-02-2008, 06:30   #16 (permalink)
funkyprem
For all your goober needs
 
funkyprem's Avatar
 
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,528
or background-position: top/bottom;

perfectly valid dude.
__________________
Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison

prem ghinde
  Reply With Quote
Old 29-02-2008, 07:05   #17 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,126
He was probably referring to that, then.
__________________
  Reply With Quote
Old 29-02-2008, 07:35   #18 (permalink)
d*d
Moderator
 
d*d's Avatar
 
Join Date: Oct 2004
Location: Bristol
Posts: 3,285
Quote:
Originally Posted by herkalees
Potentially. Did he mean position:relative; top:0;/bottom:0;?
Or, position:absolute; top:0;/bottom:0;?

Huge difference.

Pedant
  Reply With Quote
Old 29-02-2008, 07:50   #19 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,126
Quote:
Originally Posted by d*d
Pedant
Thanks.
__________________
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8