•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 401,513 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,336 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 3763 | Replies: 1
![]() |
•
•
Join Date: Feb 2007
Location: St. Vincent and the Grenadines, Caribbean
Posts: 961
Reputation:
Rep Power: 3
Solved Threads: 39
•
•
Join Date: Dec 2007
Posts: 75
Reputation:
Rep Power: 1
Solved Threads: 10
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<script type="text/javascript"><!--
function insertAfter(parent, newNode, referenceNode)
{
parent.insertBefore(newNode, referenceNode.nextSibling);
}
window.dynamicNodeCount=0;
function addElement()
{
window.dynamicNodeCount++;
var dad = document.getElementById('container');
var elementAboveNew = document.getElementById('sib1');
var newElement = document.createElement('div');
newElement.innerHTML="Element " +window.dynamicNodeCount;
insertAfter(dad, newElement, elementAboveNew);
}
//--></script>
<div onclick="addElement();">Add Element</div>
<div id="container">
<div id="sib1">a</div>
</div>
</body>
</html>![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax asp collaboration tools cross-browser javascript menu with few lines of code css developer development div emai security firefox home html internet javascript javascript smooth scrolling scroll smoothly window document position javascript tab menu with rounded corners generator mail client malware microsoft msdn office outlook pop prevent javascript menu from getting hidden under flash movies site software sql symantec tables vista web
- how to pass a php array to a sql query (PHP)
- HTML redirect value (HTML and CSS)
- Conflicting javascript slideshows on same page (JavaScript / DHTML / AJAX)
- Conflicts with multiple slideshows (Community Introductions)
- Hover Image Position ??? (HTML and CSS)
- Calendar window is not coming for the Dynamic rows (JavaScript / DHTML / AJAX)
- HELP! With Javascripts Pop-Up Window (JavaScript / DHTML / AJAX)
- Need to Preload many Images (and show a wait screen) (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: disable parent window
- Next Thread: Hyperlink a div


Linear Mode