Sure, try the below modified .js file, which adds a "showafter" option, in milliseconds. Then in your initialization code, you can specify a delay before the content is shown on the page:
Code:
alwaysOnTop.init({
targetid: 'examplediv',
orientation: 3,
position: [5, 10],
fadeduration: [1000, 1000],
frequency: 0.95,
hideafter: 15000,
showafter: 5000
})
Make sure inside the markup for the content in question that it's initially hidden, by setting its display property to "none":
Code:
<div id="examplediv" style="width:140px; border:1px solid gray; padding: 10px; background: lightyellow;display:none">
This DIV is static and shown 95% of the time the page loads. It's positioned relative to the lower left corner of the window. It disappears after 15 seconds.
</div>
Bookmarks