【问题标题】:What is making the request for tis image file? [closed]什么是请求 tis 图像文件? [关闭]
【发布时间】:2013-09-11 11:38:58
【问题描述】:
如果我检查网络活动(使用 Google Chrome 检查器)以服务 this page,我注意到一个名为 close.gif 的文件的请求无法找到。
这个文件请求的奇怪之处首先是请求的发起者被列为“其他”——在大多数其他情况下,发起者与原始请求的域名相同。接下来,我 grepped the entire source tree 并在其中的任何地方都找不到 close.gif。
任何有关识别此静态 html 站点的哪个方面正在发起对该未知文件的请求的帮助表示赞赏。
【问题讨论】:
标签:
html
google-chrome
google-chrome-devtools
【解决方案1】:
- 打开 chrome 检查器,
- 点击“元素”
- 按 [Ctrl]+[F]
- 键入“close.gif”
-
注意这一行:
<div id="template04_close" style="display: none; padding: 0px; position: absolute; left: 163px; top: 0px; width: 20px; height: 20px; background-image: url(http://www.freegold.biz/supreme/close.gif); cursor: pointer; z-index: 10003; visibility: hidden; background-position: initial initial; background-repeat: no-repeat no-repeat;"></div>
尤其是这部分
background-image: url(http://www.freegold.biz/supreme/close.gif);
从免费黄金中获利。