Created
February 27, 2020 10:34
-
-
Save thanhpcc96/71d5d717c3f68c446cc0681fe1cc66b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--Tracking number input box.--><center><input type="text" id="YQNum" maxlength="50" placeholder="Tracking Number" /> <!--The button is used to call script method.--> <input type="button" value="TRACK" onclick="doTrack()" /> <!--Container to display the tracking result.--> | |
| <div id="YQContainer"></div> | |
| </center><!--Script code can be put in the bottom of the page, wait until the page is loaded then execute.--> | |
| <script type="text/javascript" src="//www.17track.net/externalcall.js"></script> | |
| <script type="text/javascript">// <![CDATA[ | |
| function doTrack() { | |
| var num = document.getElementById("YQNum").value; | |
| if(num===""){ | |
| alert("Enter your number."); | |
| return; | |
| } | |
| YQV5.trackSingle({ | |
| //Required, Specify the container ID of the carrier content. | |
| YQ_ContainerId:"YQContainer", | |
| //Optional, specify tracking result height, max height 800px, default is 560px. | |
| YQ_Height:560, | |
| //Optional, select carrier, default to auto identify. | |
| YQ_Fc:"0", | |
| //Optional, specify UI language, default language is automatically detected based on the browser settings. | |
| YQ_Lang:"en", | |
| //Required, specify the number needed to be tracked. | |
| YQ_Num:num | |
| }); | |
| } | |
| // ]]></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment