电脑故障

位置:IT落伍者 >> 电脑故障 >> 浏览文章

图片在显示一定的时间后消失


发布日期:2023/11/6
 

图片在显示一定的时间后消失

将以下代码加到〈body〉与〈/body〉之间

<SCRIPT language=>

// ) 设置ALT属性

var alttext=M空间国际域名国内

// ) 设置下列属性为 或者(是IE特有的使LOGO隐现)

var fadeintoview=

var visibleduration=

function regenerate(){

windowlocationreload()

}

function regenerate(){

if (documentlayers)

setTimeout(windowonresize=regenerate)

}

var fadeset=

if (fadeintoview)

fadeset=filter:alpha(opacity=)

if (documentall)

documentwrite(<span ></span>)

function bringintoview(){

if (logofiltersalphaopacity<=)

logofiltersalphaopacity+=

else{

clearInterval(viewit)

if (visibleduration!=)

setTimeout(logostylevisibility=hiddenvisibleduration*)

}

}

function createlogo(){

staticimage=new Layer()

staticimageleft=

staticimagetop=

staticimagedocumentwrite(<a +logolink+><img src=+staticlogosrc+ border= alt=+alttext+></a>)

staticimagedocumentclose()

staticimagevisibility=show

regenerate()

staticitns()

}

if (documentlayers)

windowonload=createlogo;

if (documentall){

w=

h=

logostyleleft=w

logostyletop=h

}

function logoit(){

var w=documentbodyscrollLeft+w

var h=documentbodyscrollTop+h

logostyleleft=w

logostyletop=h

}

function logoit(){

staticimageleft=pageXOffset+

staticimagetop=pageYOffset+

}

function insertimage(){

logoinnerHTML=<a +logolink+><img src=+staticlogosrc+ border= alt=+alttext+></a>

if (fadeintoview)

viewit=setInterval(bringintoview())

else{

if (visibleduration!=)

setTimeout(logostylevisibility=hiddenvisibleduration*)

}

}

if (documentall){

windowonscroll=logoit

windowonresize=new Function(windowlocationreload())

windowonload=insertimage

}

function staticitns(){

setInterval(logoit())

if (visibleduration!=)

setTimeout(staticimagevisibility=hidevisibleduration*)

}

//>

</SCRIPT>

上一篇:滚动文字新闻的制作

下一篇:轻松实现删除确认