﻿// JScript 文件
function show(){
    var focus_width=389
	var focus_height=117
	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/22.jpg";//图片路径
	img1.link="http://www.mbaedu.cn/special/jinan_huashang091210/jnhs_index.html";//链接
	imgArr.push(img1);
	
	//第二张图片
	var img2=new item();
	img2.imgUrl="../images/loop/11.jpg";//图片路径
	img2.link="http://www.mbahome.com/Special/2009/jnmba/EMBA.asp";//链接
	imgArr.push(img2);
	
	//第三张图片
	//var img3=new item();
	//img3.imgUrl="../images/loop/yqing.jpg";//图片路径
	//img3.link="http://www.jnuedu.cn/10/";//链接
	//imgArr.push(img3);
	
	//第四张图片
	var img4=new item();
	img4.imgUrl="../images/loop/fc.jpg";//图片路径
	img4.link="http://www.gd.xinhuanet.com/zhibo/jnu/";//链接
	imgArr.push(img4);
	
	//第五张图片
	var img5=new item();
	img5.imgUrl="../images/loop/p1.jpg";//图片路径
	img5.link="http://www.mbahome.com/Special/2009/jnmba/index.asp";//链接
	imgArr.push(img5);
	
	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;
}

//右边广告
function show2(){
    
    var url="http://www.jnmba.com/main/news/news.aspx?no=285CBED0-AFD3-431E-A6D2-7385371792E3";
    var imgUrl="../images/loop/left.jpg";
    document.write('<img src="'+imgUrl+'" width="214" height="53" style="cursor:hand;" onclick="location.href=\''+url+'\'" />');
}

//底边的在友情连接
function show3()
{
    
    //第一张图片
    var url1="http://www.jnuedu.cn";
    var imgUrl1="../images/loop/guanyuan.jpg";
    
     //第二张图片
    var url2="http://www.mbaedu.cn/";
    var imgUrl2="../images/loop/newlogo.gif";
    
     //第三张图片
    var url3="http://www.hzbook.com/";
    var imgUrl3="../images/loop/hzbook.jpg";
    
     //第四张图片
    var url4="http://www.ploceus.com.cn";
    var imgUrl4="../images/loop/pls.jpg";
    
     //第五张图片
    var url5="http://www.jnu.edu.cn";
    var imgUrl5="../images/loop/jnu.jpg";
    
     //第六张图片
    var url6="http://www.northwestern.edu/";
    var imgUrl6="../images/loop/nwu.gif";
    
      //第七张图片
    var url7="http://www.gdeta.org";
    var imgUrl7="../images/loop/xh.jpg";

      //第八张图片
    var url8="http://www.wales.ac.uk/";
    var imgUrl8="../images/loop/wes.jpg";
    
    document.write('<table width="810" border="0" cellspacing="0" cellpadding="0">');
    document.write('<tr align="center">');
    document.write('<td><img src="'+imgUrl1+'" width="88" height="31" style="cursor:hand;" onclick="location.href=\''+url1+'\'" /></td>');
    document.write('<td><img src="'+imgUrl2+'" width="88" height="31" style="cursor:hand;" onclick="location.href=\''+url2+'\'" /></td>');
    document.write('<td><img src="'+imgUrl3+'" width="88" height="31" style="cursor:hand;" onclick="location.href=\''+url3+'\'" /></td>');
    document.write('<td><img src="'+imgUrl4+'" width="88" height="31" style="cursor:hand;" onclick="location.href=\''+url4+'\'" /></td>');
    document.write('<td><img src="'+imgUrl5+'" width="88" height="31" style="cursor:hand;" onclick="location.href=\''+url5+'\'" /></td>');
    document.write('<td><img src="'+imgUrl6+'" width="88" height="31" style="cursor:hand;" onclick="location.href=\''+url6+'\'" /></td>');
    document.write('<td><img src="'+imgUrl7+'" width="88" height="31" style="cursor:hand;" onclick="location.href=\''+url7+'\'" /></td>');
    document.write('<td><img src="'+imgUrl8+'" width="88" height="31" style="cursor:hand;" onclick="location.href=\''+url8+'\'" /></td>');
    
    
    document.write('</tr></table>');
}