I have been involved with web design for many years. Even with 15 years under my belt, I still am amazed when I find something I didn't know. I am not saying I know everything, its just those things that you wish you knew about years and years ago that really get your excitement up.
The other day, I was looking at the HackerSafe code that my company (http://www.amhosting.com) has on its website. I saw the way they put in an image tag and I was like, "what the heck.. they have a bug in their code". Before I went crazy, I decided to look at my live production code and noticed that the way they linked the image was the same in their code they were trying to give me.
So you know what I am talking about... this is what they put in the code:
src="//images.scanalert.com/meter/www.amhosting.com/12.gif"
Notice how src="// part for it. That is where the magic happens
This is why its important. This image is located on my company website: (Secure SSL Mode)
https://www.amhosting.com/MyAccount/UpdateBillingContactInformation/tabid/746/Default.aspx
and the same image code is located on a non https page: (No SSL)
http://www.amhosting.com/Home/tabid/293/Default.aspx
The browser actually knows based on what state your page is on what to call to the remote server. If you didn't have your code like this, it would throw a security error to the end user asking them if they want to show insecure images. Not only does that break credibility, but it also is very annoying between page clicks.
I know this is a very "small" finding, but it is very useful when building ecommerce sites that link to outside content. I hope you are as excited as I am with this very small find.