LIGHTTY
01-31-2011, 07:33 PM
I use IE-6 and can't get this script to work on my Website ?/
http://thelightofdayradioshow.com/
You see the Cosmic-looking image on top ?? I can't get the script to make it happen ?? I only understand LIMITED html coding...
Here's all the coding I used-<style>
<!--
#Inbound Red Comet of Doom{
filter:light
}
-->
</style>
<CENTER>
<IMG id="Inbound Red Comet of Doom" speed="30"
style="WIDTH: 855px; HEIGHT: 125px; BORDER=1"
src="http://thelightofdayradioshow.com/PlanetX_Files/4819308-abstraction-spacy-background-for-design-universe.jpg"></CENTER>
<script language="JavaScript1.2">
/*
Moving light on image script
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
if (document.all&&window.Inbound Red Comet of Doom){
var x=new Array()
var direction=new Array()
var y=new Array()
if (Inbound Red Comet of Doom.length==null){
Inbound Red Comet of Doom[0]=document.all.Inbound Red Comet of Doom
x[0]=0
direction[0]="right"
y[0]=Inbound Red Comet of Doom[0].height
Inbound Red Comet of Doom[0].filters.light.addPoint(100,50,100,255,255,255,90)
}
else
for (i=0;i<Inbound Red Comet of Doom.length;i++){
x[i]=0
direction[i]="right"
y[i]=Inbound Red Comet of Doom[i].height
Inbound Red Comet of Doom[i].filters.light.addPoint(100,50,100,255,255,255,90)
}
}
function slidelight(cur){
Inbound Red Comet of Doom[cur].filters.light.MoveLight(0,x[cur],y[cur],200,-1)
if (x[cur]<Inbound Red Comet of Doom[cur].width+200&&direction[cur]=="right")
x[cur]+=10
else if (x[cur]>Inbound Red Comet of Doom[cur].width+200){
direction[cur]="left"
x[cur]-=10
}
else if (x[cur]>-200&&x[cur]<-185){
direction[cur]="right"
x[cur]+=10
}
else{
x[cur]-=10
direction[cur]="left"
}
}
if (document.all&&window.Inbound Red Comet of Doom){
if (Inbound Red Comet of Doom.length==null)
setInterval("slidelight(0)",Inbound Red Comet of Doom[40].speed)
else
for (t=0;t<Inbound Red Comet of Doom.length;t++){
var temp='setInterval("slidelight('+t+')",'+Inbound Red Comet of Doom[t].speed+')'
eval(temp)
}
}
</script>
http://thelightofdayradioshow.com/
You see the Cosmic-looking image on top ?? I can't get the script to make it happen ?? I only understand LIMITED html coding...
Here's all the coding I used-<style>
<!--
#Inbound Red Comet of Doom{
filter:light
}
-->
</style>
<CENTER>
<IMG id="Inbound Red Comet of Doom" speed="30"
style="WIDTH: 855px; HEIGHT: 125px; BORDER=1"
src="http://thelightofdayradioshow.com/PlanetX_Files/4819308-abstraction-spacy-background-for-design-universe.jpg"></CENTER>
<script language="JavaScript1.2">
/*
Moving light on image script
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
if (document.all&&window.Inbound Red Comet of Doom){
var x=new Array()
var direction=new Array()
var y=new Array()
if (Inbound Red Comet of Doom.length==null){
Inbound Red Comet of Doom[0]=document.all.Inbound Red Comet of Doom
x[0]=0
direction[0]="right"
y[0]=Inbound Red Comet of Doom[0].height
Inbound Red Comet of Doom[0].filters.light.addPoint(100,50,100,255,255,255,90)
}
else
for (i=0;i<Inbound Red Comet of Doom.length;i++){
x[i]=0
direction[i]="right"
y[i]=Inbound Red Comet of Doom[i].height
Inbound Red Comet of Doom[i].filters.light.addPoint(100,50,100,255,255,255,90)
}
}
function slidelight(cur){
Inbound Red Comet of Doom[cur].filters.light.MoveLight(0,x[cur],y[cur],200,-1)
if (x[cur]<Inbound Red Comet of Doom[cur].width+200&&direction[cur]=="right")
x[cur]+=10
else if (x[cur]>Inbound Red Comet of Doom[cur].width+200){
direction[cur]="left"
x[cur]-=10
}
else if (x[cur]>-200&&x[cur]<-185){
direction[cur]="right"
x[cur]+=10
}
else{
x[cur]-=10
direction[cur]="left"
}
}
if (document.all&&window.Inbound Red Comet of Doom){
if (Inbound Red Comet of Doom.length==null)
setInterval("slidelight(0)",Inbound Red Comet of Doom[40].speed)
else
for (t=0;t<Inbound Red Comet of Doom.length;t++){
var temp='setInterval("slidelight('+t+')",'+Inbound Red Comet of Doom[t].speed+')'
eval(temp)
}
}
</script>