PDA

View Full Version : Problems inserting script into PHP page



trashy
01-09-2006, 10:47 PM
When I attempt to insert this script into my forum index template I get an error and I can't figure out where the problem is.

It is supposedly on line 196. I can't find anything wrong there. Any ideas?


Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in .../Themes/babylon/index.template.php on line 196

187: for (p=0;p<theimages.length;p++){
188: this.postimages[p]=new Image()
189: this.postimages[p].src=theimages[p][0]
190: }
191:
192: var fadewidth=fadewidth+this.imageborder*2
193: var fadeheight=fadeheight+this.imageborder*2
194:
195: if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)

196: document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;-khtml-opacity:10;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;background-color:'+fadebgcolor+'"></div></div>')

197: else
198: document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
199:
200: if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox