当前位置:编程学习 > C#/ASP.NET >>

急~~~FLASH播放的图片

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta name="keywords" content="钻戒, 婚戒, 钻石戒指, 裸钻, 钻石, GIA, 钻石团购, 钻石小鸟, 买钻石, 结婚" />
<link rel="stylesheet" type="text/css" media="screen" href="http://res.zbird.cn/css/wwwcache/index.css" />
<script language="JavaScript" type="text/javascript" src="http://res.zbird.cn/js/j.1.2.6.js"></script>
<script language="JavaScript" type="text/javascript" src="http://res.zbird.cn/js/j.bfbd.js"></script>
<script language="JavaScript" type="text/javascript" src="http://res.zbird.cn/js/j.scrollto.js"></script>
<script language="JavaScript" type="text/javascript" src="http://res.zbird.cn/js/j.scrollshow.js"></script>
<script language="JavaScript" type="text/javascript" src="http://res.zbird.cn/js/cookie.js"></script>
<script language="JavaScript" type="text/javascript" src="http://res.zbird.cn/js/swf.js"></script>
</head>
<body>
<div id="expFlashContent" class="floatL" style="width:765">
<div class="floatL">
<div class="floatL" style="width:550px; height:270px">
<script type="text/javascript" language="JavaScript">
makeSWF('ExperiencePageFocusShower','http://img.zbird.cn/ww2/experience/360/main_shanghai.swf',{
FlashVars:'prefixurl= http://img.zbird.cn/ww2/experience/360/flash/',
wmode: 'transparent',
scale: 'noScale',
quality: 'high',
bgcolor: null,
width : 550,
height : 270
});
</script>
</div>
</div>
</div>
</body>
</html>
这段代码运行后显示的播放图片怎样可以换成我自己的图片,求助高手帮忙~~~~~~~~~ --------------------编程问答-------------------- 你去找一下它的哪个JS里放的是图片集,把它下下来改成你的,要不你就换一个JS来实现吧 --------------------编程问答-------------------- 给你一个吧

<script type=text/javascript>
var pic_width=424; //图片宽度
var pic_height=194; //图片高度
var button_pos=4; //按扭位置 1左 2右 3上 4下
var stop_time=8000; //图片停留时间(1000为1秒钟)
var show_text=0; //是否显示文字标签 1显示 0不显示
var txtcolor="000000"; //文字色
var bgcolor="cccccc"; //背景色
var imag=new Array();
var link=new Array();
var text=new Array();
imag[1]="图片地址1";
link[1]="url";
text[1]="";
imag[2]="图片地址2";
link[2]="url";
text[2]="";
imag[3]="图片地址3";
link[3]="url";
text[3]="";
imag[4]="图片地址4";
link[4]="url";
text[4]="";
imag[5]="图片地址5";
link[5]="url";
text[5]="";

