In addition to what Chef said, the day of ex dividend, the share price will tend to move in line with the amount of the dividend, so on a flat day, it is likely to lose the $0.26 it gave you in a dividend, on a down day, it will loss more.
So if you buy and sell quickly you arew swapping an income stream for a capital loss. The capital loss can be used to offset a capital gain, if you have any, otherwise it does nothing for you.
Also if the dividend is franked, ie the company has already paid tax on it, you need to hold the share for (don't quote me on this) 45 days, otherwise you are not eligible for the franking credits and you will need to pay more tax.