Replacement example

xiaoxiao2021-03-05  30

Script> // Located to the left menu node var left = document.getlementByid ("LeftMenu"); // Create a new DIV node var menu = Document.createElement ("div"); // Setting the DIV node ID Menu, in order to define its style Menu.settribute ("ID", "Menu") in CSS; // Rewind the content inside the DIV node, I have dropped the XML small icon, add two links menu.innerhtml = '

HOMELEAVE WORD! Admin '; // Key: Left.parentNode is form, using the insertbefore () method to insert a new node left.parentnode.insertbefore (Menu, Left) before the node Left;

转载请注明原文地址:https://www.9cbs.com/read-33328.html

New Post(0)