Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: In this code

  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    In this code

    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>";



    }

  • #2
    Senior Coder
    Join Date
    Nov 2006
    Posts
    1,000
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

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