求一个轮换的js 这个简单,需要判断,你要先判断是JS还是图片,JS和图片是不同的轮换 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>flash图片轮播</title></head><body><div><SCRIPT type=text/javascript> <!-- var focus_width=490 var focus_height=270 var text_height=20 var swf_height = focus_height+text_height var pics='http://www.iecool.com/desk/photo/mingxing/gtnan/gtnan1_087.jpg|http://www.iecool.com/desk/photo/mingxing/gtnan/gtnan1_157.jpg|http://www.zz208.com/datas/desk/mingxing/gtnan/gtnan1_211.jpg' var links='http://book.dd88.org|http://www.eliuzd.com|http://www.shopping99.net' var texts='看书 ( book.dd88.org )|BLOG ( www.eliuzd.com )|网购 ( www.shopping99.net )' var banner='<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/banner.swf"><param name="quality" value="high"><param name="bgcolor" value="#DADADA">' 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(banner); 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('</object>'); //--></SCRIPT></div></body><!--pics 指定加载图片的位置,texts 连接文字,links 连接网址,focus_width 宽,focus_height 高,text_height 连接文字高度--></html> 谢谢,我要的是能轮放js广告的,不是flash广告 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">#ad{ position:relative;}#ad1, #ad2{ position:absolute; left:0px; top:0px; width:500px; height:80px;}</style><script type="text/javascript"> var timerID = 0; function $(id){ return document.getElementById(id); } function swap(){ if($("ad2").style.display == "none"){ $("ad1").style.display = "none"; $("ad2").style.display = ""; }else{ $("ad1").style.display = ""; $("ad2").style.display = "none"; } } window.onload = function(){ timerID = setInterval("swap()", 1000); //轮换时间 $("ad1").onmouseover = $("ad2").onmouseover = function(){ if(timerID > 0){ clearInterval(timerID); } }; $("ad1").onmouseout = $("ad2").onmouseout = function(){ timerID = setInterval("swap()", 1000); //轮换时间 }; };</script></head><body><div id="ad"> <div id="ad1" > <script type="text/javascript" src="top.js"></script> 1 </div> <div id="ad2" style="display:none"> <script type="text/javascript" src="top.js" ></script> 2 </div></div></body></html> 去俺博客看看吧有个图片特效http://blog.sina.com.cn/tecz js ie firefox js压缩工具? 关于jquery的ajaxfileupload的控件刷新问题 checkbox 全选问题 如何获得HTML源文件当前位置 提取字符串中第三个字符的方法是什么? 如何用程序设置IE的安全级别! 请问一个iframe简单问题 如何才能点击一个button,出现“保存文件”的对话框? 如何获取循环中的span的value啊?求大牛教一下 请教JAVASCRIPT如何修改光标样式~~~~网上没找到~~ 在网页中可以运行的javascript函数放在js文件中后提示缺少对象
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>flash图片轮播</title>
</head>
<body>
<div>
<SCRIPT type=text/javascript>
<!--
var focus_width=490
var focus_height=270
var text_height=20
var swf_height = focus_height+text_height
var pics='http://www.iecool.com/desk/photo/mingxing/gtnan/gtnan1_087.jpg|http://www.iecool.com/desk/photo/mingxing/gtnan/gtnan1_157.jpg|http://www.zz208.com/datas/desk/mingxing/gtnan/gtnan1_211.jpg'
var links='http://book.dd88.org|http://www.eliuzd.com|http://www.shopping99.net'
var texts='看书 ( book.dd88.org )|BLOG ( www.eliuzd.com )|网购 ( www.shopping99.net )'
var banner='<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/banner.swf"><param name="quality" value="high"><param name="bgcolor" value="#DADADA">'
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(banner);
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('</object>');
//-->
</SCRIPT>
</div>
</body>
<!--
pics 指定加载图片的位置,texts 连接文字,links 连接网址,focus_width 宽,focus_height 高,text_height 连接文字高度
-->
</html>
谢谢,我要的是能轮放js广告的,不是flash广告
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
#ad{
position:relative;
}
#ad1, #ad2{
position:absolute; left:0px; top:0px; width:500px; height:80px;
}
</style>
<script type="text/javascript">
var timerID = 0;
function $(id){
return document.getElementById(id);
}
function swap(){
if($("ad2").style.display == "none"){
$("ad1").style.display = "none";
$("ad2").style.display = "";
}else{
$("ad1").style.display = "";
$("ad2").style.display = "none";
}
}
window.onload = function(){
timerID = setInterval("swap()", 1000); //轮换时间 $("ad1").onmouseover = $("ad2").onmouseover = function(){
if(timerID > 0){
clearInterval(timerID);
}
};
$("ad1").onmouseout = $("ad2").onmouseout = function(){
timerID = setInterval("swap()", 1000); //轮换时间
};
};
</script>
</head><body>
<div id="ad">
<div id="ad1" >
<script type="text/javascript" src="top.js"></script>
1
</div>
<div id="ad2" style="display:none">
<script type="text/javascript" src="top.js" ></script>
2
</div>
</div>
</body>
</html>