English 中文(简体)
是否有办法可拆解一个 but子24小时?
原标题:Is there a way to disable a button for 24 hours?

诚然,我正在研究如何做到这一点: 当一个县被点击时,它就残疾,24小时变成了计票时间。 我找不到这样做的任何办法。 例如,见http://www.donaldscott.com/Minecraft/interface.php?noCache=10“rel=“nofollow”http://www.donaldscott.com/Minecraft/interface.php?noCache=10

它需要允许你通过<条码>射线<><>条码>功能”点击一个 but子,将其拆解24小时,然后对 but进行点击。 当你重新启用该网页时,该网页将继续缩减。 你们能否用ok子这样做? j 质量? 帮助我:

最佳回答

这里与厨师的估算:

rel=“nofollow” http://www.wezelkrozum.nl/temp/countdown.php

请注意,这不是一种安全的方法。 用户不必等到服务器上才能改变价值。

问题回答

这样做有两个主要途径:

  1. By storing something on the user s machine.
  2. By storing something on your server specific to that user.

Cookies are an example of option 1. The upside to this approach is that it s much easier than the alternative. The downside is that it s not very hard for users to clear cookies, or any other form of local storage. If your webapp depends on the user not being able to click that button again for 24 hours, cookies are not a safe approach.

备选案文2更为复杂。 你们需要把你们知道的用户内容储存在服务器数据库中,并利用这一信息来决定是否让纽子和什么时间显示反面。

减少储存量是trick。 储存的唯一真正安全的东西是标识(用户使用你的标识)。 这样,每名用户就有一个独一无二的标记,如果用户记录来自另一台计算机,则会发生故障。 这样做的其他方式是同会议厨师(与备选方案1相同)或储存IP地址(优、但依然不可靠,特别是移动装置或手提电脑上的用户)。

除非你已经建立了一个数据库,并使用一些服务器侧码来产生看法,并有一个标识机制,否则你可能想考虑这一特征的重要性。 仅就这个纽州而言,增加所有工作要做。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签