If you want to embed Flash video on your website, you could do a lot worse than use Flowplayer which is an open source Flash player. The set-up process is really easy and there are lots of demos with code on the Flowplayer website. The player has many configuration options including the use of a preview image for your Flash video but the basic set-up only takes a minute or two. Excellent!
Info: Like other methods, for example swfobject, Flowplayer uses a JavaScript file so it is best to show a message, using a <noscript> tag, for users who may have JavaScript disabled.
Twitter has opened its doors a bit more so that you can add its functionality to your website. Its @Anywhere platform allows you to integrate Twitter into your website. Yes, it was possible to add tweets and Twitter data before this but now there’s all sorts of new ways to use Twitter functionality including the hovercard user profile pop-ups that you see on the Twitter website.
This link, Clive Walker on Twitter, is an example. The Twitter call can automatically create links for any instances of the username in your text (if you choose to do this) and it will add the hovercard pop-up. In my case, I prefer to create the links myself and set-up the code so that only links with my class = "tweep" are selected. The Twitter username is required of course and this is parsed from the title attribute of the link; images can be linked in a similar way. With a slight variation in code, the username can also be obtained from the text of the link.
Move your mouse over the Clive Walker link to see my Twitter profile information. If you are logged into Twitter at the same time, there is more information and actions (for example, following the user) available to you. Here's a link to the hovercard JavaScript I am using (you'll also need a Twitter API key call in your webpage). I have also added a Twitter icon in my CSS for any link with the "tweep" class, just so it is clear which links have the hovercard treatment.
Of course this is a good thing for Twitter because it will spread Twitter across a wider spectrum of websites. However, since I am mentioning Twitter usernames more and more in blog posts, I reckon the pop-ups add something for me as well.
Info: There’s more documentation on the Twitter @Anywhere website. You’ll need to sign-up for an API key before you can use the @Anywhere system. I also found this tutorial useful.
I have been working on a website where one of the requirements is a JavaScript slideshow and/or an image gallery that the website owner or client could update. It is possible to do this via content management systems like Wordpress or Perch (and many others) but in this case, for various reasons, we had an HTML website, without database, to work with. At the same time, the system had to be really simple. So simple in fact, that all the client has to do is upload images (via FTP perhaps) into the correct folder on the server.
I am reading a new jQuery book from Sitepoint at the moment. It’s called jQuery: Novice to Ninja and it promises to take you from beginner to expert. If you have copied and pasted jQuery code up to now without thinking or knowing how it works, this book could be for you! The book covers a whole range of examples so it’s also very good for intermediates. I have used some of the code from the first chapters already!
The book weighs in at just over 400 pages and is divided into nine chapters that start with the basics of jQuery, and its use for selecting, decorating and enhancing your HTML, and moving on to chapters about, for example, animations, images and slideshows, menus, tabs, and tooltips, and Ajax. The book also includes a final chapter on creating a jQuery plugin and advanced methods for extending jQuery.
I’ll post a more in depth review when I have read through the whole book.
Downloads: Get sample chapters from JQuery Novice to Ninja with this free download • The code archive from the book is also available.
Over the last week or so I have come across several websites that allow users to navigate using the left and right arrow keys. I think this is an interesting approach and I really like this method of navigating a website. Perhaps it’s just me but I like using keyboard shortcuts (because they seem to allow me to do things faster) …. so it’s interesting to see websites using the left and right keys in this way. Here are the website examples I have spotted that use this method.
There is an adding keyboard navigation tutorial at jQuery for Designers which explains how a similar effect is achieved with an image slider. The jQuery Tools website has Scrollable which enables a content slider to be navigated with left-right keys.
There may be disadvantages to this method but I’m keen to find out more about it so if you know of other websites that use this approach, let me know.
Flexible Web Design by Zoe Mickley Gillenwater describes how to build fluid and elastic CSS layouts. It's a great read!
Buy from Amazon.com · Amazon.co.uk
Join SugarSync for online backup. Sync your files between Mac, PC and mobile phone. Get 2 GB FREE and up to 10 GB bonus space!