• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » Ajax settings
Ajax settings
Iorga805S
Posts: 45
Reputation: 0

Message # 1 | 9:43 AM
How can I get this ajax to appear once every 24 hours / ip

Code
<script type="text/javascript">    
window.onload = function ajax-bottom() {_uWnd.alert('Content goes here','Title',{w:500,h:100,tm:1000});}    
</script>


thanks!
LeonHaker
Posts: 95
Reputation: 0

Message # 2 | 3:03 PM
it's not possible!this ajax window will be load every time when reload the page.
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 3 | 1:19 PM
Iorga805S, it can be achieved through the use of conditional operators based on a time specific variable. The popup would appear every page load for a minute, per 24hrs. The use of JavaScript cookies or local storage variables would alternatively solve your problem making it possible to load only once however this does then complicate your script.

Good luck. wink

'Closed by Xayaan.

Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
uCoz Community » For Webmasters » Custom Solutions » Ajax settings
  • Page 1 of 1
  • 1
Search: