Dynamically generated favicon

后端 未结 4 2073
有刺的猬
有刺的猬 2020-12-07 10:21

Would it be possible using only JavaScript and HTML to dynamically generate a favicon, using the current page\'s favicon as a background, and a random number in the foregrou

4条回答
  •  日久生厌
    2020-12-07 10:39

    I don't know about doing it all in the browser, but it would be easy to have a server endpoint that accepted parameters in the URL and returned a composed favicon. Then Javascript could modify the favicon url to get the image it wanted.

提交回复
热议问题