Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2453 | Replies: 3
![]() |
•
•
Join Date: Jul 2006
Location: Middle America
Posts: 173
Reputation:
Rep Power: 3
Solved Threads: 1
I want to use javascript and php to make black dots appear on the screen. So far, I have the following code, which isn't working. What am I doing wrong?
function dots() {
var dot = document.createElement("div");
dot.style = "position: relative; background-color: #000; height: 10px; width: 10px;";
document.body.appendChild(dot);
}•
•
Join Date: Jul 2006
Location: Middle America
Posts: 173
Reputation:
Rep Power: 3
Solved Threads: 1
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode