script membuat spoiler ..

<html>
<head>
<script type=”text/javascript”>
function showhide(toggle) {
//change target element mode
var elementmode = document.getElementById(toggle).style;
elementmode.display = (!elementmode.display) ? ‘none’ : ”;
}
function openclose(toggle) {
showhide(toggle);
}
</script>
</head>
<a href=”javascript:openclose(‘toggle’);” style=”text-decoration: none; padding: 3px 7px 3px 7px; border: 1px solid #ccc;”>+ show / hide</a>
<div id=’toggle’ style=’display: none; padding: 10px; background: #F4FDA6;’>
<em>”Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.”</em>
</div>
</html>

Pos ini dipublikasikan di Website. Tandai permalink.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s