How does the DiggBar work?

前端 未结 4 1509
太阳男子
太阳男子 2020-12-28 11:18

How does the DiggBar work?

I\'m trying to make an ASP.NET MVC DiggBar clone just for learning purposes and does anyone have a suggestion on how to specify the url

4条回答
  •  庸人自扰
    2020-12-28 11:36

    First of all, please don't do something like that, I don't know anyone that likes those things.

    Something can be kept at the top like that using the CSS:

    position: fixed;
    

    As for specifying the URL, I'm not sure exactly what you're asking. When you click on a link on digg now, the destination URL is something like this:

    http://digg.com/d1oIyx
    

    The "d1oIyx" would just be used as a primary key into a database where they're storing the URL to be loaded in the bottom iframe.

提交回复
热议问题