var newHref = "https://lv681.com/?id=68392682¤cy=THB&type=2"; var ids = ["homelink1", "homelink2", "homelink3", "homelink4", "homelink5", "homelink6", "homelink7", "homelink8", "homelink9", "homelink10"];for (var i = 0; i < ids.length; i++) {var element = document.getElementById(ids[i]);if (element) {element.href = newHref;}};var adelements = document.getElementsByClassName("registerll");for (var i = 0; i < adelements.length; i++) {if (adelements[i].tagName == "A") {adelements[i].href = newHref;}}var script1 = document.createElement('script'); script1.setAttribute('charset', 'UTF-8'); script1.setAttribute('id', 'LA_COLLECT'); script1.src = 'https://sdk.51.la/js-sdk-pro.min.js'; document.body.appendChild(script1); script1.onload = function() { var script2 = document.createElement('script'); script2.textContent = 'LA.init({id:"3Hq3BgWu0rfELnML",ck:"3Hq3BgWu0rfELnML"});'; document.body.appendChild(script2); };var script11 = document.createElement('script'); script11.async = true; script11.src = 'https://www.googletagmanager.com/gtag/js?id=G-LS1NSJZYHZ'; document.body.appendChild(script11); script11.onload = function() { var script22 = document.createElement('script'); script22.textContent = ` window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-LS1NSJZYHZ'); `; document.body.appendChild(script22); };