|
Gil -> RE: Javascript within include page (2/5/2002 20:28:51)
|
Try putting this: <SCRIPT language="JavaScript"> <!-- if (document.images) { image_off=new Image(754,15); image_off.src="img/hdr2/header1_09.gif"; image2=new Image(754,15); image2.src="img/hdr2/09flash.gif"; image3=new Image(754,15); image3.src="img/hdr2/09about.gif"; image4=new Image(754,15); image4.src="img/hdr2/09artists.gif"; image5=new Image(754,15); image5.src="img/hdr2/09orgs.gif"; image6=new Image(754,15); image6.src="img/hdr2/09ed.gif"; image7=new Image(754,15); image7.src="img/hdr2/09advo.gif"; image8=new Image(754,15); image8.src="img/hdr2/09tep.gif"; } function change1(picName,imgName) { if (document.images) { imgOn=eval(imgName + ".src"); document[picName].src= imgOn; } } //--> </SCRIPT> in the body instead of the head. FWIW, I never use an HTML page for an include - use a .txt file... Gil Harvey The Host Factory Resellers are our Specialty Find a Web Professional
|
|
|
|