即时比分免费调用 V2.1
Choose the version below to display real-time live scores on your website.
🖥️ 电脑版调用 (PC)
<iframe id="spboscoreiframe" src="https://bf.spbo.com/free.htm" title="体球网即时比分" scrolling="no" frameborder="0" allow="autoplay" style="width: 100%; height: 1000px; border: 0; display: block;"> </iframe> <script> (function() { var requestAnimFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) { window.setTimeout(callback, 20); }; var iframe = document.getElementById('spboscoreiframe'); var currentHeight = 0; var updateScheduled = false; function onMessage(e) { if (typeof e.data === 'string' && e.data.indexOf("SPBO_H:") === 0) { var h = parseInt(e.data.substring(7), 10); if (h && h !== currentHeight) { if (!updateScheduled) { updateScheduled = true; requestAnimFrame(function() { iframe.style.height = h + 'px'; currentHeight = h; updateScheduled = false; });}}}} if (window.addEventListener) { window.addEventListener('message', onMessage, false); } else if (window.attachEvent) { window.attachEvent('onmessage', onMessage); } })(); </script>
复制中文版调用代码
<iframe id="spboscoreiframe" src="https://bf.spbo.com/en.htm" title="SPBO Live Score" scrolling="no" frameborder="0" allow="autoplay" style="width: 100%; height: 1000px; border: 0; display: block;"> </iframe> <script> (function() { var requestAnimFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) { window.setTimeout(callback, 20); }; var iframe = document.getElementById('spboscoreiframe'); var currentHeight = 0; var updateScheduled = false; function onMessage(e) { if (typeof e.data === 'string' && e.data.indexOf("SPBO_H:") === 0) { var h = parseInt(e.data.substring(7), 10); if (h && h !== currentHeight) { if (!updateScheduled) { updateScheduled = true; requestAnimFrame(function() { iframe.style.height = h + 'px'; currentHeight = h; updateScheduled = false; });}}}} if (window.addEventListener) { window.addEventListener('message', onMessage, false); } else if (window.attachEvent) { window.attachEvent('onmessage', onMessage); } })(); </script>
复制英文版调用代码
📱 手机版调用
<iframe id="spboscoreiframe" src="https://bf.spbo.com/free3g.htm" title="体球网即时比分" scrolling="no" frameborder="0" allow="autoplay" style="width: 100%; height: 1000px; border: 0; display: block;"> </iframe> <script> (function() { var requestAnimFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) { window.setTimeout(callback, 20); }; var iframe = document.getElementById('spboscoreiframe'); var currentHeight = 0; var updateScheduled = false; function onMessage(e) { if (typeof e.data === 'string' && e.data.indexOf("SPBO_H:") === 0) { var h = parseInt(e.data.substring(7), 10); if (h && h !== currentHeight) { if (!updateScheduled) { updateScheduled = true; requestAnimFrame(function() { iframe.style.height = h + 'px'; currentHeight = h; updateScheduled = false; });}}}} if (window.addEventListener) { window.addEventListener('message', onMessage, false); } else if (window.attachEvent) { window.attachEvent('onmessage', onMessage); } })(); </script>
复制中文版调用代码
<iframe id="spboscoreiframe" src="https://bf.spbo.com/en3g.htm" title="SPBO Live Score" scrolling="no" frameborder="0" allow="autoplay" style="width: 100%; height: 1000px; border: 0; display: block;"> </iframe> <script> (function() { var requestAnimFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) { window.setTimeout(callback, 20); }; var iframe = document.getElementById('spboscoreiframe'); var currentHeight = 0; var updateScheduled = false; function onMessage(e) { if (typeof e.data === 'string' && e.data.indexOf("SPBO_H:") === 0) { var h = parseInt(e.data.substring(7), 10); if (h && h !== currentHeight) { if (!updateScheduled) { updateScheduled = true; requestAnimFrame(function() { iframe.style.height = h + 'px'; currentHeight = h; updateScheduled = false; });}}}} if (window.addEventListener) { window.addEventListener('message', onMessage, false); } else if (window.attachEvent) { window.attachEvent('onmessage', onMessage); } })(); </script>
复制英文版调用代码