Ad-rotator.js Demo

Native javascript Ad rotation made possible

This page displays 3 Ads each, on desktop & on mobile.
- A Leaderboard Ad (found just below the green button) is visible only on desktop
- A mobile device will show a sticky Ad at the top of the page (viz hidden on desktop)
- The sidebar Ad becomes sticky only on a desktop device.
- The 3rd Ad at the bottom of the page is shown only as a fallback (i.e. if an active Adblocker is found).

Ad-rotator in Fallback Mode

In fallback mode, Ads will be shown only if the library detects an Adblocker. This is specially useful if you wish to display Ads from another provider like Google, Amazon, Carbon, etc. and want to use Ad-rotator.js only as a fallback solution.

If there is an active adblocker, you should see Ads displayed below by the library, otherwise you will see some text content.

*** Fallback Mode ***
No Adblocker detected.
Try turning on an Adblocker to see Ads injected by Ad-rotator.js in this space