ChinaTravelGuide Web Widgets
From ChinaTravelGuide
ChinaTravelGuide provides some free China travel related web widgets for the travelers' community. For security reasons, we place each widget in an iframe.
You can simply embed the iframe codes to your blog, forum or any web page. Using the weather module, you can not only display the current weather conditions, but also get four days weather forecast of any Chinese city on your web page. For the train schedule module, you can display the Chinese train schedule on your web page for free. And leave the tedious job of keeping the train schedule data up-to-date to us.
To use the widget, just copy and paste the below iframe codes inside the blocks into your web page, such as blogs, forums, or other html pages.
If you have any suggestions or questions, please post on this article's discussion page.
[edit] Single city weather condition
Display the weather of a single city in China. The below example is for Shanghai. Just replace with another city's name for that city's weather conditions.
<IFRAME ID=IFrame1 SRC="http://www.ChinaTravelGuide.com/widgets/weather.php?City=Shanghai" frameborder="no" scrolling="no" width="650" height="220" allowTransparency="true"></IFRAME>
Here is what you will see on your web page:
[edit] Weather condition for any Chinese cities
Display the weather of any single city in China. Just pick the city name from the drop down box.
<IFRAME ID=IFrame1 SRC="http://www.ChinaTravelGuide.com/widgets/weather.php" frameborder="no" scrolling="no" width="650" height="280" allowTransparency="true"></IFRAME>
Here is what you will see on your web page:
[edit] China train schedule
Display the Chinese train schedule.
<IFRAME ID=IFrame1 SRC="http://www.ChinaTravelGuide.com/widgets/TrainSearch.php" frameborder="0" scrolling="yes" width="810" height="600" allowTransparency="true"></IFRAME>
Here is what you will see on your web page:




