diff options
| author | lempamo <[email protected]> | 2017-04-27 21:59:41 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-04-27 21:59:41 -0400 |
| commit | 5cc3fdda9a2e219f21803bf5dedd810ec572fec7 (patch) | |
| tree | a5c4e500b1e4ec4161100bf6b8a6337402bdd82f /TimeHACK.Main/OS | |
| parent | fdc90e45f760876cdc9677ce72389e97d4aa35d9 (diff) | |
| download | histacom2-5cc3fdda9a2e219f21803bf5dedd810ec572fec7.tar.gz histacom2-5cc3fdda9a2e219f21803bf5dedd810ec572fec7.tar.bz2 histacom2-5cc3fdda9a2e219f21803bf5dedd810ec572fec7.zip | |
now with improved 12padams.com!
Diffstat (limited to 'TimeHACK.Main/OS')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs | 2 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs | 26 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx | 114 |
3 files changed, 133 insertions, 9 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs index 84b8661..ce6e648 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs @@ -404,6 +404,7 @@ this.webBrowser1.Name = "webBrowser1"; this.webBrowser1.Size = new System.Drawing.Size(959, 483); this.webBrowser1.TabIndex = 11; + this.webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted); // // padamsmain // @@ -1140,7 +1141,6 @@ this.LinkLabel16.TabStop = true; this.LinkLabel16.Text = "www.12padams.com"; this.LinkLabel16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.LinkLabel16.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel16_LinkClicked); // // LinkLabel15 // diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs index cda8f94..2313ded 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs @@ -26,8 +26,7 @@ namespace TimeHACK.OS.Win95.Win95Apps hidePrograms(); browsinghistory.Add("www.microsoft.com/internetexplorer4/welcome"); for (int i = 0; i < 99; i++) browsinghistory.Add(null); - webBrowser1.DocumentText = ((string)resources.GetObject("ie4start")); - webBrowser1.Document.GetElementById("padams").Click += new HtmlElementEventHandler(LinkLabel16_LinkClicked); + webBrowser1.DocumentText = resources.GetString("ie4start_HTML"); webBrowser1.Show(); foreach (ToolStripMenuItem item in MenuStrip3.Items) item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0))); foreach (Control ctrl in Panel1.Controls) ctrl.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0))); @@ -49,7 +48,6 @@ namespace TimeHACK.OS.Win95.Win95Apps email2.Hide(); email3.Hide(); hotmailpadams.Hide(); - webBrowser1.Hide(); } private void LinkLabel15_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) @@ -57,7 +55,7 @@ namespace TimeHACK.OS.Win95.Win95Apps goToSite("www.google.com", false); } - private void LinkLabel16_LinkClicked(object sender, HtmlElementEventArgs e) + private void padams_LinkClicked(object sender, HtmlElementEventArgs e) { goToSite("www.12padams.com", false); } @@ -115,13 +113,11 @@ namespace TimeHACK.OS.Win95.Win95Apps break; case "www.12padams.com": hidePrograms(); - webBrowser1.Url = new Uri(@"pack://application:,,,/Resources/IE4/padams.html", UriKind.RelativeOrAbsolute); - currentsite = webBrowser1.Document; - currentsite.GetElementById("wc_b").Click += new HtmlElementEventHandler(WCDownloadButton_Click); + webBrowser1.DocumentText = resources.GetString("padams_HTML"); break; case "www.microsoft.com/internetexplorer4/welcome": hidePrograms(); - webBrowser1.Url = new Uri(@"pack://application:,,,/Resources/IE4/ie4start.html", UriKind.RelativeOrAbsolute); + webBrowser1.DocumentText = resources.GetString("ie4start_HTML"); break; case "www.???.com": hidePrograms(); @@ -190,6 +186,20 @@ namespace TimeHACK.OS.Win95.Win95Apps goToSite(addressbar.Text, false); } + private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) + { + switch (addressbar.Text) + { + case "www.microsoft.com/internetexplorer4/welcome": + webBrowser1.Document.GetElementById("padams").Click += new HtmlElementEventHandler(padams_LinkClicked); + break; + case "www.12padams.com": + webBrowser1.Document.GetElementById("wc_b").Click += new HtmlElementEventHandler(WCDownloadButton_Click); + webBrowser1.Document.GetElementById("distort").Style += "visibility:hidden;"; + break; + } + } + //TODO: Add more websites //TODO: Relabel Buttons And Things } diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx index d1ae5fd..6848c3f 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx @@ -199,7 +199,121 @@ So Please enjoy Using this amzing software and show the world what your made of. <data name="ie4start" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\..\..\resources\ie4\ie4start.html;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value> </data> + <data name="ie4start_HTML" xml:space="preserve"> + <value><html> + <head> + <style> + body { + font-family: "Microsoft Sans Serif"; + text-align: center; + } + h1 { + margin-top: 19px; + font-size: 14.25pt; + font-style: bold; + } + p { + font-size: 11.25pt; + } + h2 { + font-size: 12pt; + font-style: bold; + margin-top: 50px; + } + p.end { + font-size: 9.75pt; + } + </style> + </head> + <body> + <h1>Welcome to Internet Explorer 4</h1> + <p>Welcome To Internet Explorer 4.<br> +Internet Explorer 4 makes browsing the web and exploring websites a pleasant experience.<br> +Just type an address in the location bar above and then press go.<br> +Instantly you will be taken to the webpage of your choosing.<br> +Where do you want to go today?</p> + <h2>Here are some sites you may want to visit.</h2> + <a id="google" href="google">www.google.com</a><br> + <a id="padams" href="12padams">www.12padams.com</a> + <p class="end">Where do you want to go today?</p> + </body> +</html></value> + </data> <data name="padams" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\..\..\resources\ie4\padams.html;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value> </data> + <data name="padams_HTML" xml:space="preserve"> + <value><html> + <head> + <style> + body { + font-family: "Microsoft Sans Serif"; + text-align: center; + } + h1 { + font-size: 9.75pt; + margin-top: 20px; + } + p { + font-size: 9.25pt; + margin-top: 0; + margin-bottom: 25px; + } + td div { + display: inline-block; + border: 1px solid black; + width: 215px; + height: 305px; + margin: 0 3px 0 3px; + text-align: center; + } + h1#copyright { + font-size: 9pt; + } + p.app { + margin-top: 30px; + } + p.app button { + float: right; + background-color: silver; + border-color: gray black black gray; + margin-right: 2px; + } + a { + font-size: 9.25pt; + color: blue; + } + </style> + </head> + <body> + <h1>Welcome to the Official 12padams website!!!</h1> + <p>The best customizations for your windows 95 computer</p> + <table align="center"> + <tr> + <td><div class="software"> + <h1>Games/Software</h1> + <p class="app" id="gtn">Guess the Number V1 <button id="gtn_b">Download</button></p> + <p class="app" id="wc">Web Chat 1998 <button id="wc_b">Download</button></p> + <p class="app" id="distort">Time Distorter 0.1 <button id="distort_b">Download</button></p> + </div></td> + <td><div class="customize"> + <h1>Customizations</h1> + <p class="app" id="bg">Backgrounds <button id="bg_b">View Backgrounds</button></p> + <p class="app" id="skn">Skindows 95 <button id="skn_b">Info</button></p> + </div></td> + <td><div class="viruses"> + <h1>Example Viruses</h1> + <p class="app" id="sr">Start Runner 95 <button id="sr_b">Download</button></p> + <p class="app" id="eb">Error Blaster 95 <button id="eb_b">Download</button></p> + </div></td> + <td><div class="sites"> + <h1>WebSites</h1> + <a id="hotmail" href="hotmail">www.hotmail.com</a> + </div></td> + </tr> + </table> + <h1 id="copyright">Copyright 1998 12padams</h1> + </body> +</html></value> + </data> </root>
\ No newline at end of file |
