BVB Source Codes

Shandong kernel enterprise stand the source code Show title_ad.js Source code

Return Download Shandong kernel enterprise stand the source code: download title_ad.js Source code - Download Shandong kernel enterprise stand the source code Source code - Type:.js
  1. /*
  2.  
  3.  * title_ad script
  4.  
  5.  * powered by jQuery (http://www.jquery.com)
  6.  
  7.  *
  8.  
  9.  * written by Alen Grakalic (http://cssglobe.com)
  10.  
  11.  *
  12.  
  13.  * for more info visit http://cssglobe.com/post/1695/easiest-title_ad-and-image-preview-using-jquery
  14.  
  15.  *
  16.  
  17.  */
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. this.title_ad = function(){    
  26.  
  27.         /* CONFIG */           
  28.  
  29.                 xOffset = 10;
  30.  
  31.                 yOffset = 20;          
  32.  
  33.                 // these 2 variable determine popup's distance from the cursor
  34.  
  35.                 // you might want to adjust to get the right result            
  36.  
  37.         /* END CONFIG */               
  38.  
  39.         $("a.title_ad").hover(function(e){                                                                                       
  40.  
  41.                 this.t = this.title;
  42.  
  43.                 this.title = "";                                                                         
  44.  
  45.                 $("body").append("<p id='title_ad'>"+ this.t +"</p>");
  46.  
  47.                 $("#title_ad")
  48.  
  49.                         .css("top",(e.pageY - xOffset) + "px")
  50.  
  51.                         .css("left",(e.pageX + yOffset) + "px")
  52.  
  53.                         .fadeIn("fast");               
  54.  
  55.     },
  56.  
  57.         function(){
  58.  
  59.                 this.title = this.t;           
  60.  
  61.                 $("#title_ad").remove();
  62.  
  63.     });
  64.  
  65.         $("a.title_ad").mousemove(function(e){
  66.  
  67.                 $("#title_ad")
  68.  
  69.                         .css("top",(e.pageY - xOffset) + "px")
  70.  
  71.                         .css("left",(e.pageX + yOffset) + "px");
  72.  
  73.         });                    
  74.  
  75. };
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. // starting the script on page load
  84.  
  85. $(document).ready(function(){
  86.  
  87.         title_ad();
  88.  
  89. });
downloadtitle_ad.js Source code - Download Shandong kernel enterprise stand the source code Source code
Related Source Codes/Software:
Dede V2.2 dance music program - This system is based on DEDE5.7 sp1 production dan... 2016-11-11
Search engine v1.0 eight grams of novels - This program consists of WEB side and collection p... 2016-11-11
A thief free Jacky novel CMS, support for multiple station collection, support pseudo original SEO - A thief free Jacky novel CMS, support for multiple... 2016-11-11
Kunlun lubricating oil companies stand the source code - Just testing, free, source code is very beautiful ... 2016-11-11
Imitation of Chinese stationmaster net source dreams to 5.7 sp1 source code - Exactly the same and the Director of China network... 2016-11-11
Newscoop CMS v4.0.4 multilingual version - Newscoop is a content management system is mainly ... 2016-11-11
Ku978 navigator free send you department (with acquisition module) - Is I purchase the commercial version of this progr... 2016-11-11
Think of concise message this v1.1 - Wisdom of concise message this V1.1 main functions... 2016-11-11
nvidia-docker - Build and run Docker containers leveraging NVIDIA ... 2017-04-08
quickstart - Angular 2 QuickStart - source from the documentati... 2017-04-08
jQuery-Autocomplete - Ajax Autocomplete for jQuery allows you to easily ... 2017-04-08
Android-Best-Practices - Android best practice examples 2017-04-08
Bootstrap-Admin-Template - Metis - Free Bootstrap Admin Dashboard Template ... 2017-04-08
CocoaSPDY - SPDY for iOS and OS X 2017-04-08
parse-dashboard - A dashboard for managing your Parse apps that aren... 2017-04-08
HoloEverywhere - NO LONGER MAINTAINED. DEVELOP FOR 4.X+ DUDE. 2017-04-08
side-comments - [UNMAINTAINED] An interface component to give your... 2017-04-08
SVG-Morpheus - JavaScript library enabling SVG icons to morph fro... 2017-04-08

 Back to top