User:Iuliuscurt/vector.js

$(document).ready(function { var divTag = document.createElement("div");  divTag.id = "div1";  divTag.style.background = "#ff0000";  divTag.style.position = "absolute";  divTag.style.top = "100px";  divTag.style.left = "10em";  divTag.style.width = "1px";  divTag.style.height = "100px";  $("#content").append(divTag);  $("#div1").hover(function{ $("#div1").width(6); $("#div1").css("margin-left", "-3px"); }).mouseout(function{ $("#div1").width(1); $("#div1").css("margin-left", "0px"); }); });