Signin  Pricing  Examples  Support

Libraries > caption.js

caption.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://gambit-chess.ru/media/system/js/caption.js


Libraries on gambit-chess.ru


ajax.js

autocompleter.js

caption.js

core.js

mootools-core.js

mootools-more.js

jquery.nc.js

script.js

nssp2.js

fader.js

jquery.min.js

jquery.nivo.slider.pack.js

menu.js



Explore More


jquery.js

jquery-migrate.js

jquery-noconflict.js

core-uncompressed.js

caption.js
				
/*
		GNU General Public License version 2 or later; see LICENSE.txt
*/
var JCaption=new Class({initialize:function(a){this.selector=a;$$(a).each(function(a){this.createCaption(a)},this)},createCaption:function(a){var f=document.createTextNode(a.title),c=document.createElement("div"),d=document.createElement("p"),e=a.getAttribute("width"),b=a.getAttribute("align");if(!e)e=a.width;b||(b=a.getStyle("float"));if(!b)b=a.style.styleFloat;if(b==""||!b)b="none";d.appendChild(f);d.className=this.selector.replace(".","_");a.parentNode.insertBefore(c,a);c.appendChild(a);a.title!=
""&&c.appendChild(d);c.className=this.selector.replace(".","_");c.className=c.className+" "+b;c.setAttribute("style","float:"+b);c.style.width=e+"px"}});


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z