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 3 of 3
  1. #1
    New Coder
    Join Date
    May 2013
    Posts
    23
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Web Browser Kit (Finished JS Script)

    Web Browser Kit for Electrify Browser

    Hope you enjoy.

    PHP Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <
    HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:
    "urn:schemas-microsoft-com:vml" xmlns:
    "urn:schemas-microsoft-com:office:office" xmlns:
    "urn:schemas-microsoft-com:office:word"><HEAD><TITLE>Electrify Browser</TITLE>
    <
    noscript><center><br>This tool requires javascript active.</center></noscript>

    <
    SCRIPT type=text/javascript>if(navigator.userAgent.indexOf('Gecko')!=-1){window.location="no.htm"}</SCRIPT>
    <SCRIPT type=text/javascript>if(navigator.userAgent.indexOf('Opera')!=-1){window.location="no.htm"}</SCRIPT>

    <SCRIPT type=text/javascript>function click(e){if (document.all) if (event.button == 2) return false;if(document.layers) if (e.which == 3) return false;}function click2(){event.returnValue=false;return false;}if (document.layers)document.captureEvents(Event.MOUSEDOWN);document.onmousedown=click;document.oncontextmenu=click2;</SCRIPT>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
    <META content=Word.Document name=ProgId>
    <META content="MSHTML 6.00.2600.0" name=GENERATOR>
    <META content="Microsoft Word 9" name=Originator>
    <STYLE>@font-face {
        font-family: Verdana;
    }
    @page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 3.0cm 70.85pt 3.0cm; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; mso-paper-source: 0; }
    H1 {
        FONT-SIZE: 12px
    }
    P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
    }
    LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
    }
    DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
    }
    A:link {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
    }
    SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
    }
    A:visited {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
    }
    SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
    }
    P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; COLOR: black; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
    }
    DIV.Section1 {
        page: Section1
    }
    </STYLE>
    </HEAD>
    <BODY lang=PT style="tab-interval: 35.4pt" vLink=blue link=blue bgColor=#5e717f 
    leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
    <DIV class=Section1>
    <DIV align=center><BR>
    <TABLE 
    style="BACKGROUND: #bed5e2; MARGIN-LEFT: 7.5pt; WIDTH: 717.5pt; BORDER-COLLAPSE: collapse; mso-padding-alt: 6.0pt 6.0pt 6.0pt 6.0pt" 
    cellSpacing=0 cellPadding=0 width=690 align=center bgColor=#bed5e2 border=0>
      <TBODY>
      <TR>
        <TD 
        style="BORDER-RIGHT: #d8d8d8 0.75pt solid; PADDING-RIGHT: 6pt; BORDER-TOP: #d8d8d8 0.75pt solid; PADDING-LEFT: 6pt; BACKGROUND: #567280; PADDING-BOTTOM: 6pt; BORDER-LEFT: #d8d8d8 0.75pt solid; WIDTH: 517.5pt; PADDING-TOP: 6pt; BORDER-BOTTOM: medium none" 
        width=690>
          <P class=MsoNormal>
        <B><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: #c2dceb; FONT-FAMILY: Verdana; mso-ansi-language: EN-GB">Elec</SPAN></B>
        <B><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: #ff9900; FONT-FAMILY: Verdana; mso-ansi-language: EN-GB">trify</SPAN></B>
        <B><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: #c2dceb; FONT-FAMILY: Verdana; mso-ansi-language: EN-GB"> - Browser</SPAN></B>
          </P></TD></TR>
      <TR>
        <DIV></DIV></TD></TR>
      <TR>
        <TD 
        style="PADDING-RIGHT: 6pt; PADDING-LEFT: 6pt; PADDING-BOTTOM: 6pt; PADDING-TOP: 6pt">
    <BR>
    <center>
    <table BORDER=0 CELLPADDING=3 CELLSPACING=0>
    <tr><td><font FACE="helvetica,arial,geneva">
        <p style='margin:0cm;margin-bottom:.0001pt;line-height:115%'><span
        lang=EN-GB style='font-size:9.0pt;font-family:Verdana;mso-bidi-font-family:
        Arial;mso-ansi-language:EN-GB'></p>
    </td></tr>
    </table>
    <CENTER>
    <FORM name=addrForm>
    Location: <INPUT  size=35 value="http://www.microsoft.com" name=location>
    <INPUT onclick=setLayer(document.addrForm.location.value) type=button value=Go>
    </FORM></CENTER>

    <SCRIPT language=JavaScript>
    function writeLayer(text) {
    document.frames['myFrame'].location.href = text;
    document.addrForm.location.value = text;
    }
    function setLayer(text) {
    if (text.indexOf("http://",0) <= 0)
    text = "" +text;
    document.frames['myFrame'].location.href = text;
    document.addrForm.location.value = text;
    }
    function onLoad(text) {
    if (text != "Microsoft Internet Explorer") {
    alert("netscape not supported");
    history.back();
    }
    return true;
    }
    //  End -->
    </SCRIPT>
    <IFRAME id=myFrame src="http://www.microsoft.com" width="100%" height="500"></IFRAME>

          <DIV></DIV>
          <DIV></DIV><TABLE 
    style="BACKGROUND: #bed5e2; WIDTH: 717.5pt; BORDER-COLLAPSE: collapse; mso-padding-alt: 6.0pt 6.0pt 6.0pt 6.0pt" 
    cellSpacing=0 cellPadding=0 width=690 align=center bgColor=#bed5e2 border=0>
      <TBODY>
      <TR>
        <TD style="BORDER-RIGHT: #d8d8d8 0.75pt solid; PADDING-RIGHT: 6pt; BORDER-TOP: #d8d8d8 0.75pt solid; PADDING-LEFT: 6pt; BACKGROUND: #567280; PADDING-BOTTOM: 6pt; BORDER-LEFT: #d8d8d8 0.75pt solid; WIDTH: 517.5pt; PADDING-TOP: 6pt; BORDER-BOTTOM: medium none"  width=690>
          <P class=MsoNormal><B><SPAN lang=EN-GB 
          style="FONT-SIZE: 10pt; COLOR: #c2dceb; FONT-FAMILY: Verdana; mso-ansi-language: EN-GB">Copyright © 2013 - Electrify Browser. All Rights Reserved</SPAN></B>
    </TD></TR><br>
    </TR></TBODY></DIV></DIV>
    </table></table></tbody></tbody><br>
    </BODY></HTML> 

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    <center>tags are obsolete, as is document.all.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,296
    Thanks
    10
    Thanked 584 Times in 565 Posts
    this whole thing is a terrible example to show the world of new coders.
    it's a word document saved as html, something no serious or professional web dev would publicly demonstrate.

    i looked through it for good parts, maybe something redeaming, but i could find nothing worthwhile. nothing at all. it's not introduced correctly, the code is unclear, and even now, i have no idea what it's supposed to do.

    i'd throw something else up but i feel like i post too much on this section anyway.
    well, firefox now allows comments in parsed function source, maybe it's time to update my ancient comment transport post...
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%


  •  

    Posting Permissions

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