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>
1 comment:
This is exactly the feature I want to have on my blog. But I found following Blogger.com's instruction is far much easier to write an expansible article, although it is a bit tricky. You will see several hints around. With the Expand Widget Template ticked, just put expr: before href where it is the begining of if con code right after where you found data:post.body.
Post a Comment