You can buy attention (advertising);
you can beg for attention from the media (PR);
you can bug people one at a time to get attention (sales);
or you can earn attention by creating something interesting and valuable and then publishing it online for free: a YouTube video, a blog, a research report, photos, a Twitter stream, an ebook, a Facebook page.