⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moviescript.txt

📁 worldwind电影脚本,本源码为worldwind插件
💻 TXT
字号:
<html>
<head>
<title>Movie and Download with World Wind</title>
</head>
<body onload="worldwind();">
<div name="fred" id="fred" style="position:absolute;top:0;left:20;"></div><BR>
<script type="text/javascript">
<!--
var fredlayer;
var stop=false;
y1= ;     // Start Latitude 
y2= ;     // End Latitude
x1= ;    // Start Longitude
x2= ;    // End Longitude
xdifference=0.1875; //Difference to the next spot, for download use the difference 0.1875 
ydifference=0.1875; //Difference to the next spot, for download use the difference 0.1875 
delaytime=10000;//This is the waiting time between the change of the different spots. For movie 10000 milliseconds (=10 seconds) are fine, if you reduce the timeout the placename will not be shown  For download 1800000 milliseconds should be used , these are 30 minutes.
levelB=810000; //only Blue Marble, ~ 800000 metres
level0=735000; //lower than 740000 metres
level1=382000; //lower than 384000 metres
level2=191000; //lower than 192000 metres
level3=95000; //lower than 96000 metres
level4=47000; //lower than 48000 metres
level5=23200; //lower than 24000 metres
level6=11550; //lower than 12000 metres
alt=level3;  //change here only the number of the level starting from 0 to 6 to the highest level you want to see. B is the highest resolution, lower level tiles will be loaded automaticly. You can insert the wanted Altitude, too
tilt=0;  	// This is the viewing angle, 0 is view from above, 90 is bird's eye view
x3=x1;
y3=y1;
xyn=0;
i=0;
j=0;
k=0;

if (y1<y2) { //Change the Start Longitude if the End Longitude >Start Longitude
     y1=y2;
     y2=y3;
     y3=y1;
}//End of Change the Start Longitude


do{                                //count how many spots will be used
     do 
        { y1=y1-ydifference;
        xyn=xyn+1
    }while (y1 > y2 ) 
    x1=x1+xdifference; 
    y1=y3 
}while (x1 < x2 )  //end of counting the spots
document.write('<INPUT TYPE="BUTTON" VALUE="Stop the Movie" onClick="stop = true;"><br><br>');
document.write(xyn); // Number of different URL, this line could be removed, URL means a spot in World Wind
differenturl=new Array(xyn);  //write an array with data of the spots
for (var i=0; i<differenturl.length; i++)
    differenturl[i]=0;
y1=y3;
x1=x3;
document.write('<table><TR><TH CLASS="js">Latitude<\/TH><TH CLASS="js">Longitude<\/TH><TH CLASS="js">Link<\/TH><\/TR>'); //This line could be removed
do { 
    do {
	if (!tilt==0){	
        var url="worldwind://goto/world=Earth&lat=" + y1 +"&lon="+ x1 +"&alt="+alt+"&tilt="+tilt;
	} else {
        var url="worldwind://goto/world=Earth&lat=" + y1 +"&lon="+ x1 +"&alt="+alt;}        
        document.write('<TR><Td CLASS="js">'+y1+'<\/Td>');                               //These 3 lines could be removed, there are only for information about the different URl
        document.write('<Td CLASS="js">'+x1+'<\/Td>');                                    //  
        document.write('<Td CLASS="js">'+"<a href='"+url+"'>"+url+"<\/a>"+'<\/Td><\/TR>'); //
        differenturl[j]=url;
        j=j+1;
        y1=y1-ydifference;
    }while (y1 > y2 )
    x1=x1+xdifference;
    y1=y3
}while (x1 < x2 )

document.write('<\/table>'); //This line could be removed, end of writing the array

i=0;
function worldwind(){ // show the current spot and start or move World Wind to this spot
	if (stop == false) {
		if (delaytime<<10000 && k==0 && i==0){
			Id = setTimeout("worldwind()",22000);
		    changelayer_content(i);
			location=differenturl[i];
			i++;
		} else if (delaytime<< 10000 && i==0){
			if (delaytime<<1000){
				Id = setTimeout("worldwind()",15000);
			}else {
				Id = setTimeout("worldwind()",10000);}
			changelayer_content(i);
			location=differenturl[i];
			i++;
		} else {  
			if (i<differenturl.length-1){	
				changelayer_content(i);
				Id = setTimeout("worldwind()",delaytime);
				location=differenturl[i];
				i++;
			} else if (i<differenturl.length){
				changelayer_content(i);
				if (delaytime<<1000){
					Id = setTimeout("worldwind()",15000);
				}else if (delaytime<<10000){
					Id = setTimeout("worldwind()",10000);
				}else {
					Id = setTimeout("worldwind()",delaytime);}
				location=differenturl[i];
				i++;}			
		}		
		if (i== (differenturl.length)) {
			i=0;}
		k++;
	}
}   //end of current spot

function changelayer_content(counter){ //function to write the current spot
    msgstring="<a href='"+differenturl[counter]+"'>"+differenturl[counter]+"<\/a>"+"<br>";

    if(document.layers){
    //thisbrowser="NN4";
        fredlayer = document.layers[0];
        fredlayer.document.open();
        fredlayer.document.write(msgstring);
        fredlayer.document.close();
        }
    if(document.all){
        //thisbrowser="ie"
        fredlayer = document.all["fred"];
        fredlayer.innerHTML=msgstring;
        }
    if(!document.all && document.getElementById){
        //thisbrowser="NN6";
        fredlayer = document.getElementById("fred");
        fredlayer.innerHTML =msgstring;
    }
}// end of function
// -->
</script>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -