You can insert the tracking widget to allow visitors to enter a
tracking number to track shipment.
Copy Code
<!--Tracking number input box.-->
<input type="text" id="YQNum" maxlength="50"/>
<!-- The button is used to call script method.-->
<input type="button" value="TRACK" onclick="doTrack()"/>
<!--Container to display the tracking result.-->
<div id="THContainer"></div>
<!--Script code can be put in the bottom of the page, wait until the page is loaded then execute.-->
<script src="//www.supcourier.com/js/ht/externalcall.min.js"></script>
<script >
function doTrack() {
var num = document.getElementById("YQNum").value;
if(num===""){
alert("Enter your number.");
return;
}
TH.trackSingle({
//Required, Specify the container ID of the carrier content.
TH_ContainerId: "THContainer",
//Optional, specify tracking result height, max height 800px, default is 560px.
TH_Height: 560,
//Required, specify the number needed to be tracked.
TH_Num: num
});
}
</script>