网页制作中的滚动图片,或是自动跳出怎么弄?

来源:百度知道 编辑:UC知道 时间:2024/05/13 03:07:42
用dreamweaver怎么做?
那像广告一样自动弹出图片怎么弄?

在图片前后加<marquee>你的图片</marquee>

使用javascript是比较好的选择,网上相关代码也不少,(图片走马灯效果)如果你不是太了解javascript的话,可以使用楼上说的<marquee>标签。

<SCRIPT language=javascript>

function actionfirstpath(standtypeid,Identifier)
{
var url="standtypeid="+standtypeid
if(Identifier=="0")
{
document.location.href="main.asp";
}
if(Identifier=="1")
{
document.location.href="about.asp?"+url;
}
if(Identifier=="2")
{
document.location.href="news/news.asp?"+url;
}
if(Identifier=="4")
{

document.location.href="music/musicstypes.asp?"+url;
}
}

function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;