我在2009年第8期的计算机应用文摘杂志上面看见使用JavaScript修改百度首页的文章:
在IE浏览器地址栏输入代码
JavaScript.document.body.contentEditable='true';
document.designMode='on';
void 0
然后修啊该网页,但我没有IE浏览器,我 在搜狗浏览器里面试了,但是不行啊
求高手帮忙,O(∩_∩)O谢谢!!!!
有附件参考效果图

解决方案 »

  1.   


    CONTENTEDITABLE Attribute | contentEditable Property  Internet Development Index --------------------------------------------------------------------------------Sets or retrieves the string that indicates whether the user can edit the content of the object.SyntaxHTML <ELEMENT CONTENTEDITABLE = sCanEdit... >  
    Scripting object.contentEditable(v) [ = sCanEdit ] Possible ValuessCanEdit String that specifies or receives one of the following values.inherit Default. Content's ability to be edited by user is inherited from object's parent. 
    false Content cannot be edited by the user. 
    true Content can be edited by the user. 
     The property is read/write. The property has a default value of inherit.ResChild elements do not inherit this attribute unless they have layout. Use the hasLayout property to determine if an object has layout.If this attribute is applied to a BODY element, it has the same effect as setting the designMode property of the document object. Elements with the disabled attribute set to false do not respond to the contentEditable attribute.If this attribute is applied to the A element, the default functionality of the A element will be lost while sCanEdit is set to the value of true.If this attribute is applied to the MARQUEE element, the default functionality of the MARQUEE element will be lost while sCanEdit is set to the value of true.Though the TABLE, COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, and TR elements cannot be set as content editable directly, a content editable SPAN, or DIV element can be placed inside the individual table cells (TD and TH elements). See the example below. Security Alert  Users can change the contents of a Web page when the contentEditable property is set to TRUE. Using this property incorrectly can compromise the security of your application. Incorrect use of the contentEditable property might include not validating user input. If you do not validate user input, a malicious user can inject control characters or script that can harm your data. You should take routine precautions against displaying unvalidated user input. For more information, see Security Considerations: Dynamic HTML.
    ExamplesIn the following example, setting the DIV elements to have 100%?A HREF="../properties/height_1.html">height and width makes all content within the borders of the cells editable.HideExample<P>Table 1 Editable</P><BR/>
    <TABLE BORDER=1 WIDTH=80%>
    <THEAD>
    <TR>
    <TH><DIV CONTENTEDITABLE STYLE="height: 100%; width: 100%;">Heading 1 <DIV></TH>
    <TH><DIV CONTENTEDITABLE STYLE="height: 100%; width: 100%;">Heading 2 <DIV></TH>
    </TR>
    </THEAD>
    <TBODY>
    <TR>
    <TD><DIV CONTENTEDITABLE STYLE="height: 100%; width: 100%;">Row 1, Column 1 text.<DIV></TD>
    <TD><DIV CONTENTEDITABLE STYLE="height: 100%; width: 100%;">Row 1, Column 2 text.<DIV></TD>
    </TR>
    <TR>
    <TD><DIV CONTENTEDITABLE STYLE="height: 100%; width: 100%;">Row 2, Column 1 text.<DIV></TD>
    <TD><DIV CONTENTEDITABLE STYLE="height: 100%; width: 100%;">Row 2, Column 2 text.<DIV></TD>
    </TR>
    </TBODY>
    </TABLE>The following example shows how to use the contentEditable property to control whether the user can edit the content of the object.
      

  2.   

    一楼的说什么呢?二楼的那什么,一坨的长
    在IE浏览器里面输入
    JavaScript.document.body.contentEditable='true'; 
    document.designMode='on'; 
    void 0 
    就可以了