//可编辑内容结束
var swf_height=show_text==1?pic_height+20:pic_height;
var pics="", links="", texts="";
for(var i=1; i<imag.length; i++){
pics=pics+("|"+imag[i]);
links=links+("|"+link[i]);
texts=texts+("|"+text[i]);
}
pics=pics.substring(1);
links=links.substring(1);
texts=texts.substring(1);
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="images/focus.swf">');
document.write('<param name="quality" value="high"><param name="wmode" value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'">');
document.write('<embed src="flash/focus.swf" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'" quality="high" width="'+ pic_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
      </script>
--------------------编程问答--------------------
引用 1 楼 hhxxcj 的回复:
你去找一下它的哪个JS里放的是图片集,把它下下来改成你的,要不你就换一个JS来实现吧

这个不错 --------------------编程问答-------------------- 我找到它的对应的那个JS的代码
var makeSWF = function(idname,path,params,breturn){
    breturn = breturn || false;
var defaultp = {
width: 600,
height: 400,
movie: path,
allowfullscreen : false,
scale : 'exactfit',
wmode : 'transparent',
play : 0,
loop : -1,
quality : 'high',
allowscriptaccess : 'always',
bgcolor : '#ffffff',
align : 'middle',
swremote : '',
seamlesstabbing : '1',
profile : '0',
profileaddress : '',
profileport : '',
base : '',
allownetworking : 'all'
};
if(params != undefined) for(var k in params){
defaultp[k] = params[k];
}
params = defaultp;
var info = '';
var str = '<object id="'+idname+'" name="'+idname+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+params.width+'" height="'+params.height+'" align="'+params.align+'">';
for(key in params){
    if(params[key] == null) continue;
str += '<param name="'+key+'" value="'+params[key]+'">';
}
str += '<embed src="'+params['movie']+'" id="'+idname+'" name="'+idname+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"';
for(key in params){
    if(params[key] == null) continue;
if(!/^(FlashVars|wmode|scale|quality|bgcolor|width|height|align|allowScriptAccess)$/i.test(key)) continue;
str += ' '+key+'="'+params[key]+'"';
}
str += ' />';
str += info + '</object>';
if(breturn) return str;
document.writeln(str);
};

var getSWFObj = function(name){
return ((navigator.appName.indexOf("Microsoft") != -1) ? window[name] : document[name]);
};
var getSWFObjRef = function(name){
return ((navigator.appName.indexOf("Microsoft") != -1) ? window[name] : document.getElementById(name));
};

var swfMovieIsLoaded = function(theMovie){
if(typeof(theMovie) != "undefined"){
  return theMovie.PercentLoaded() == 100;
}else{
  return false;
}
};
请问各位,在哪里能改图片的地址 --------------------编程问答-------------------- 么看出来 --------------------编程问答--------------------

<base href="http://www.lami.cn">
<div id=demo style=overflow:hidden;height:150;width:90;background:#214984;color:#ffffff>
<div id=demo1> 
<!-- 定义图片 -->
<img src="/img/link.gif">
<img src="/img/link1.gif">
<img src="/img/link2.gif">
<img src="/img/link3.gif">
<img src="/img/link4.gif"> 
</div>
<div id=demo2></div>
</div><script>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight 
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>



<base href="http://www.lami.cn">
<div id=demo style=overflow:hidden;height:150;width:90;background:#214984;color:#ffffff>
<div id=demo1> 
<!-- 定义图片 -->
<img src="/img/link.gif">
<img src="/img/link1.gif">
<img src="/img/link2.gif">
<img src="/img/link3.gif">
<img src="/img/link4.gif"> 
</div>
<div id=demo2></div>
</div><script>
var speed=30
demo2.innerHTML=demo1.innerHTML
demo.scrollTop=demo.scrollHeight
function Marquee(){
if(demo1.offsetTop-demo.scrollTop >=0)
demo.scrollTop+=demo2.offsetHeight
else{
demo.scrollTop--
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} 
</script>



<base href="http://www.lami.cn">
<div id=demo style=overflow:hidden;height:33;width:200;background:#214984;color:#ffffff>
<table align=left cellpadding=0 cellspace=0 border=0> 
<tr>
<td id=demo1 valign=top><img src="/img/link.gif"><img src="/img/link1.gif"><img src="/img/link2.gif"><img src="/img/link3.gif">
</td> 
<td id=demo2 valign=top></td>
</tr>
</table>
</div>

<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft <=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} 
</script>
 



<base href="http://www.lami.cn">
<div id=demo style=overflow:hidden;height:33;width:200;background:#214984;color:#ffffff>
<table align=left cellpadding=0 cellspace=0 border=0> 
<tr>
<td id=demo1 valign=top><img src="/img/link.gif"><img src="/img/link1.gif"><img src="/img/link2.gif"><img src="/img/link3.gif">
</td> 
<td id=demo2 valign=top></td>
</tr>
</table>
</div><script>
var speed=30
demo2.innerHTML=demo1.innerHTML
demo.scrollLeft=demo.scrollWidth
function Marquee(){
if(demo.scrollLeft<=0)
demo.scrollLeft+=demo2.offsetWidth
else{
demo.scrollLeft--
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function () {MyMar=setInterval(Marquee,speed)}
</script>


--------------------编程问答--------------------

<div id="main_center_main_image"style="overflow:hidden;height:120px;width:650px;color:#ff0000"> 
<table align=left cellpadding=0 cellspace=0 border=0 width="1300"> 
<tr > 
<td id="main_center_main_image1" valign=top  width="650"> 
<table width= "489 " border=0 cellpadding=0 cellspacing=0 > 
<tr > 
<td > <a href= "# " target=_blank style= "margin:0px 1px "> <img src= "#" alt="图片一" width= "150 " height= "110 " border= "0 " > </a > </td > 
<td > <a href= "# " target=_blank style= "margin:0px 1px "> <img src= "#" alt="图片二" width= "150 " height= "110 " border= "0 " > </a > </td > 
<td > <a href= "# " target=_blank style= "margin:0px 1px "> <img src= "#" alt="图片三" width= "150 " height= "110 " border= "0 " > </a > </td > 
<td > <a href= "# " target=_blank style= "margin:0px 1px "> <img src= "#" alt="图片四" width= "150 " height= "110 " border= "0 " > </a > </td > 
</tr > 
</table > 
</td> 
<td id= "main_center_main_image2" valign= "top " width= "650"> </td > 
</tr > 
</table > 
</div> 
<script> 
  var speed=85 
  main_center_main_image2.innerHTML=main_center_main_image1.innerHTML 
  function Marquee(){ 
  if(main_center_main_image2.offsetWidth-main_center_main_image.scrollLeft <=0) 
  main_center_main_image.scrollLeft-=main_center_main_image1.offsetWidth 
  else{ 
  main_center_main_image.scrollLeft+=3 
  } 
  } 
  var MyMar=setInterval(Marquee,speed) 
  main_center_main_image.onmouseover=function() {clearInterval(MyMar)} 
  main_center_main_image.onmouseout=function() {MyMar=setInterval(Marquee,speed)} 
</script>
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,