Tooltip demo: Small tweaks.

This commit is contained in:
Scott González 2011-05-29 13:50:53 -04:00
parent 917d2b1358
commit 608bc9513f

View File

@ -38,10 +38,10 @@
}); });
} }
if ( element.is( "[title]" ) ) { if ( element.is( "[title]" ) ) {
return $( this ).attr( "title" ); return element.attr( "title" );
} }
if ( element.is( "img" ) ) { if ( element.is( "img" ) ) {
return $( this ).attr( "alt" ); return element.attr( "alt" );
} }
} }
}); });
@ -58,7 +58,7 @@
<h3><a href="http://maps.google.com/maps?q=vienna,+austria&z=11" data-geo="48.208174,16.373819">Vienna, Austria</a>.</h3> <h3><a href="http://maps.google.com/maps?q=vienna,+austria&z=11" data-geo="48.208174,16.373819">Vienna, Austria</a>.</h3>
</div> </div>
<a href="http://en.wikipedia.org/wiki/File:Wien_Stefansdom_DSC02656.JPG"> <a href="http://en.wikipedia.org/wiki/File:Wien_Stefansdom_DSC02656.JPG">
<img src="images/st-stephens.jpg" alt="St. Stephen's Cathedral"> <img src="images/st-stephens.jpg" alt="St. Stephen's Cathedral" class="ui-corner-all">
</a> </a>
</div> </div>
@ -68,7 +68,7 @@
<h3><a href="http://maps.google.com/maps?q=london,+england&z=11" data-geo="51.500152,-0.126236">London, England</a>.</h3> <h3><a href="http://maps.google.com/maps?q=london,+england&z=11" data-geo="51.500152,-0.126236">London, England</a>.</h3>
</div> </div>
<a href="http://en.wikipedia.org/wiki/File:Tower_bridge_London_Twilight_-_November_2006.jpg"> <a href="http://en.wikipedia.org/wiki/File:Tower_bridge_London_Twilight_-_November_2006.jpg">
<img src="images/tower-bridge.jpg" alt="Tower Bridge"> <img src="images/tower-bridge.jpg" alt="Tower Bridge" class="ui-corner-all">
</a> </a>
</div> </div>