By Tobby on October 23, 2009
Hi, my name is Tobby Smith and I have been making web sites for over 6 years. I decided to design this web site so I could demonstrate my design skills, display my portfolio, and tell you a little about myself.
If you need a skilled web designer with extensive experience in developing online marketing campaigns, I’m your man. Feel free to take a look at my portfolio, and contact me if you have any questions.
So What Do I Do… Exactly?
I currently work as a Web Designer / Developer. I have experience doing numerous things web related, including:
- Web Design / Development
- Web Analytics
- E-mail Marketing
- Internet Promotions
- Project Management
With that said, I hope you enjoy learning a little more about me, and I hope to hear from you.
Posted in Uncategorized
By Tobby on July 17, 2010
Just a quick note to say how I found the iPhone announcement Friday really funny. I think the free case idea was result of the consistently bad service people continue to receive from AT&T. That is why I stay with Verizon, and will never go back.
BTW: Can we have a recall or free upgrade for the Comcast DVR? That’s in way worse shape than the iPhone.
Posted in Uncategorized
By Tobby on February 19, 2010
Even though we use table-less CSS layouts, there are still a lot of times where we still need to use tables for tabular data. Using classes to affect the row colors can be a pain sometimes. Ever catch yourself doing this?
<table>
<tbody>
<tr class="odd">
<td>Row 1</td>
</tr>
<tr>
<td>Row 2</td>
</tr>
<tr class="odd">
<td>Row 3</td>
</tr>
</tbody>
</table>
Adding a class to each row is error prone and takes way too much time. To get around this, a good idea is to use a little JavaScript.
function alternate(id){
if(document.getElementsByTagName){
var table = document.getElementById(id);
var rows = table.getElementsByTagName("tr");
for(i = 0; i < rows.length; i++) {
//manipulate rows
if(i % 2 == 0) {
rows[i].className = "even";
} else {
rows[i].className = "odd";
}
}
}
}
This simple JavaScript takes a table of a certain ID and finds the number of rows. Looping through the rows, it divides the row count by 2 to see if there is a remainder. No remainder, it’s even, else it’s odd. Finally, it automatically inserts the appropriate class. Works great on large tables (<1000 rows). Simply use CSS to style the even and odd classes.
To use, simply attach an event handler:
<body onload="alternate('idOfMyTable')">
Posted in Uncategorized
By Tobby on February 11, 2010
Just a note on JSON using jQuery 1.4:
It’s a lot stricter about what you pass it. {Animal:”DOG”, Name:”Fido”} must now be {“Animal”:”DOG”,”Name”:”Fido”}. Notice the extra quotes around the field names now that are required.
Looking forward to finishing that live table.
Posted in Uncategorized | Tagged jquery 1.4, JSON