How does the DiggBar work?

前端 未结 4 1505
太阳男子
太阳男子 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 11:37

    The basic html is:

    
    
      
    
    
    All your toolbar stuff here.

    You would have a slug on your own URLs that maps to the page's URL, e.g.
    d1oKo3 => http://news.bbc.co.uk/2/hi/technology/7991708.stm

    All your view would have to do is look up the mapping and put the page's URL into the iframe's src. Just make sure you have a way for users to opt out, as some people don't like this sort of toolbar.

提交回复
热议问题