Archives
All Posts Tagged
Tag: ‘dom’

Why my .style.left doesn”t work with FireFox?

This is a simple & stupid knowledge that I taken about 2 days to solve it. I have a project that have to use this code…. var con = document.getElementById(“menu”); con.style.left = “10″; con.style.top = “20″; When I run this code in Internet Explorer 6, 7. I got it working like I want! But when …

Read More

Use JavaScript to change “float” style

Hey friends, In a few days ago, I’ve just stuck with how to change “float” style in JavaScript and very confuse why it doesn’t work at all! I’m using … var obj = document.getElementById(“some1”); obj.style.float = “left”; No luck at all. I tried both on Internet Explorer and Firefox. Even I use Internet Explorer Toolbar and …

Read More