logo
Aug
25
Timby

jQuery IE CSS height issue

Just a quick post as I came across this problem today when I was trying to dynamically set the height of a div depending on the height of another div. My original code was something along the lines of: <script type="text/javascript"> $(document).ready(function(){    var tmpContentSize = jQuery(".colmask").css(‘height’);  ... 
Aug
19
Timby

Moving localhost virtuemart to live server

For whatever reason you may have installed joomla on your localhost and then installed the virtuemart component locally as well. This is all well and good but when it comes to moving your virtue mart installation to the live server you may notice one or two problems: The component in the administrator section is pointing to localhost all product images are pointing to localhost So what do you need to do to... 
Aug
13
Timby

Javascript detect IE

When you have written a few different pieces of JavaScript you come to realize that IE and Firefox have different opinions on what works and what doesn’t work. What this means is you may need to have different JavaScript firing if the current browser is IE! Here is a little example of how we can detect if the current browser is IE: <script type="text/javascript">    //we start... 
Aug
12
Timby

Simple PHP ad rotator

It’s pretty common to want to rotate between ad’s or content. You may want to have a mix of adsense and some CPM, or you may just want to swap between a picture of yourself and a tree. Here is a neat little switch statement that will allow you to rotate an ad/content every time the page is refreshed: <php //rand returns a number between 0 and 2 inclusive $choice = rand(0, 2); switch ($choice)... 
Aug
11
Timby

Diversify your revenue streams

Don’t put all your eggs in one basket Earning with Adsense is a great thing, but now and then we hear horror stories about accounts being banned, search rankings failing, and CPC (Cost per click) of your ads dropping. Well, search engine rankings can be tricky, but the other issues we can rectify fairly easy. How you ask? Diversify. What do you mean by that you ask? Instead of just using adsense, combine it... 
Aug
9
Timby

An introduction to making money online

Making money online is often thought of as out of reach for the average person, or something that should be left to the computer “pros”, but this is not the case anymore. Retirees, stay at home mums and dads, full time workers, university students and even high school students have all the tools needed to be successful online sitting in their lounge rooms, bedrooms and studies. That’s right, the home computer... 
Aug
8
Timby

Cool Twitter Icons

Hey, everyone loves free twitter icons! Here are a bunch of really cool Twitter birds and other Twitter icons! Jazz up your boring web pages withe some snappy Web 2.0 Twitter icons! Happy Tweeting everyone and enjoy the free twitter icons! Vector Twitter Birds: Transparent PNG924×1529 ScarletBits.com offered up this awesome free Twitter birds set. The zip includes the .eps illustrator file that can be easily... 
Aug
5
Timby

Joomla upload package Warning! Failed to move file.

So you have just found the latest and greatest joomla plugin/component that will solve all of life’s terrible problems only to get a wonderful error: Warning! Failed to move file. The good news? This error is very easy to fix as it is basically telling you that Joomla doesn’t have the correct permissions to upload the file and install it. Set the permissions of the tmp directory which is located... 
Aug
4
Timby

jQuery selecting object that has an attribute

jQuery is such a powerful, and fun, language to learn. There may be some situations where the same class is used on multiple objects, and there may be cases where you only want to target one particular type of objects despite the same class being used multiple times. For example: <table class="contentpaneopen"> <tbody> <tr> <td class="contentheading" width="100%"> <h1>MEMBERS</h1> </td> </tr> </tbody> </table> <div... 
Aug
3
Timby

jQuery selecting elements with multiple classes

The more complicated the CSS coding the more complicated selecting elements with jQuert can become. You may find yourself with a situation such as: <div class="cOne cTwo cThree"></div> <div class="cOne cTwo"></div> <div class="cOne cThree"></div> So how do we select specific elements when all of these div’s contain the class “cOne”?... 

« Previous Entries

logo
Powered by Wordpress | Designed by Elegant Themes