This is an experiment of code written by Harry Maugans which by using CSS and Javascript you can easily create a expandable portion of your post.
Click Here to Read More.
Technorati Tags: blogatech, expandable posts, collapsible divisions
This is an experiment of code written by Harry Maugans which by using CSS and Javascript you can easily create a expandable portion of your post.
Click Here to Read More.
<script language="javascript">
function toggleDiv(divid){
if(document.getElementById(divid).style.display == 'none')
document.getElementById(divid).style.display = 'block';
}else{
document.getElementById(divid).style.display = 'none';
}
}
</script>
<a href="javascript:;" onmousedown="toggleDiv('mydiv');">Click Here to Read More.</a>
<div id="mydiv" style="display:none">
Whatever content you want
</div>