找回密码
 欢迎注册中国音画网

QQ登录

只需一步,快速开始

中国音画网
标识下载

在线书法生成器
(全矢量图)

中国音画网
网页加密器

中国音画网
全屏帖代码

独立上传
空间申请

FTP软件
下载

查看: 1149|回复: 8

紧急求助

[复制链接]
发表于 2008-12-29 18:00 | 显示全部楼层 |阅读模式













我发的这个特效在发到别的论坛的时候背景颜色有块白色的背景,请问如何祛除呢?这个论坛是看不出的哦 你看在这个论坛就有这样的情况 http://www.pt80.com/thread-91740-1-1.html
发表于 2008-12-29 19:08 | 显示全部楼层
不要求助,因为你是没有背景得
回复 支持 反对

使用道具 举报

发表于 2008-12-29 19:58 | 显示全部楼层
此特效不错的呵~~~~~~~~~~~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-29 20:42 | 显示全部楼层
问题是放到有背景的框里有块白色的背景啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-29 20:44 | 显示全部楼层
高手们看看,放到背景框里能取消这个白色背景吗
回复 支持 反对

使用道具 举报

发表于 2008-12-29 23:36 | 显示全部楼层
这个特效不错呀,没发现有什么白色背景呀?不知楼主所指是什么了 [s:461]
回复 支持 反对

使用道具 举报

发表于 2008-12-30 08:38 | 显示全部楼层
如下,不明白再问
<IFRAME style="FILTER: chroma(color=white); LEFT: 20px; POSITION: relative; TOP: 150px" marginWidth=0 marginHeight=0 src="文本地址" frameBorder=0 width=515 scrolling=no height=560 borderColor="#cccccc" cellPadding="0" cellspacing="0"></IFRAME>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-30 14:08 | 显示全部楼层
非常感谢simon888,真是高手,代码看多了,反而在最小的地方犯困,一语点醒了我~!~!~!~~!!~[s:456]

原来我少了最关键的去白代码chroma(color=white);

