...

View Full Version : In this code



Boxing
01-06-2007, 01:18 AM
In this script after selecting the proper month day and year and then filling in the events on any specific day you can then click the button marked Make Calendar

The script then makes a calendar in a new page and on the top of the new page the month & year you picked will be printed on the top and below the month and year there will be printed (Calendar Of Events) it is in the place (Calendar Of Events) I would like to have a picture printed instead of the words Calendar Of Events.

If you need the complete text I will provide
_________________________________________________________


if(window.document.calendar_form.font2[i].checked == true)

var font2 = window.document.calendar_form.font2[i].value

}



var code = "";



code += "<html><head><title>";



code += "Events in ";



var month = window.document.calendar_form.which_month.options[window.document.calendar_form.which_month.selectedIndex].text;



var year = window.document.calendar_form.year.value;





code += month;



code += " ";



code += year;



code += "</title></head>\n<body bgcolor=\"";



code += window.document.calendar_form.color1.value;



code += "\">\n";



code += "<center>";



code += "<p><font size=\"5\" color=\"#";



code += window.document.calendar_form.color2.value;



code += "\" face=\"" + font1 + "," + font2 + "\">";



code += month;



code += " ";



code += year;



code += "<br>\n";



code += "Calendar Of Events</font></p>\n";

code += "</center>\n";



code += "<table align=\"center\" width=\"600\" cellpadding=\"3\" cellspacing=\"1\" border=\"2\" bgcolor=\"#";



code += window.document.calendar_form.color3.value;



code += "\">\n";



code += "<tr><td colspan=7><font color=\"#";



code += window.document.calendar_form.color4.value;



code += "\"><center><strong>";



code += month;



code += " ";



code += window.document.calendar_form.year.value;



code += "</strong></center></font></td></tr>";



code += "<tr>";



code += "<td width=75 align=center><font size=\"2\" color=\"#";



code += window.document.calendar_form.color4.value;



code += "\"><b>Sunday</b></font></td>";



code += "<td width=75 align=center><font size=\"2\" color=\"#";



code += window.document.calendar_form.color4.value;



code += "\"><b>Monday</b></font></td>";



code += "<td width=75 align=center><font size=\"2\" color=\"#";



code += window.document.calendar_form.color4.value;



code += "\"><b>Tuesday</b></font></td>";



code += "<td width=75 align=center><font size=\"2\" color=\"#";



code += window.document.calendar_form.color4.value;



code += "\"><b>Wednesday</b></font></td>";



code += "<td width=75 align=center><font size=\"2\" color=\"#";



code += window.document.calendar_form.color4.value;



code += "\"><b>Thursday</b></font></td>";



code += "<td width=75 align=center><font size=\"2\" color=\"#";



code += window.document.calendar_form.color4.value;



code += "\"><b>Friday</b></font></td>";



code += "<td width=75 align=center><font size=\"2\" color=\"#";



code += window.document.calendar_form.color4.value;



code += "\"><b>Saturday</b></font></td>";



code += "</tr>";



// for the date cells



code += "<tr>";



while (spaces >7) spaces -=7;



for (i=1; i <=spaces; i++) {



code += "<td align=center> \;</td>";



}

david_kw
01-06-2007, 02:12 AM
Are you just asking what the line would look like with an image instead of text? So

code += "Calendar Of Events</font></p>\n";

would be swapped out for

code += "<img src='calendarofevents.jpg' alt='Calendar of Events' /></font></p>\n";

?

david_kw



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum