<script type= "text/javascript" src= "https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" ></script>
<script type= "text/javascript" src= "jquery.pictotxt.js" ></script>
$( function (){
$( ".text_image" ).pictotxt({image_src: 'text_bg.jpg' });
});
Option | Description |
imagesrc | link to the picture, from your domain, * otherwise: Security error "code:" 1000, SECURITY_ERR: DOM Exception 18, etc. |
filltype | Fill text with picture: repeat - tile text area no-repeat - do not repeat the background stretch - scroll across the width \ height of the text area |
invert | invert the color of letters relative to the image, accept true / false |
show_img | show picture background under text, takes true / false |
Source: https://habr.com/ru/post/110734/
All Articles