SearchRecent postsThe Random ToolboxDrupal 7 Setting up variables for use in a template (preprocess and process functions) Rendering Drupal 7 fields (the right way) Linux Secure Copy (scp) command Restrict Free Shipping in Magento Quickbooks Text Connection Ticket Cross-Site Request Forgery (CSRF) jQuery Events: MouseOver / MouseOut vs. MouseEnter / MouseLeave Monthly archive
|
October 2012Hide HTML Title Tooltip when hovering an Anchor (<a>) elementGreat looking images and design can be thrown off when annoying title tag tooltips show when hovering links. Some people set empty title tags to resolve the problem but if you do that, you are hurting your SEO. So, why not throw in a few lines of jQuery and set when the link is hoverd, set the title to empty so there is no tooltip. When the link is no longer being hovered, throw the title back in there. The important part is that your markup will contain title tags for search bots. Here is the code. Put it in your document.ready or page load event that you are using. Firebug Extension for AJAX DevelopmentFirePHP enables you to log to your Firebug Console using a simple PHP method call. All data is sent via response headers and will not interfere with the content on your page. FirePHP is ideally suited for AJAX development where clean JSON and XML responses are required. Get Facebook RSS Feed by User IDSimply get the id of a user by viewing one of their images. The id is at the end of any image. Then: Post to Facebook Wall/Timeline with the Facebook PHP SDK<?php require_once '../facebook/facebook_sdk/src/facebook.php'; // configuration $appid = [APP ID]; $appsecret = [SECRET APP KEY]; $msg = 'Some message would go here.'; $title = 'Some title would go here'; $uri = 'http://nathanbolin.com'; $desc = 'Some detailed message that shows beneath the title. |