|
Adding additional HTML to calendar
So far I love the calendar. I'm trying to add my rollover buttons to it. Prior to adding the buttons I had the calendar enclosed in a table and a few other modifications which seemed to have worked. I got the code copied over for my buttons (and the appropriate 's inserted) but now I get the following error when I go to the calendar page: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in D:WebMFCprivateltw_header.php on line 20
Here's line 20:
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
Here's the rest of the code for the page:
php Code:
Original
- php Code |
|
|
|
<?php //////////////////////////////////////////////////////////////////////////// // ltw_header.php // $Id: ltw_header.php,v 1.4 2003/08/16 13:16:02 t51admin Exp $ // // ltwCalendar Sample Header File //////////////////////////////////////////////////////////////////////////// header("Cache-control: no-cache, must-revalidate"); <HTML> <HEAD> <script language="JavaScript"> <!-- function FP_swapImg() {//v1.0 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length; n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm; elm.$src=elm.src; elm.src=args[n+1]; } } } function FP_preloadImgs() {//v1.0 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array(); for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; } } function FP_getObjectByID(id,o) {//v1.0 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id); else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el; if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c) for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; } f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements; for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } } return null; } // --> </script> <TITLE>michiganfieroclub.com :: Events</TITLE> <LINK REL="stylesheet" TYPE="text/css" HREF="ltw_style.css"> <!-- The following functions need to be declared in the page header for the --> <!-- javascript popups to work. --> <SCRIPT LANGUAGE="JavaScript" type="text/javascript"> <!-- function launchcategory(url){ window.name = 'opener'; remote = open(url, "", "resizable,status,scrollbars,width=500,height=400,l eft=300,top=100"); } function launchevent(url){ self.name = "opener"; remote = open(url, "", "resizable,scrollbars,width=400,height=600,left=300 ,top=100"); } function launchlog(url){ window.name = 'opener'; remote = open(url, "", "resizable,status,scrollbars,width=600,height=650,l eft=300,top=100"); } function launchlogin(url){ window.name = 'opener'; remote = open(url, "", "resizable,status,scrollbars,width=400,height=300,l eft=300,top=100"); } function launchuser(url){ window.name = 'opener'; remote = open(url, "", "resizable,status,scrollbars,width=650,height=600,l eft=300,top=100"); } --> </SCRIPT> </HEAD> <BODY background="images/bg.gif" onload="FP_preloadImgs(/*url*/'../images/button16.gif',/*url*/'../images/button17.gif',/*url*/'../images/button6.gif',/*url*/'../images/button5.gif',/*url*/'../images/button9.gif',/*url*/'../images/button8.gif',/*url*/'../images/button12.gif',/*url*/'../images/button11.gif',/*url*/'../images/button15.gif',/*url*/'../images/button14.gif',/*url*/'../images/button1B.gif',/*url*/'../images/button1A.gif',/*url*/'../images/button1E.gif',/*url*/'../images/button1D.gif',/*url*/'../images/button21.gif',/*url*/'../images/button20.gif',/*url*/'../images/button24.gif',/*url*/'../images/button23.gif',/*url*/'../images/button2A.gif',/*url*/'../images/button29.gif',/*url*/'../images/button27.gif',/*url*/'../images/button26.gif')"><table border="1" width="90%" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#808080" id="table1" style="border-collapse: collapse" align="center"> <TABLE align="center" border="1" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#808080" style="border-collapse: collapse"> <tr> <td background="../images/grad1.gif" height="25"> <p align="center"><b><font face="Arial" size="4">Michigan Fiero Club</font></b></td> </tr> <tr> <td> <p align="center" style="margin-top: 0; margin-bottom: 0"> <a href="../index.htm"> <img border="0" id="img11" src="../images/button18.gif" height="20" width="100" alt="HOME" onmouseover="FP_swapImg(1,0,/*id*/'img11',/*url*/'../images/button17.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img11',/*url*/'../images/button18.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img11',/*url*/'../images/button16.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img11',/*url*/'../images/button17.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="HOME"></a> <a href="../calendar.php"> <img border="0" id="img1" src="../images/button4.gif" height="20" width="100" alt="EVENTS" fp-style="fp-btn: Braided Row 4; fp-font: Arial; fp-transparent: 1" fp-title="EVENTS" onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'../images/button5.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'../images/button4.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'../images/button6.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'../images/button5.gif')"></a> <a href="../forum/index.php"> <img border="0" id="img2" src="../images/button7.gif" height="20" width="100" alt="FORUM" onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'../images/button8.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'../images/button7.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'../images/button9.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'../images/button8.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="FORUM"></a> <a href="../catalog/index.php"> <img border="0" id="img3" src="../images/button10.gif" height="20" width="100" alt="STORE" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'../images/button11.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'../images/button10.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img3',/*url*/'../images/button12.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img3',/*url*/'../images/button11.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="STORE"></a> <a href="../regions.htm"> <img border="0" id="img4" src="../images/button13.gif" height="20" width="100" alt="REGIONS" onmouseover="FP_swapImg(1,0,/*id*/'img4',/*url*/'../images/button14.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img4',/*url*/'../images/button13.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img4',/*url*/'../images/button15.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img4',/*url*/'../images/button14.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="REGIONS"></a> <a href="../articles.htm"> <img border="0" id="img5" src="../images/button19.gif" height="20" width="100" alt="ARTICLES" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="ARTICLES" onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'../images/button1A.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'../images/button19.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img5',/*url*/'../images/button1B.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'../images/button1A.gif')"></a> <p align="center" style="margin-top: 0; margin-bottom: 0"> <a href="../gallery.htm"> <img border="0" id="img6" src="../images/button1C.gif" height="20" width="100" alt="GALLERY" onmouseover="FP_swapImg(1,0,/*id*/'img6',/*url*/'../images/button1D.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img6',/*url*/'../images/button1C.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img6',/*url*/'../images/button1E.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img6',/*url*/'../images/button1D.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="GALLERY"></a> <a href="../members.htm"> <img border="0" id="img7" src="../images/button1F.gif" height="20" width="100" alt="MEMBERS" onmouseover="FP_swapImg(1,0,/*id*/'img7',/*url*/'../images/button20.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img7',/*url*/'../images/button1F.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img7',/*url*/'../images/button21.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img7',/*url*/'../images/button20.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="MEMBERS"></a> <a href="../links.htm"> <img border="0" id="img8" src="../images/button22.gif" height="20" width="100" alt="LINKS" onmouseover="FP_swapImg(1,0,/*id*/'img8',/*url*/'../images/button23.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img8',/*url*/'../images/button22.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img8',/*url*/'../images/button24.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img8',/*url*/'../images/button23.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="LINKS"></a> <a href="../meetings.htm"> <img border="0" id="img10" src="../images/button28.gif" height="20" width="100" alt="MEETINGS" onmouseover="FP_swapImg(1,0,/*id*/'img10',/*url*/'../images/button29.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img10',/*url*/'../images/button28.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img10',/*url*/'../images/button2A.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img10',/*url*/'../images/button29.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="MEETINGS"></a> <img border="0" id="img9" src="../images/button25.gif" height="20" width="100" alt="ABOUT MFC" onmouseover="FP_swapImg(1,0,/*id*/'img9',/*url*/'../images/button26.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img9',/*url*/'../images/button25.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img9',/*url*/'../images/button27.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img9',/*url*/'../images/button26.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="ABOUT MFC"></td> </tr> </table> <!-- DON'T EDIT BELOW!!! --> <TABLE align="center" border="1" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#808080" style="border-collapse: collapse"> <tr><td align="center" background="images/grad1.gif" height="25"><b><font face="arial">Events Calendar</b></td></tr> <tr> <!-- ltwCalendar Main window starts here --> <td width="70%"><font face="arial"> "; ?><body onload="FP_preloadImgs(/*url*/'../images/button16.gif',/*url*/'../images/button17.gif',/*url*/'../images/button6.gif',/*url*/'../images/button5.gif',/*url*/'../images/button9.gif',/*url*/'../images/button8.gif',/*url*/'../images/button12.gif',/*url*/'../images/button11.gif',/*url*/'../images/button15.gif',/*url*/'../images/button14.gif',/*url*/'../images/button1B.gif',/*url*/'../images/button1A.gif',/*url*/'../images/button1E.gif',/*url*/'../images/button1D.gif',/*url*/'../images/button21.gif',/*url*/'../images/button20.gif',/*url*/'../images/button24.gif',/*url*/'../images/button23.gif',/*url*/'../images/button2A.gif',/*url*/'../images/button29.gif',/*url*/'../images/button27.gif',/*url*/'../images/button26.gif')"><table border="1" width="90%" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#808080" id="table1" style="border-collapse: collapse" align=center> <tr> <td background="../images/grad1.gif" height=25> <p align="center"><b><font face="Arial" size=4>Michigan Fiero Club</font></b></td> </tr> <tr> <td> <p align="center" style="margin-top: 0; margin-bottom: 0"> <a href="../index.htm"> <img border="0" id="img11" src="../images/button18.gif" height="20" width="100" alt="HOME" onmouseover="FP_swapImg(1,0,/*id*/'img11',/*url*/'../images/button17.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img11',/*url*/'../images/button18.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img11',/*url*/'../images/button16.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img11',/*url*/'../images/button17.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="HOME"></a> <a href="../calendar.php"> <img border="0" id="img1" src="../images/button4.gif" height="20" width="100" alt="EVENTS" fp-style="fp-btn: Braided Row 4; fp-font: Arial; fp-transparent: 1" fp-title="EVENTS" onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'../images/button5.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'../images/button4.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'../images/button6.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'../images/button5.gif')"></a> <a href="../forum/index.php"> <img border="0" id="img2" src="../images/button7.gif" height="20" width="100" alt="FORUM" onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'../images/button8.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'../images/button7.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'../images/button9.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'../images/button8.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="FORUM"></a> <a href="../catalog/index.php"> <img border="0" id="img3" src="../images/button10.gif" height="20" width="100" alt="STORE" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'../images/button11.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'../images/button10.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img3',/*url*/'../images/button12.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img3',/*url*/'../images/button11.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="STORE"></a> <a href="../regions.htm"> <img border="0" id="img4" src="../images/button13.gif" height="20" width="100" alt="REGIONS" onmouseover="FP_swapImg(1,0,/*id*/'img4',/*url*/'../images/button14.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img4',/*url*/'../images/button13.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img4',/*url*/'../images/button15.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img4',/*url*/'../images/button14.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="REGIONS"></a> <a href="../articles.htm"> <img border="0" id="img5" src="../images/button19.gif" height="20" width="100" alt="ARTICLES" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="ARTICLES" onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'../images/button1A.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'../images/button19.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img5',/*url*/'../images/button1B.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'../images/button1A.gif')"></a> <p align="center" style="margin-top: 0; margin-bottom: 0"> <a href="../gallery.htm"> <img border="0" id="img6" src="../images/button1C.gif" height="20" width="100" alt="GALLERY" onmouseover="FP_swapImg(1,0,/*id*/'img6',/*url*/'../images/button1D.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img6',/*url*/'../images/button1C.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img6',/*url*/'../images/button1E.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img6',/*url*/'../images/button1D.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="GALLERY"></a> <a href="../members.htm"> <img border="0" id="img7" src="../images/button1F.gif" height="20" width="100" alt="MEMBERS" onmouseover="FP_swapImg(1,0,/*id*/'img7',/*url*/'../images/button20.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img7',/*url*/'../images/button1F.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img7',/*url*/'../images/button21.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img7',/*url*/'../images/button20.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="MEMBERS"></a> <a href="../links.htm"> <img border="0" id="img8" src="../images/button22.gif" height="20" width="100" alt="LINKS" onmouseover="FP_swapImg(1,0,/*id*/'img8',/*url*/'../images/button23.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img8',/*url*/'../images/button22.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img8',/*url*/'../images/button24.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img8',/*url*/'../images/button23.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="LINKS"></a> <a href="../meetings.htm"> <img border="0" id="img10" src="../images/button28.gif" height="20" width="100" alt="MEETINGS" onmouseover="FP_swapImg(1,0,/*id*/'img10',/*url*/'../images/button29.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img10',/*url*/'../images/button28.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img10',/*url*/'../images/button2A.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img10',/*url*/'../images/button29.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="MEETINGS"></a> <img border="0" id="img9" src="../images/button25.gif" height="20" width="100" alt="ABOUT MFC" onmouseover="FP_swapImg(1,0,/*id*/'img9',/*url*/'../images/button26.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img9',/*url*/'../images/button25.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img9',/*url*/'../images/button27.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img9',/*url*/'../images/button26.gif')" fp-style="fp-btn: Braided Row 4; fp-transparent: 1" fp-title="ABOUT MFC"></td> </tr> </table>
|