Arsen that line can't be entered into the original DD-script just like that. What you want would require a whole lot of changes in the script.
What you could do is use the code below, which is an exact emulation of the DD-script:
Code:
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>No title</title>
<style>
/* Not required */
body {font-family: arial; font-size: 20px; padding: 10%; padding-top: 15px; padding-bottom: 15px; line-height: 30px}
</style>
<script>
function open_element(which, pos, anchor)
{
var d = document.getElementById(which);
if(d.style.display!='block')
{
d.style.display='block';
if (pos == 'bottom_right')
{
d.style.left=document.getElementById(anchor).offsetLeft +'px';
d.style.top=document.getElementById(anchor).offsetTop + document.body.lineHeight + 5 + 'px';
}
if (pos == 'bottom_left')
{
d.style.left=document.getElementById(anchor).offsetLeft - d.offsetWidth + document.getElementById(anchor).offsetWidth + 'px';
d.style.top=document.getElementById(anchor).offsetTop + document.body.lineHeight + 5 + 'px';
}
if (pos == 'top_right')
{
d.style.left=document.getElementById(anchor).offsetLeft +'px';
d.style.top=document.getElementById(anchor).offsetTop + document.body.lineHeight + 5 + 'px';
d.style.marginTop= -(d.offsetHeight + document.getElementById(anchor).offsetHeight ) - 5 + 'px';
}
if (pos == 'top_left')
{
d.style.left=document.getElementById(anchor).offsetLeft - d.offsetWidth + document.getElementById(anchor).offsetWidth + 'px';
d.style.top=document.getElementById(anchor).offsetTop + document.body.lineHeight + 5 + 'px';
d.style.marginTop= -(d.offsetHeight + document.getElementById(anchor).offsetHeight ) - 5 + 'px';
}
}
else d.style.display='none'
}
function close_element(which_element)
{
document.getElementById(which_element).style.display='none';
}
</script>
</head>
<body >
<h3 style="text-align: center; margin-bottom: 40px">Tweakig the original DD-script</h3>
Lorem Ipsum is simply dummy text
<b><a class="the_anchor" id="subcontent_anchor" href="javascript: void(0)" onclick="open_element('subcontent', 'bottom_right', this.id); return false">Link 1</a></b>
<div id="subcontent" style="position:absolute; border: 9px solid orange; background-color: white; width: 300px; padding: 8px; display:none" >
<b>bottom right</b><hr>
<p><b>Search Dynamic Drive:</b></p>
<form method="get" action="https://web.archive.org/web/20061008122920/http://search.freefind.com/find.html" id="topform">
<input type="HIDDEN" name="id" size="-1" value="6299074"/>
<input type="HIDDEN" name="pageid" size="-1" value="r"/>
<input type="HIDDEN" name="mode" size="-1" value="ALL"/>
<input type="HIDDEN" name="n" value="0">
<input name="query" maxlength="255" style="width: 150px" id="topsearchbox" alt="Search"/>
<input value="Search" class="topformbutton" type="submit"/>
</form>
<div style="font-size: 16px; font-weight: bold; float: right"><a href="javascript: void(0)" onclick="close_element('subcontent'); return false">Close</a></div>
</div>
of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker
<b><a class="the_anchor" id="subcontent_anchor2" href="javascript: void(0)" onclick="open_element('subcontent2', 'bottom_left', this.id); return false" >Link 2</a></b>
<div id="subcontent2" style="position:absolute; display:none; border: 9px solid black; background-color: lightyellow; width: 400px; height: 400px; padding: 8px; font-size: 18px">
<b>bottom left</b>.<hr>
Some content. Some content.<br>
<div style="font-size: 16px; font-weight: bold; float: right"><a href="javascript: void(0)" onclick="close_element('subcontent2'); return false">Close</a></div>
</div>
including versions of Lorem Ipsum.
<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries,
<b><a class="the_anchor" id="subcontent_anchor3" href="javascript: void(0)" onclick="open_element('subcontent3', 'top_right', this.id); return false" >Link 3</a></b>
<div id="subcontent3" style="position:absolute; display:none; border: 1px solid black; background-color: white; width: 400px; height: auto; padding: 8px; font-size: 18px" >
<b>top right</b>.<hr>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries.<br>
<div style="font-size: 16px; font-weight: bold; float: right"><a href="javascript: void(0)" onclick="close_element('subcontent3'); return false">Close</a></div>
</div>
but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including
<b><a id="subcontent_anchor4" href="javascript: void(0)" onclick="open_element('subcontent4', 'top_left', this.id); return false" class="the_anchor" >Link 4</a></b>
<div id="subcontent4" style="position:absolute; display:none; border: 1px solid black; background-color: white; width: 400px; height: auto; padding: 8px; font-size: 18px" >
<b>top left</b>.<hr>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.<br>
<div style="font-size: 16px; font-weight: bold; float: right"><a href="javascript: void(0)" onclick="close_element('subcontent4'); return false">Close</a></div>
</div>
Ipsum.
</body>
</html>
But remember, this emulation (and the original DD-script for that matter) cannot be used on modern mobile devices. The user would be forced to constantly swipe from left to right and from right to left to see on the screen what he / she wants to see.
Bookmarks