Results 1 to 1 of 1

Thread: Problems inserting script into PHP page

  1. #1
    Join Date
    Jan 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problems inserting script into PHP page

    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?

    Code:
    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
    Last edited by trashy; 01-10-2006 at 03:23 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •