Is there a way to display an image to a div without haveing any content? Here is what I am trying to:
I just want to dynamically add a picture.
thanks,
timgerr
-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!
Code:
<html>
<head>
<title>Dynamic Label</title>
<style type="text/css">
.show{font-weight:bold;
background-image: url([URL unfurl="true"]http://127.0.0.1/apache2-default/dev/Testing/icons/icon1/PNG_256x256/Chat_01.png);[/URL]
background-repeat: no-repeat;}
</style>
</head>
<body>
<div id='pHere'></div>
<script type="text/javascript">
lbl = document.createElement('div');
lbl.setAttribute('id','lblOne');
lbl.className = 'show';
document.getElementById('pHere').appendChild(lbl);
document.getElementById('lblOne').innerHTML = ' ';
</script>
</body>
</html>
thanks,
timgerr
-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!