/    Sign up×
Community /Pin to ProfileBookmark

javascript show div once per day HELP

I need script that change specific div to show it only [B]Once per day[/B].(probably with a cookie that expires) this script needs to change style of that div to—>display:block<— on that time that this div is showen. Now style of that div is position:fixed; bottom:0;z-index: 100; display:none;

I dont know a thing to code in JS or JQ, so please explain in basic language.

I am googling 2 days, still cannot find answer…
Please help
Thanks

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@MrSnowDropNov 21.2012 — The style of css "position" is not relevant in that case; you need two steps: first, in place of cookies, it could be better a JS date/time function control (in simple words: "IF DAY IS... THEN SHOW THAT") then set a css "display" variable, which could be manipulated by JS, according to the first step.

BUT you have to learn some basic Javascript language to do that:

http://www.w3schools.com/js/default.asp

http://www.w3schools.com/jsref/prop_style_display.asp

http://www.w3schools.com/js/js_obj_date.asp
Copy linkTweet thisAlerts:
@SuperbartauthorNov 21.2012 — Hi MrSnowDrop,

I know that style of css "position" is not relevant, like "z-index" and "bottom" too... I tryed many times to learn the basics of JS, but W3school is not the best place for that, for me... ok I can understand some elements from JS, but the syntax I cannot understnd... Many times I copyed JS code and change it to suit to my needs, but this more complexed, with cookies I cannot understand... Anyway thanks for trying to help me, If someone have solution for my problem, please write it... I will try to search for the code...
×

Success!

Help @Superbart 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 6.18,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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