[ 本帖最后由 yichang147 于 2008-12-30 14:10 编辑 ]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-30 14:09 | 显示全部楼层
分享下这个代码吧
把如下代码复制到<head>与</head>之间
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/>
<style>
v\:* { behavior: url(#default#VML); }
</style>


2、把如下代码复制到<body>与</body>之间


<SCRIPT>
// 3D-Slideshow
var slideurl=new Array()
slideurl[0]="图片1地址"
slideurl[1]="图片2地址"
....
slideurl[n]="图片n地址"

// add a corresponding link for each image为每张图片加链接
// if you don't wont to link an image, enter "#" 如果不要链接,写#号
var slidelink=new Array()
slidelink[0]="http://www.oolove.net"
slidelink[1]="#"
slidelink[2]="#"

// add a corresponding target for each link
// acceptable values "_blank" or "_top" or "_parent" or "_self"
var slidetarget=new Array()
slidetarget[0]="_blank"
slidetarget[1]="_self"
slidetarget[2]="_top"

// set the width of the 3D-border (pixels)3D边界宽度
var backdepth=6

// set the colorof the 3D-border (HTML-values required)边界颜色
var fillcolor="#666666"

// set the standstill (seconds) for the images (required for Netscape Navigator)
var standstill=3

// set the form of the imageframe 设置图片形状
// acceptable values are "oval" or "rect"
var imageform="oval" //oval 椭圆形; rect 长方形

// do not edit below this line 以下不要改变
var slidewidth=1
var slideheight=1

var ns6=document.getElementById&&!document.all?1:0
var opera=navigator.userAgent.match(/Opera/)
var ie5=document.getElementById&&document.all&&!opera?1:0

standstill*=1000
var floatingspeed=1
var tempo=20
var numberofimages=slideurl.length-1
var stepx=new Array()
var stepy=new Array()
for (i=0;i<=numberofimages;i++) {
stepx=randommakerNS(floatingspeed)
stepy=randommakerNS(floatingspeed)
}
var imgwidth=new Array()
var imgheight=new Array()
for (i=0;i<=numberofimages;i++) {
imgwidth=10
imgheight=10
}
var x,y
var marginbottom
var marginleft=0
var margintop=0
var marginright
var timer
var i_fadestrength=new Array()
var i_fadestep=new Array()
var i_fadenow=new Array()
var i_fadenowmax=new Array()
for (i=0;i<=slideurl.length;i++) {
i_fadenowmax=2
i_fadestrength=randommakerNS(99)
i_fadestep=1
i_fadenow=0
}

var spancontent=new Array()
var i_spancontent=0
var imgpreload=new Array()
for (i=0;i<=slideurl.length;i++) {
imgpreload=new Image()
imgpreload.src=slideurl
}
for (i=0;i<=numberofimages;i++) {
spancontent="<a href='"+slidelink+"' target='"+slidetarget+"'><img src='"+slideurl+"' border='0'></a>"
}

var i_angle1=0
var i_size=1
var i_pic=0
var posleft=0
var postop=0
var x_extrusionangle=0
var y_extrusionangle=0
var x_rotationcenter=0
var y_rotationcenter=0
var pagewidth
var pageheight

function initNS() {
marginbottom=window.innerHeight-11
marginright=window.innerWidth-11
var thisspan=document.getElementById('span0')
thisspan.innerHTML=spancontent[0]
var thisspan=document.getElementById('span0')
imgwidth[0]=parseInt(thisspan.offsetWidth)
imgheight[0]=parseInt(thisspan.offsetHeight)
var maxleftstart=marginright-imgwidth[0]
var maxtopstart=marginbottom-imgheight[0]
var thisspan=document.getElementById('span0').style
thisspan.left=parseInt(thisspan.left)+randommakerNS(maxleftstart)
thisspan.top=parseInt(thisspan.top)+randommakerNS(maxtopstart)
thisspan.visibility="visible"
checkmovementNS()
}

function randommakerNS(range) {
rand=Math.floor(range*Math.random())
if (rand==0) {rand=Math.ceil(range/2)}
return rand
}

function checkmovementNS() {
checkpositionNS()
movepicturesNS()
timer=setTimeout("checkmovementNS()",tempo)
}

function movepicturesNS() {
var thisspan=document.getElementById('span0').style
thisspan.left=parseInt(thisspan.left)+stepx[0]
thisspan.top=parseInt(thisspan.top)+stepy[0]
i_fadenow[0]++
if (i_fadenow[0]>=i_fadenowmax[0]) {
i_fadenow[0]=0
if (i_fadestrength[0]>=100) {i_fadestep[0]=i_fadestep[0]*-1}
else if (i_fadestrength[0]<=0) {
i_fadestep[0]=i_fadestep[0]*-1
i_spancontent++
if (i_spancontent>=spancontent.length) {i_spancontent=0}
document.getElementById('span0').innerHTML=spancontent[i_spancontent]
}
}
i_fadestrength[0]+=i_fadestep[0]
document.getElementById('span0').style.MozOpacity=Math.round(i_fadestrength[0])/100
}

function checkpositionNS() {
imgwidth[0]=parseInt(document.getElementById('span0').offsetWidth)
imgheight[0]=parseInt(document.getElementById('span0').offsetHeight)
var thisspan=document.getElementById('span0').style
var leftx=parseInt(thisspan.left)
var topy=parseInt(thisspan.top)
if (leftx>marginright-imgwidth[0]-floatingspeed) {
thisspan.left=leftx-Math.abs(stepx[0]+1)
stepx[0]=randommakerNS(floatingspeed)*-1
}
if (leftx<marginleft) {
thisspan.left=leftx+Math.abs(stepx[0])
stepx[0]=randommakerNS(floatingspeed)
}
if (topy>marginbottom-imgheight[0]-floatingspeed) {
thisspan.top=topy-Math.abs(stepy[0])
stepy[0]=randommakerNS(floatingspeed)*-1
}
if (topy<margintop) {
thisspan.top=topy+Math.abs(stepy[0])
stepy[0]=randommakerNS(floatingspeed)
}
}

function initIE() {
var i_preload=0
for (i=0;i<=slideurl.length-1;i++) {
var imgref=eval("document.n"+i)
if (imgref.complete) {i_preload++}
}
if (i_preload>=slideurl.length-1) {
slidewidth=document.getElementById('spn1').offsetWidth
slideheight=document.getElementById('spn1').offsetHeight
pagewidth=document.body.clientWidth
pageheight=document.body.clientHeight
document.getElementById('rectid').style.width=slidewidth
document.getElementById('rectid').style.height=slideheight
posleft=(pagewidth-slidewidth)/2
postop=(pageheight-slideheight)/2
x_rotationcenter=(posleft/slidewidth)/2
y_rotationcenter=(postop/slideheight)/2
var rotationcenter=0+","+y_rotationcenter+","+x_rotationcenter
document.getElementById('rectid').style.left=posleft
document.getElementById('rectid').style.top=postop
document.getElementById('extrusionid').rotationcenter=rotationcenter
rotateIE()
}
else {
var timer=setTimeout("initIE()",200)
}
}

function rotateIE() {
i_angle1+=1
if (i_angle1>=360) {
i_angle1=0
}
if (i_angle1==127) {
i_pic++
if (i_pic>=slideurl.length) {i_pic=0}
document.getElementById('fillid').src=slideurl[i_pic]
}
document.getElementById('rectid').style.rotation=i_angle1
document.getElementById('extrusionid').rotationangle=i_angle1+","+i_angle1
var timer=setTimeout("rotateIE()",30)
}

function openpageIE() {
if (slidetarget[i_pic]=="_blank") {
window.open(slidelink[i_pic])
}
else if (slidetarget[i_pic]=="_self") {
document.location.href(slidelink[i_pic])
}
else if (slidetarget[i_pic]=="_top" || slidetarget[i_pic]=="_parent") {
top.location.href(slidelink[i_pic])
}
}

if (ns6) {
document.write("<span id='span0' style='position:absolute;top:0px;left:0px;filter:alpha(opacity=0);-moz-opacity:0'></span>")
document.close()
window.onload=initNS
}
if (ie5) {
document.write('<div id="preloadimages" style="position:absolute;left:0px;top:-5px;visibility:hidden">')
for (i=0;i<=slideurl.length-1;i++) {
document.write('<span id="spn'+i+'" style="position:absolute;width:2px;left:0px;top:0px;">')
document.write('<img src="'+slideurl+'" name="n'+i+'">')
document.write('</span>')
}
document.write('</div>')
document.write('<v:'+imageform+' id="rectid" style="position:absolute;top:0;left:0;width:'+slidewidth+';height:'+slideheight+'" onClick="openpageIE()">')
document.write('<v:extrusion id="extrusionid" on="true" type="perspective" color="'+fillcolor+'" rotationcenter="0,0,0" backdepth="'+backdepth+'" diffusity="2.5" metal="true">')
document.write('</v:extrusion>')
document.write('<v:fill id="fillid" opacity="100%" color="'+fillcolor+'" type="frame" src="'+slideurl[0]+'"/>')
document.write('</v:'+imageform+'>')
window.onload=initIE
}
</script>
回复 支持 反对

使用道具 举报

本版积分规则

Archiver|手机版|小黑屋|中国音画网

GMT+8, 2025-7-4 23:04 , Processed in 0.036699 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表