Author Topic: Custom homepage  (Read 5002 times)

0 Members and 24 Guests are viewing this topic.

Offline Uriah

  • Sir
  • ***
  • Posts: 454
  • Cookies: 42
  • άξονας
    • View Profile
Re: Custom homepage
« Reply #30 on: November 18, 2012, 05:49:21 am »
Here's the "Shiny search" program that I wrote with a screen shot. Using your image :D
Code: [Select]

# 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.



Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
Re: Custom homepage
« Reply #31 on: November 18, 2012, 07:31:24 am »
looks good bro, gave you another +1, I'll get to the 5 soon :P
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline Uriah

  • Sir
  • ***
  • Posts: 454
  • Cookies: 42
  • άξονας
    • View Profile
Re: Custom homepage
« Reply #32 on: November 18, 2012, 07:38:27 am »
looks good bro, gave you another +1, I'll get to the 5 soon :P
:D lol thank you very much man.

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Custom homepage
« Reply #33 on: November 18, 2012, 11:50:40 am »
Yeah looks great. I really love that everyone likes that image.  ;D
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline Uriah

  • Sir
  • ***
  • Posts: 454
  • Cookies: 42
  • άξονας
    • View Profile
Re: Custom homepage
« Reply #34 on: November 18, 2012, 11:54:41 am »
Yeah looks great. I really love that everyone likes that image.  ;D
Thanks! Yeah, your picture is awesome...I'm trying to find a better one to be unique, but I'm at a loss to do so lol.

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Custom homepage
« Reply #35 on: November 18, 2012, 11:56:17 am »
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...  :D
« Last Edit: November 18, 2012, 11:56:39 am by lucid »
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline Uriah

  • Sir
  • ***
  • Posts: 454
  • Cookies: 42
  • άξονας
    • View Profile
Re: Custom homepage
« Reply #36 on: November 19, 2012, 01:22:49 am »
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...  :D
Made my own in GIMP, since red is my favorite color :D