0 Members and 26 Guests are viewing this topic.
# File name: Ez.py# Criteria Query:print("Welcome! Please insert the required criteria to create your own, custom homepage!")print("1.Title?")T = raw_input(" ")print("2.Header? ")H = raw_input(" ")print("3.Header Font Style?")HFS = raw_input(" ")print("4.Text Color?")HTC = raw_input(" ")print("3.Search Text? ")ST = raw_input(" ")print("5.Search Button Text?")SBT = raw_input(" ")print("6.Background Image?(Please name a valid PING or JPEG file.)")BI = raw_input(" ")print("7.Background color?(Skip if you have an image.)")BC = raw_input(" ")print("8.Words in page body?")WP = raw_input(" ")print("9.Font Style?")PFS = raw_input(" ")print("10.Text Color?")PTC = raw_input(" ")print("11.Would you like to underline your header? If so, type: u If not, type: n.")U = raw_input(" ")print("12.Would you like to add any foot notes? Type them in.")FN = raw_input(" ")print("13.Footnote color?")FC = raw_input(" ")# Status report to the user:print("Website has been created!")print("Now, just drag the 2 new files on your desktop into a folder that includes your background image!")print("Enjoy!")raw_input("Press ENTER to quit. ")# Creating the hypertext mark up language:X = open("Homepage.html", "wb")X.write( """<!doctype html><html><title>"""+T+"""</title><link rel=\"stylesheet\" type=\"text/css\" href=\"Homepage.css\" /><body><center><h1><"""+U+""">"""+H+"""<"""+U+"""></h1><br /><form method=\"get\" action=\"http://www.google.com/search\"><input onfocus="this.value=\'\'\" type=\"text\" name=\"q\" size=\"45\" maxlength=\"255\" value=\""""+ST+"""\" /><input type=\"submit\" value=\""""+SBT+"""\" /></form><br /><br /><br /><br /><br /><div id=\"Main\"><h3>"""+WP+"""</h3><></center><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><div id="footnote">"""+FN+"""<></body></html>""");X.close()# Creating the cascading style sheet:Y = open("Homepage.css", "wb")Y.write("""h1{ color: """ +HTC+ """; font-family: """ +HFS+ """;}body{ background: url("""+BI+"""); background-attachment: fixed; background-position: 27% 27%; background-color:"""+BC+""";}h3{ color:""" +PTC+"""; font-family:""" +PFS+""";}#footnote{ color:""" +FC+""";}""");Y.close()# End.
looks good bro, gave you another +1, I'll get to the 5 soon
15:04 @Phage : I'm bored of Python
Yeah looks great. I really love that everyone likes that image.
Well, not that this is unique. But if you google 'abstract dark boy' or something alike there is the same image but with the person hilighted in green. If you want...