<iframe src="//player.bilibili.com/player.html?aid=672009012&cid=123456&page=1&high_quality=1" width="100%" height="500" frameborder="0" allowfullscreen="true"></iframe>
1.
o = s.option(form.Button, ‘view_button’, _(‘组播后台’));
o.inputtitle = “web Server”;
o.onclick = function () {
var addressElement = document.querySelector(‘#cbid\\.msd_lite\\.cfg0121da\\.address .item input[type=”hidden”]’);
if (addressElement) {
var address = addressElement.value;
window.open(‘http://’ + address + ‘/stat’, ‘_blank’);
}
};
2.
o = s.option(form.Button, ‘view_button’, _(‘组播后台’));
o.inputtitle = “web Server”;
o.onclick = function (section_id) {
var dynlist = document.getElementById(‘cbid.msd_lite.cfg0121da.address’);
var items = dynlist.getElementsByClassName(‘item’);
var address = items[0].getElementsByTagName(‘input’)[0].value;
window.open(‘http://’ + address + ‘/stat’, ‘_blank’);
};
3.
o = s.option(form.Button, ‘view_button’, _(‘组播后台’));
o.inputtitle = “web Server”;
o.onclick = function(section_id) {
var address = ‘10.0.0.1:1234’; // 将“IP”替换为您手动定义的IP地址
window.open(‘http://’ + address + ‘/stat’, ‘_blank’);
};