Recommend this page to a friend! |
Download .zip |
Info | View files (8) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2016-04-23 (6 months ago) | Not enough user ratings | Total: 116 | All time: 368 This week: 19 |
Version | License | JavaScript version | Categories | |||
adfly 1.0 | GNU General Publi... | 1.0 | HTML |
Description | Author | |||||||||||||
This object can change links in a Web page to show adf.ly ads. |
|
Adf.ly link changer script ========================== Usage ----- Include js: `<script type="text/javascript" src="adfly.js" ></script>` Init script (at the bottom of the page, preferably just before the </body>): `Adfly('your_adfly_id', {options});` Example ------- Adfly('your_adfly_id', { exclude: ['www.testsite.com','*example.com','test.test.com'], type : 'banner' }); Options ------- * include: domains to include [str|array] defaults to '*' * exclude: domains to exclude [str|array] * parent: element in which to change links [DOM Element] defaults to document * type: ad type [int|banner] defaults to int Include & exclude accepts '*' as a wildcard ( *example.com matches www.example.com, example.com, foo.bar.baz.example.com) Alternative usage ----------------- var adfly = new Adfly('your_adfly_id', { include : '*example.com' }); adfly.replace(); adfly.options.type = 'banner'; adfly.options.include = '*example.other'; adfly.replace(); License ------- GPL3 |
Files |
File | Role | Description | ||
---|---|---|---|---|
tests (2 files, 1 directory) | ||||
adfly.js | Class | Class source | ||
adfly.min.js | Class | minified | ||
index.html | Doc. | Documentation | ||
README.md | Doc. | Documentation |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
qunit (2 files) | ||||
run-qunit.js | Test | Unit test script | ||
testSimple.html | Doc. | Documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
87% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.