English 中文(简体)
添加对现场外部链接的看法
原标题:Adding view count to external links on site

我想要创造彩色,在被点击时,图像直接与网站链接。

然而,我也希望有一种观点(或点击更具描述性)以显示对 h上的形象的过度。

我如何建立联系/观点? 因为没有实际装满一页,只有被点击的链接?

在这一点上,我还想使用一种习俗,即“URL”服务。 是否有任何人知道是好的,和(或)有办法解决我的问题?

Cheers!

问题回答

我为您做了一个名单:

  1. [JS/AJAX] catch the click event and send a message to the server what was clicked
  2. [PHP/ROR/Python/etc] store information in the DB (increment the clicked element counter)
  3. [PHP/ROR/Python/etc] when page is loaded, retrieve counter values from DB and put them into the HTML
  4. [JS] use counter values to display them over images

As for short URL services I like goo.gl .





相关问题
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.

热门标签