You want to use the floaty extension. See a live example with your iPhone or Safari in DEV iPhone mode here:
link text
The code to include on that page is listed on that page, view source. The extension is the JS file and these functions call it.
script src="../../extensions/jqt.floaty.js" type="application/x-javascript" charset="utf-8"
$(function(){
$('#togglefloaty').click(function(){
$('.floaty').toggleFloaty();
$(this).removeClass('active');
return false;
});
$('#hidefloaty').click(function(){
$('.floaty').hideFloaty();
$(this).removeClass('active');
return false;
});
$('div#jqt .floaty').makeFloaty({
spacing: 20,
time: '1s'
});
});
<ul class="individual">
<li><a href="#" id="hidefloaty">Hide Floaty</a></li>
<li><a href="#" id="togglefloaty">Toggle Floaty</a></li>
</ul>