TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Paul Graham's blog: Curious choice of HTML for building the side panel

4 点作者 j1nd4L超过 3 年前
I was reading an essay on Paul Graham&#x27;s blog[1] and the side panel[2] seemed erringly pixelated even on my MBP. I inspected the web page and found that the whole side panel is infact a gif[3] and the different links on the page are linked using the coordinates of the image.<p>Example for the first link: &lt;area shape=&quot;rect&quot; coords=&quot;0,0,67,21&quot; href=&quot;index.html&quot;&gt;<p>TBH, I did not know this is something which can be done in HTML but that got me curious on how it ended up on PG&#x27;s blog given many limitations it has :)<p>[1]: http:&#x2F;&#x2F;paulgraham.com&#x2F; [2]: https:&#x2F;&#x2F;i.imgur.com&#x2F;uo254ts.png [3]: https:&#x2F;&#x2F;s.yimg.com&#x2F;aah&#x2F;paulgraham&#x2F;quotes-1.gif

3 条评论

Beltalowda超过 3 年前
It&#x27;s just old; back in the day HTML had very little graphic capabilities, and loading multiple images was comparatively slow (think 56k connections). So you&#x27;d load a single image and then subdivide that in clickable areas with image maps (which is what this is called).
ssss11超过 3 年前
Isn’t it an image map? No one uses them any more I don’t think but they had their time.
foldr超过 3 年前
As other commenters have said, this used to be a very common technique.<p><a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;HTML&#x2F;Element&#x2F;map" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;HTML&#x2F;Element&#x2F;ma...</a>