Archive for the ‘helpful hints’ Category

Awesome developer resource: CanIuse.com

Sunday, September 5th, 2010

Have you ever worked on a project and wondered what is supported by X Browser? I must ask myself this a hundred times a day. (especially nowadays with modern formats changing left and right) Well caniuse.com is a great resource I stumbled upon that helps to alleviate the headaches caused by trying to build a "stable" website while using new technologies. While it may not be the "ultimate solution," it certainly is one more valuable tool in your arsenal to combat browser problems!

Recommended for people testing the waters with HTML5!

check it out!!  http://caniuse.com/

 

 

SEO Friendly-"er" simple rollover using CSS!

Friday, September 3rd, 2010

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.

NOW THEY ARE UNITED AS 1!

EXAMPLE:

THE HTML:

<a href="index.php" id="button" title="My button name">
<h1><span class="sneakyText">My Name</span></h1>
</a>

THE CSS:

.sneakyText{
    display:none;
}
#button{
background-color:#FFFFFF;
background-image:url("rollover-addRemove.jpg");
background-position:0 0;
background-repeat:no-repeat;
display:block;
height:41px;
width:121px;
}
#button:hover{
    background-position:0 -41px;
}

 

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!)

#button:focus{
    background-position:0 -82px;
}

 

 

 

How To: Simple 20 second vector starburst!

Sunday, August 8th, 2010

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!


Wow! An Extremely Useful indexed UVW unwrap map!!!

Monday, March 15th, 2010

While I was browsing /3dcg/, I came across this little gem!! So far it’s certainly made my life easier!! Download it and perfect your maps!

helpful indexed 3d unwrap grid 1

The map applied to a model!

The map applied to a model!

helpful indexed 3d unwrap grid 2

smaller indexed 3d unwrap grid 2

The lower res map applied to a model

As you can see this one is more general!

How to test websites for multiple IE(5,6,7,8)versions!

Sunday, January 10th, 2010

Internet Explorer 6..who the heck still uses that?

internet explore 6 usage

From the W3C

Lots of people still use IE6, despite the fact that it came out in 2001!! That’s a whopping 9 years! Bottomline, ie6 users are not going anywhere, you must accommodate them!

Typical Internet explorer 6 user

The problem

Wow, where to begin. O I know lol, I hate Internet explorer 6. I found that a lot of my time developing websites was wasted testing the internet explorer series 7 and below to make sure there are no problems (along with a thousand conditionals for iftltIE) through various inefficient methods. Well finally there is a decent solution… enter IETester!

What does it do?

Pictured: Scirodesign tabbed in ie 5.5, 6, 7, and 8!

It allows you to test a website in all major versions of IE. Not only that but it has diagnostic tools within it to assist you with debugging and analysis. Simple problem, simple and elegant solution. Thanks DebugBar

What’s so great about it?

  • You can tab 5,6,7,8 all in one window!
  • Works on vista and 7
  • FREE!
  • No need to create a virtual box!
  • Once again NO NEED TO CREATE A VIRTUAL BOX!

Enough Talk! Where can I get it?!

download it here!!

(AS3) – Tweenlite delayedCalls();

Saturday, January 9th, 2010

Tweenlite/Max is easily my favorite AS3/AS2 Tween Engine. Here’s a quick code snippet that most people do not know about!! If you enjoy using timers in AS3 check out the “delayedCall()” function in TweenMax/Lite. The key argument here is scalability, after a while using 1 line of code  (delayedCall) becomes a lot more convenient then the more involved timer class.


Std. Timer listener dispatch + function

package {
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.display.Sprite;

    public class TimerExample extends Sprite {

        public function TimerExample() {
            var myTimer:Timer = new Timer(1000, 2);
            myTimer.addEventListener("timer", timerHandler);
            myTimer.start();
        }

        public function timerHandler(event:TimerEvent):void {
            trace("timerHandler: " + event);
        }
    }
}

VS.


Std. Tweenlite/Max delayedCall (v.11)

