prototype javascript library Insertion example
<div id="d1">
<div id="dd1">1</div>
</div>
<div id="d2">2</div>
<div id="d3">3</div>
<script type="text/javascript" charset="utf-8">
function doc(argument) {
document.write("<p>\n");
document.write(argument);
document.write("</p>\n");
}
new Insertion.Before('d2', '<div id="d2before">Insertion Before d2</div>');
new Insertion.After('d2', '<div id="d2after">Insertion After d2</div>');
new Insertion.Top('d1', '<div id="d1top">Insertion Top d1</div>');
new Insertion.Bottom('d1', '<div id="d1bottom">Insertion Bottom d1</div>');
</script>
No comments :
Post a Comment