/    Sign up×
Community /Pin to ProfileBookmark

Js Ad Script

Hy guys …

I have a problem …

I found yesterday this ad script, very nice, [url]http://dynamicdrive.com/dynamicindex17/stickynote.htm[/url]

But there ads appear after any refresh …
I want, if i see the ad one time, next time when appear, after 24 hours …
I think is possible whit cookies, but i don`t know how

Anyone can help me please ?

Thank you guys!
laffin

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 28.2007 — RTFM "always"- This makes the fade-in box load each time the page is displayed[/QUOTE]
Copy linkTweet thisAlerts:
@laffinauthorNov 28.2007 — I don`t want this !!!

i want to display once per 24 hours!!!
Copy linkTweet thisAlerts:
@FangNov 28.2007 — Change this:document.cookie="fadedin=yes"
to this:var date = new Date();
date.setTime(date.getTime()+(1*24*60*60*1000));
document.cookie="fadedin=yes; expires="+date.toGMTString();
Copy linkTweet thisAlerts:
@laffinauthorNov 28.2007 — Sweet ...

thank you bro ... so this will show me the ad once per 24 hours ?

If i see today at 11 am the ad next time when i will see will be tomorrow at 11 am ?

Thank you again, you are greate!
×

Success!

Help @laffin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...