计数器代码加载小图像

Counter code loading small image

本文关键字:图像 加载 代码 计数器      更新时间:2023-09-26

我发现了一个运行以下代码的网站统计计数器:

<a title='counter' target='_blank' href='http://www.example.com/tracker/'>
  <img src='http://www.example.com/transparent.gif' border='0'>
</a>
<script type='text/javascript' src='http://www.example.com/tracker/example.js.php?id=11111'>
</script>
<noscript>
  <a href='http://www.example.com/'>Counter</a>
</noscript>

我认为主要部分只是为了SEO,对吧?如果只使用这一部分,计数器还会以同样的方式工作吗?

<script type="text/javascript" src="http://www.example.com/tracker/example.js.php?id=111111">
</script>

我一直想知道为什么免费服务加载一个小图像之类的东西。感谢您的反馈。

图像可能是跟踪的一部分,我认为它是禁用javascript的人的后备方案。在这种情况下,跟踪服务仍然可以跟踪来自您的IP/浏览器对此图像的传入请求(该图像是空白的,不会干扰您的设计(。