﻿// JScript 文件
function show(){
    var focus_width=493
	var focus_height=220
	var text_height=0
	var swf_height = focus_height+text_height
	var pics="";
	var texts="";
	var links="";
	
	var imgArr=new Array();
	
	//第一张图片
	var img1=new item();
	img1.imgUrl="../images/loop/p10.jpg";//图片路径
	img1.link="http://math.sysu.edu.cn/main/collegesimple/newsad2.aspx";//链接
	imgArr.push(img1);
	
	//第二张图片
	var img2=new item();
	
	img2.imgUrl="../images/loop/p9.jpg";//图片路径
	img2.link="http://math.sysu.edu.cn/main/collegesimple/newsad5.aspx";//链接
	imgArr.push(img2);
	
	//第三张图片
	var img3=new item();
	img3.imgUrl="../images/loop/p8.jpg";//图片路径
	img3.link="http://math.sysu.edu.cn/main/collegesimple/newsad4.aspx";//链接
	imgArr.push(img3);
	
	//第四张图片
	var img4=new item();
	img4.imgUrl="../images/loop/p7.jpg";//图片路径
	img4.link="http://math.sysu.edu.cn/main/collegesimple/newsad3.aspx";//链接
	imgArr.push(img4);
	
	//第五张图片
	var img5=new item();
	img5.imgUrl="../images/loop/p6.jpg";//图片路径
	img5.link="http://math.sysu.edu.cn/main/collegesimple/newsad6.aspx";//链接
	imgArr.push(img5);
	
	//第六张图片
	var img6=new item();
	img6.imgUrl="../images/loop/p1.jpg";//图片路径
	img6.link="http://math.sysu.edu.cn/main/collegesimple/newsad1.aspx";//链接
	imgArr.push(img6);
	
	for(i=0;i<imgArr.length;i++){
	    if(i==imgArr.length-1){
	        pics+=imgArr[i].imgUrl;
	        links+=imgArr[i].link;
	    }
	    else{
	        pics+=imgArr[i].imgUrl+"|";
	        links+=imgArr[i].link+"|";
	    }
	}
	

	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
	document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="../images/pv.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffee">');
	document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
	document.write('<embed src="../images/pv.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffee" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}
function item(oImgUrl,oLink){
    this.imgUrl=oImgUrl;
    this.link=oLink;
}

