AllAboutiWeb not only has an article on how to make your iWeb site look good on an iPhone or iPod Touch, it has recently published a tutorial that allows you to detect if you have a visitor from one of Apple’s mobile devices.
It is quite useful to detect visitors from a mobile device because that allows you to redirect them to a modified website suited for smaller screens.
It actually isn’t very hard – here’s how: