Forum Moderators: open
<script language=javascript>document.write("<a href='http://del.icio.us/post?url="+document.location.href+"&title="+document.title+"' ><img src="/includes/addons/social/images/delicious.png" alt="ADD TO DEL.ICIO.US"></a>")</script> i donot get any display of hyperlinked image. What to do
try it like this,..
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
</style>
<script type="text/javascript">
window.onload=function() {
createLink();
}function createLink() {
anc=document.createElement('a');
anc.setAttribute('href','http://del.icio.us/post?url="+document.location.href+"&title="+document.title+"');pic=document.createElement('img');
pic.setAttribute('src','includes/addons/social/images/delicious.png');
pic.setAttribute('alt','ADD TO DEL.ICIO.US');anc.appendChild(pic);
document.getElementById('mylink').appendChild(anc);
}
</script>
</head>
<body><div id="mylink"></div>
</body>
</html>
birdbrain
<script type=text/javascript>document.write("<a href='http://del.icio.us/post?url="+document.location.href+"&title="+document.title+"' ><img src=\"/includes/addons/social/images/delicious.png\" alt=\"ADD TO DEL.ICIO.US\"></a>")</script>
<script type=text/javascript>document.write("<a href='http://del.icio.us/post?url="+document.location.href+"&title="+document.title+"' ><img src='/includes/addons/social/images/delicious.png' alt='ADD TO DEL.ICIO.US'></a>")</script>
<script type=text/javascript>document.write('<a href="http://del.icio.us/post?url='+document.location.href+'&title='+document.title+'" ><img src="/includes/addons/social/images/delicious.png" alt="ADD TO DEL.ICIO.US"></a>')</script>