package {
    import com.greensock.*;
    import flash.display.Sprite;
    public class DelayedCallExample extends Sprite {

        public function DelayedCallExample() {
            TweenLite.delayedCall(0.5, myDelayedCall, [1,true]);
        }

        public function myDelayedCall(argument1:Number,Boolean):void {
            trace("that was easy!");
        }
    }
}
myD

Valuable SEO resource: SERPS Relationships

Tuesday, December 1st, 2009

Here is something I stumbled upon the other day. It is a flash chart that shows the current relationship of SERPS between all major search engines. It even has a date feature that allows you to go back about 9 years!!! Very valuable information(and cool)!

seo relationships

seo relationships

  1. Click Here for the current (interactive) chart!
  2. Click Here for the chronological chart

The easiest way to disable flash for testing alternate content!

Wednesday, November 4th, 2009

This is something I have constantly wrestled with to find a clear cut answer. Its funny because back in the day I can remember that I had to literally go into my C:\program files and change the name of some  .dll, or .exe in order to cancel flash from loading. Adobe/Macromedia were pretty firm on the issue that they don’t want you “disabling” their plugin lol. Then there was an onslaught of plugins for FF, IE, etc that could also do it but none of them worked well. Finally FF was sensable about it and included an easy “disable flash” option which makes things so simple. The problem is that noone seems to know about it lol. So with that said, here’s how to do it!!


1. Here’s my Site!

sciro design

This is what my Site looks like with flash enabled. Pretty nice huh?

Now lets get rid rid of flash to see what my site looks like on a user’s mobile phone, older computer, or a computer at a business/school/etc that blocks flash all together!

2. Lets get rid of flash for a sec!

disable flash

To start head to the top of Firefox and find the “tools” menu. From there find “Add-ons” (as shown above) and click it!

3. The “Add-ons” menu!

disable flash2

After you clicked “Add-ons” from the “tools” toolbar you will get this dialog box that pops up. It should pop-up, and be on “extensions.” however we want to go elsewhere, so proceed to the next step!

3. Find the “plugins” section!

disable flash firefox

As you can see above “highlighted in red” simply click the “plugins” tab and then proceed to the next step! (we are almost done!)

3. Find “ShockWave Flash”!

disable flash how

After you clicked the “plugins” button you will be presented with a lot of different items (more or less depending on what you personally installed). Regardless, the list is in alphabetical order so scroll down to “S” and find “Shockwave Flash” which is “circled in red” above!

3. Disable/Enable Flash!

re enable  flash

Finally just click “Disable” to temporarily turn off flash. When you are ready to turn it back on, just press “Enable” and you’ll be able to view any flash content like youtube videos, flash sites, and most importantly facebook’s farmville again lol.

3. Begin testing!

sciro design no flash

Here is my site with flash turned off. I personally use swfObject 2.0 (I’ll blog about swfObject soon, and why its so good) which presents the alternate content to my users. If they don’t have flash, then they have two options. Either update flash to the current version, or enter my low bandwidth site which doesn’t really require flash for any crucial information!

Have fun and Happy testing!

I started using sticky notes They help so much lol

Sunday, November 1st, 2009

I started using sticky notes with color codes for task management, and after my first week I have to say its awesome! I think I overdid it though lol, but I feel my overall efficiency is so much better!

sticky notes

A week of stickies lol

stickynotes stickied

stickies in action on my desk

The easiest way to resize your browser for testing webdesign!

Wednesday, October 14th, 2009

browser resize plugin

The Problem:

I constantly have this problem where I have to resize my browser window to check my sites/designs/etc on multi monitors. Normally I use my nvidia control panel, or just the plain windows display control panel. The problem though is that my monitors are not normal 4:3, I have a 16:9,and a 1:1. Whenever I use the graphic card based resize my monitors freak out and stretch, flicker, and give warnings etc.

The solution?

This awesome browser window resizer plugin for FF. Its so simple and has a variety of sizes:

windows_resizer

Supported Resolutions:

640×480

800×600

1024×768

1280×800

1280×1024

1600×1200

Grab it here!