Sale Countdown Banner Widget
Add a compact countdown strip to a store or landing page: your headline, the time left on the offer and a button to the sale page, which switches to an "offer ended" line when time is up.
Live preview
Exactly what your visitors will seeUnder the widget on your page: Powered by A2Z Tools
Embed code
<iframe src="https://a2z.tools/embed/w/sale-countdown-banner" title="Sale Countdown Banner by A2Z Tools" width="100%" height="170" style="border:0;width:100%" loading="lazy" allow="clipboard-write"></iframe>
A plain iframe. Works everywhere, including site builders that strip scripts. Adjust height if your content needs more room.
<div data-a2z-widget="sale-countdown-banner" data-height="170"></div> <script async src="https://a2z.tools/embed.js"></script>
Adds a small script (what it does) that sizes the widget to fit its content, loads it lazily and keeps it isolated from your page's CSS.
Works with
How it works
The banner is a one-line version of the countdown timer designed to sit above a product grid or inside a blog post. You set the headline, the end date and time with its time zone, the button text and the link. The link is accepted only if it is a full http or https address without embedded credentials; anything else (javascript:, data: or a bare path) is dropped and the banner simply shows no button. The remaining time is recalculated from the device clock on every tick, and at the end the headline and countdown are replaced by your expiry text.
Method
- End instant = end date and time in the chosen IANA zone, converted to UTC
- Shown as d / h / m / s from ceiling((end - now) / 1000) seconds, recomputed each tick
- Button link: absolute http:// or https:// URL, real host name, no user:password, at most 2000 characters; opened with target=_blank rel=noopener noreferrer
Limitations
- The banner does not know about stock, coupon validity or your checkout - it only counts down to the time you type.
- The end time is fixed in the embed code; extending a sale means editing the code (or the builder preset) again.
- No start time: the banner shows the countdown from the moment it is published, not from a future opening.
- Clicks are not tracked; add your own UTM parameters to the button link if you want campaign figures in your analytics.
- Visitors with a wrong device clock see a wrong time left.
Where publishers use it
- Festive or Black Friday offers on an online store's home page
- Early-bird ticket deadlines on an event page
- Course enrolment windows on a training provider's site
- Limited-time coupon codes in a newsletter's web version
Questions
What happens when the offer ends?
The headline and countdown are replaced by your expiry text ("This offer has ended." by default, or v_expired). The button stays, so you can still point people to the shop.
Why was my button not shown?
The link must be a complete http:// or https:// address such as https://shop.example.com/sale. Relative paths, javascript: and data: links are refused for safety.
Does the countdown differ for visitors in other countries?
Not when you set v_zone. The end time is fixed to one instant, so everyone sees the same time left.
Can I change the colours?
The button uses the accent colour you choose in the builder, and the banner follows the light or dark theme.
Sources
- Time Zone Database (tz / zoneinfo) - IANA . Converts the offer's end time in its IANA zone to a single UTC instant
Cite or recommend this tool
If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.
A2Z Tools Sale Countdown Banner https://a2z.tools/embed/sale-countdown-banner
<a href="https://a2z.tools/embed/sale-countdown-banner">A2Z Tools Sale Countdown Banner</a>
[A2Z Tools Sale Countdown Banner](https://a2z.tools/embed/sale-countdown-banner)
Sale Countdown Banner by A2Z Tools - https://a2z.tools/embed/sale-countdown-banner
Related widgets
-
Live days, hours, minutes and seconds to a date you set, with an "event has started" message.
-
A keyboard-friendly month calendar with today highlighted and your own marked dates.
-
Shows Open now or Closed and when you open next, in your business's own time zone.
-
Exact age in years, months and days, totals in months, weeks and days, and the next birthday.
-
Convert a date and time between any two time zones, with daylight-saving gaps and overlaps explained.
-
A large live digital clock for any time zone, with seconds, date and a 12/24-hour switch.