获取用户访问的链接(Get user visited links)
回想起那些日子:)通过使用:visited技巧,可以找出用户访问哪些链接。
这很像一个魅力,但是新的浏览器(至少是我测试过的那个:Chrome)不会再给出链接的计算风格。
所以我在想,是不是有可能在访问过的链接上用不同颜色的网页创建链接,使用PHP创建一个图像并最终分析图像以找出链接的颜色?
如果有可能,你可以帮助我在正确的方向做到这一点。
例如
如何创建元素/整个页面的图像
如何分析图像
Back in the days :) it was possible to find out which links where visited by a user by using the :visited trick.
This worked like a charm, however new browsers (at least the one I've tested it on: Chrome) don't give back the computed style of a link any more.
So I was thinking wouldn't it be possible to create links on a webpage with different colors for visited links, create an image with it using PHP and finally analyzing the image to find out which colors the links have?
If it is possible can you help me in the right direction to do this.
E.g.
How to create the image of an element / entire page
How to analyze the image
原文:https://stackoverflow.com/questions/6563384