Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ( function( d )
- {
- var img = d.querySelector( 'img' ),
- text;
- text = d.createElement( 'strong' );
- text.style.marginTop = '20px';
- text.style.display = 'block';
- text.style.textAlign = 'center';
- text.innerHTML = img.title;
- img.parentNode.insertBefore( text, img.nextSibling );
- } )( document );
Add Comment
Please, Sign In to add comment