The rollover is one of the most simple GUI behaviors that makes the user experience all the more enjoyable, easier, and logical. Over the years though, the correct way to implement a browser friendly & reliable rollover has been argued time and time again. This is my opinion on how to do it using purely CSS with the added bonus SEO. First off Lets understand the concept and why its better: Google and all other similar search engines are pretty amazing. The shear volume of information that they process is mind boggling, however at the root of it they are still "dumb computers."We need to "guide them," let them know whats important… so lets do just that with a little CSS trickery, and keep automated JavaScript rollovers away from our page!! (I’m looking at you Dreamweaver users!!)
Scenario 1:
You have a logo of a company, school, artist, etc… for this example though we’ll pretend that I’m an artist with some sort of portfolio site. According to the unwritten "web-ettiquite" my logo (a simple andy-sciro.jpg, or gif) is obviously in the top left and has a rollover behavior. Very standard stuff, the rollover works fine… it looks good and everyone’s happy. What’s wrong with this picture?
Sometimes it isn’t aesethitically pleasing to have text that’s essential for SEO on your website, or maybe even your mockup is just image heavy! So where do we put it?!
If you are using .js, you have to preload your images… just a bad idea
GOOGLE or johnny-search-engine comes doesn’t index to its full potential…
Google Loves to eat… feed it!
Google loves to eat, but not the kind of food me and you eat… rather it loves to eat text. Google was created to index text from the beginning and to this day it still does! Don’t underestimate the power of text! FEED THE MONSTER!
Prepping your Rollover:
The idea behind this is to not preload any images with .js, and to limit how stuff is loaded into the site at once. With that said lets get cracking here:
Here I have two images:
Normally you would load/preload each and handle the switch with JS. Or with CSS you could do a background switch… Close but instead lets combine them into 1 image like so. Now the browser loads all the rollover’s resources at once and we can handle the switch fully with CSS.
Simple stuff, but lets talk about whats happening:
What google sees now is obviously your link and title… but in addition it also sees your span that is full of descriptive text!! The Class.sneakyText, simply hides your additional content from users on your website, however google and company still see it! This is where the power of this method comes through!!! In this case we used a <H1> tag, however using a <H2>, <P>, etc is fine. Before you go and start using this everywhere though research about keyword spamming and proper headline (h1,h2,h3, etc) usage. In SEO every bit counts, but too much can do the opposite!!
NOTE: The "title" tag is always a subject for controversy. Does it index? Yes and no. The bottomline is it still is helpful for most users. So I’m adding it in anyway!
LETS TAKE IT A STEP FURTHER!!!
Lets use the PSEUDO class :FOCUS. Now when a user clicks on the link we get a third option to show! For a full list of support of :FOCUS check the W3C here:
Lets Take our original "double image" and make it three!!!
Now we simply modify our CSS a slight bit by adding the following… and we are set!! As you can see all we did was "push up" the image higher because we added the third graphic for the click which made the height increase (before it -41px, now its -82px!)
I’m making a prediction here, this site (although already large) will become extremely popular. Considering how new the site is its pulling in impressive numbers by having short "viral friendly posts" that constantly appear on sites like digg, or reddit. Then it will be like Icanhazcheeseburger and will become annoying lol (JK). Normally sites like this get pretty stale but I consistently go to yourmindblown.com and I find such interesting content. Is it accurate? Who knows… It sure is entertaining though!!
Here they are on alexa, looks good!!
In comparison to Icanhazcheeseburger.com… woah
Regardless of numbers Check out yourmindblown.com! if you are bored! PLUS ITS ON TUMBLR
Here’s a valuable little resource I bumped into. Honestly you may be thinking oh wow another texture site?! YES! The reason why grungetextures.com deserves a post is because there is no BS here. This site deserves a plug! No signing up, no paying for large resolution versions, no limits on downloads, no restrictions! Not only that but the textures are great! Check it out if you need some help in your next 3d, graphic, or even motion project!
Click to see view at its full, large Resolution! YES!
So how many of you constantly see images, websites, videos, and even posters with a starburst background? I know I when I first attempted one of these simple design elements I found myself duplicating layers and following tutorials that had me doing excessive tedious tasks for something that isn’t even vector!
NO MORE! This is the easy way to do it, its fast and in vector to boot!!!
1. Select the Custom Shape Tool
As you can see I am selecting the “custom shape tool” in photoshop. In order to access the correct menu, click and hold the menu selection and the custom shape menu will appear at the bottom!
2. Load in all shapes!
Now that you have the custom shape tool selected, right click anywhere on your canvas and the following menu will show up. If you play around with the the shapes tool you may already know this, but we need to load in all the shapes photoshop has (do this if you are not seeing the same shapes I have)!! As you can see I selected “all” (circled in red), a menu may show up after, simply select “append” and proceed to the next step!
3. Select our base shape!
After completing the previous step we can now right click again on our canvas and you will see a ton of new shapes. I encourage you to experiment with different shapes but as you can see above in red I circled the best shapes. The following one used in the tutorial is arguably the best!
4. Drag out your shape
Drag out your newly selected shape to fill a decent size of your canvas. Tip: If you hold shift it will keep the dimensions proportionate!
5. Select the direct selection tool
After you have dragged out your shape, go and select the “direct selection tool”. If you do not see it, click and hold the menu until it shows up!!
6. Start editing the shapes points
Now with the direct selection tool selected click anywhere on your shape and voila! You can now select individual points! Our goal here is to select all of the inner points of the star. The easiest thing to do is hold shift while dragging a marquee to select all of the inner points in one nimble swoop!
7. Shrink the points
Now that our points are all selected you can either press Control/Command+T or go to edit transform. After you do that you will see the transform options at the top of photoshop. Now simply put 1% into the Width (W:) and height (H:) settings. If you want to do some other amount go right ahead, just make sure they are the same value, you can easily accomplish this by selecting the link dimensions icon! When you are satisfied simply press enter and press apply!!
8. Final step – Resize our edited shape!
Now that we have completed editing our shape’s points we have to resize the whole shape to finish our starburst. Once again select the shape and press control/command T, or edit transform.
Tip: You need to increase your shape so that it goes “offscreen.” Be very generous with how much you increase the size, the bigger the better here folks!!
9. Have fun!!
And there you have it. A Fast, Simple, and Vector starburst in photoshop! Thanks for reading and have fun!
Free courtesy of smashing magazine, a full GUI of android has come out free for download. Check it out! Its 1.5 but still extremely useful (I already have the PSD open while I’m writing this lol)!
Normally I have the urge to post images like this all the time. I use restraint though because I don’t want this to turn into a tumblr lol. More than anything though is just how shocking how good some people have it… the numbers here are incredible!
This is so useful. I constantly repair family & friends computers and this is a godsend! All you have to do is click on the programs you want and download the installer…. DONE!
At this point what hasn’t google touched? (They even bought a bought a DNA indexing company)? Although the wii, ps3, webtv, netflix, tivo, apple tv and basically all media center pc’s have some of google tv’s abilities right now.. I think that google’s reputation and distributing power will be the secret formula to their already growing list of success stories. I’m excited to see their take on tv… Even more so on how they plan to monetize it!
Watch out flash, quicktime, and .h264, there’s a new kid on the block… VP8! I have been reading about this for awhile, especially after google purchased On2. My eyebrows really raised up high when google released it under open source! What I can see happening though is flash and other 3rd party companies gobbling the codec up and integrating it right into their pre-existing codec platform… but that’s only speculation!
Depending what side you are on, the future looks bright for us all (consumers/viewers/developers). A little healthy competition never hurt anyone, and I’m sure each codec will improve in their own way.