计数器代码加载小图像
我找到了一个运行此代码的网站统计计数器:
<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>
我总是想知道为什么免费服务会加载小图像之类的东西。 感谢您的反馈。
I've found a website statistics counter that runs this code:
<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>
I think the main part is just for SEO, right? Would the counter still work the same way by using just this part of it?
<script type="text/javascript" src="http://www.example.com/tracker/example.js.php?id=111111">
</script>
I'm always wondering why free services loading a small image and such things.
Thanks for feedback.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该图像可能是跟踪的一部分,我认为它是禁用 javascript 的人的后备。
在这种情况下,跟踪服务仍然可以跟踪来自您的 IP/浏览器的对此图像的传入请求(该图像是空白的,不会干扰您的设计)。
The image might be part of the tracking and I assume it is a fallback for people with javascript disabled.
In this case the tracking service can still track the incoming request from your IP/Browser for this image (which is blank and not interferring with your design).