Displaying Image Copyright / Credit Overlays With Vanilla JavaScript – Copy.js

Category: Javascript , Text | August 14, 2018
Authordanthom88
Last UpdateAugust 14, 2018
LicenseMIT
Tags
Views848 views
Displaying Image Copyright / Credit Overlays With Vanilla JavaScript – Copy.js

Copy.js is a lightweight Vanilla JavaScript plugin that adds custom copyrights and source links to images as text overlays.

How to use it:

Include the copy.css in the header of the html document.

<link href="copy.css" rel="stylesheet">

Include the copy.js just before the closing body tag.

<script src="copy.js"></script>

Insert your image with custom copyright information as follow:

<copyimg src="1.jpg" 
         data-srcname="CSSScript" 
         data-srclink="http://CSSScript.Com">
</copyimg>

Changelog:

08/14/2018

  • Update attributes.

You Might Be Interested In:


Leave a Reply