hi everyone
i have two scripts running on the same page below. the first script runs fine and then the second script does’nt run at all. what is going on ca n e 1 help. what i wan to happen is the first script runs and then the second script runs . i don’t know much about javascripts but i really want this effect can n e 1 help?
<QUOTE>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title>Divine Onkar Mission (Duty Of Mankind) – Offical Website</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<body bgcolor=”black”>
<script language=”JavaScript”>
<!– Fade Link script
Location=’mailto:
Img=new Image();
Img.src=”logoHeader.jpg”; //Pre-load your image.
ImageName=”logoHeader.jpg”; //Your image name, same as above.
S=null;
fadeStep = 3;
fade = 70;
currentStep=0;
step = 1;
x=300;
y=300;
function Expand(){
if (document.all){
y=window.document.body.clientHeight-80 +document.body.scrollTop;
x=window.document.body.clientWidth-80;
pic.height=currentStep*3;
pic.width=currentStep
pic.style.top=y+(-currentStep);
pic.style.left=x+(-currentStep);
pic.style.filter=’alpha(opacity=’+fade+’)’;
currentStep+=step;
if (currentStep > 60) fade-=fadeStep;
if (fade < -20) {currentStep=0;fade=0;}
S=setTimeout(‘Expand()’,70);
}
}
if (document.all){
document.write(‘<div style=”position:absolute;top:-400px;left:-750px”>’);
document.write(‘<div style=”position:relative”>’);
document.write(‘<a href=”‘+Location+'”>’
+'<img id=”pic” src=”‘+ImageName+'” border=”0″ style=”position:absolute;top:20000px;left:20000px”></a>’);
document.write(‘</div></div>’);
}
if (document.all)
window.onload=Expand;
//–>
</script>
<script language=”JavaScript”>
<!– picture slide script
a=new Image();a.src=”logoHeader.jpg”;
b=new Image();b.src=”Hut.JPG”;
c=new Image();c.src=”SickMother_bw.jpg”;
d=new Image();d.src=”hospital.jpg”;
function startSlideShow(){setTimeout(“pic1()”,2000);}
function pic1(){document.images.slidepix.src=”logoHeader.jpg”;
setTimeout(“pic2()”,2000);}
function pic2(){document.images.slidepix.src=”Hut.JPG”;
setTimeout(“pic3()”,2000);}
function pic3(){document.images.slidepix.src=”SickMother_bw.jpg”;
setTimeout(“pic4()”,2000);}
function pic4(){document.images.slidepix.src=”hospital.jpg”;
setTimeout(“pic1()”,2000);}
//–>
</script>
</body>
</html>
</QUOTE>