How to blog Netease Park embed cloud music player

Today, suddenly want to insert a background music on his blog, the major music companies have provided the chain, such as Netease cloud music, you can find a button outside the chain generated in the web version of the song, as shown:

1558864098351

Click Generate outside the chain to jump to the following page

When you excitedly copy html code to your blog park, I found to be not effective, because the park is the blog does not support iframe tag. So, you need to move your little brains.

My thinking is that for Unicode encryption iframe keyword, then use the unescape method Js decrypt string concatenation click. The complete code is as follows:

<script type="text/javascript">
var s = unescape("\u0069\u0066\u0072\u0061\u006d\u0065");
var f = '<'+s+' frameborder="no" border="0" marginwidth="0" marginheight="0" width="280" height="52" src="//music.163.com/outchain/player?type=2&amp;id=516657051&amp;auto=1&amp;height=32" class="music" style="z-index: 0;right: 0PX;display: block;bottom: 60px;position: fixed;"></'+s+'>';
$("body").append(f); //网易云音乐
</script>

As for the effect, look at my blog just fine.

Guess you like

Origin www.cnblogs.com/yueshutong/p/10926847.html