You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
4.4 KiB
JavaScript

// JavaScript Document
<!-- Feedback video for Homepage-->
var theImages = new Array();
// do not change this
theImages[0] = '/css/images/homepage/charles.gif';
theImages[1] = '/css/images/homepage/carsten.gif';
theImages[2] = '/css/images/homepage/jose.gif';
var theImages1 = new Array(); // do not change this
theImages1[0] = '/css/images/homepage/tiananmen.jpg';
theImages1[1] = '/css/images/homepage/great-wall.gif';
var theImages2 = new Array(); // do not change this
theImages2[0] = '/css/images/homepage/shanghai-expo.jpg';
theImages2[1] = '/css/images/homepage/the-bund-2.gif';
var theImages3 = new Array(); // do not change this
theImages3[0] = '/css/images/homepage/guilin.jpg';
theImages3[1] = '/css/images/homepage/terrace-fiedl.gif';
var theImages4 = new Array() // do not change this
theImages4[0] = '/css/images/homepage/terra-cotta.jpg';
theImages4[1] = '/css/images/homepage/big-goose-pagoda.gif';
var theImages5 = new Array() // do not change this
theImages5[0] = '/image/tour-2010/winter/harbin-1.jpg';
theImages5[1] = '/image/tour-2010/winter/harbin-2.jpg';
var theImages6 = new Array(); // do not change this
theImages6[0] = '/image/tour-2010/winter/yabuli-1.jpg';
theImages6[1] = '/image/tour-2010/winter/yabuli-2.jpg';
var theImages7 = new Array(); // do not change this
theImages7[0] = '/image/tour-2010/winter/sanya.jpg';
theImages7[1] = '/image/tour-2010/winter/sanya-2.jpg';
var theImages8 = new Array(); // do not change this
theImages8[0] = '/image/TA/tripadvisor-11.gif';
theImages8[1] = '/image/TA/tripadvisor-4.gif';
theImages8[2] = '/image/TA/tripadvisor-8.gif';
theImages8[3] = '/image/TA/tripadvisor-6.gif';
var theImages9 = new Array(); // do not change this
theImages9[0] = '/image/TA/ta-1.gif';
theImages9[1] = '/image/TA/ta-2.gif';
theImages9[2] = '/image/TA/ta-3.gif';
theImages9[3] = '/image/TA/ta-4.gif';
function showImage(){
var j = 0, p = theImages.length,whichImage = Math.round(Math.random()*(p-1));//,preBuffer = new Image();
//preBuffer.src = theImages[whichImage];
document.write('<a href="/feedback/list.asp?video=true"><img src="'+theImages[whichImage]+'" border="0" alt="Feedback Video" /></a>');
}
function showImage1(){
var j = 0, p = theImages1.length,whichImage = Math.round(Math.random()*(p-1));
document.write('<a href="/beijing/"><img src="'+theImages1[whichImage]+'" border="0" alt="Beijing Travel Guide" /></a>');
}
function showImage2(){
var j = 0, p = theImages2.length,whichImage = Math.round(Math.random()*(p-1));
document.write('<a href="/shanghai/"><img src="'+theImages2[whichImage]+'" border="0" alt="Shanghai Travel Guide" /></a>');
}
function showImage3(){
var j = 0, p = theImages3.length,whichImage = Math.round(Math.random()*(p-1));
document.write('<a href="/guilin/"><img src="'+theImages3[whichImage]+'" border="0" alt="Guilin Travel Guide"/></a>');
}
function showImage4(){
var j = 0, p = theImages4.length,whichImage = Math.round(Math.random()*(p-1));
document.write('<a href="/xian/"><img src="'+theImages4[whichImage]+'" border="0" alt="Xian Travel Guide"/></a>');
}
function showImage5(){
var j = 0, p = theImages5.length,whichImage = Math.round(Math.random()*(p-1));
document.write('<img src="'+theImages5[whichImage]+'" border="0" />');
}
function showImage6(){
var j = 0, p = theImages6.length,whichImage = Math.round(Math.random()*(p-1));
document.write('<img src="'+theImages6[whichImage]+'" border="0" "/>');
}
function showImage7(){
var j = 0, p = theImages7.length,whichImage = Math.round(Math.random()*(p-1));
document.write('<img src="'+theImages7[whichImage]+'" border="0" />');
}
function showImage8(){
var j = 0, p = theImages8.length,whichImage = Math.round(Math.random()*(p-1));
document.write('<a href="http://www.tripadvisor.com/ShowTopic-g294211-i642-k4021615-l29451431-Anyone_use_China_Absolute_Tours_International-China.html" target="_blank"><img src="'+theImages8[whichImage]+'" border="0" alt="Recommendation from TripAdvisor" title="Recommendation from TripAdvisor"/></a>');
}
function showImage9(){
var j = 0, p = theImages9.length,whichImage = Math.round(Math.random()*(p-1));
document.write('<a href="http://www.tripadvisor.com/ShowTopic-g294211-i642-k4021615-l29451431-Anyone_use_China_Absolute_Tours_International-China.html" target="_blank"><img src="'+theImages9[whichImage]+'" border="0" alt="Recommendation from TripAdvisor" title="Recommendation from TripAdvisor"/></a>');
};
//<!-- End -->