The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

hide/show div

2 posters

Go down

hide/show div Empty hide/show div

Post by hicheel 4/3/2010, 09:12

Hi everyone.

You need some effect?
This is module show/hide code.

Code:
<script language="JavaScript">
function toggle(id){
if (document.getElementById){
var el = document.getElementById(id);
el.style.display = (el.style.display == 'none') ? 'block' : 'none';}}
</script><div class="module"><div class="h3">Your title <a href="javascript:toggle('yourDiv')"> more... </a>
</div>
<div id="yourDiv" style="display: none;">
this is hidden text
</div></div>

http://hicheel.forumotion.com/
hicheel
hicheel
Forumember

Male Posts : 118
Reputation : 2
Language : mongolian
Location : Mongolia

http://hicheel.forumotion.com

Back to top Go down

hide/show div Empty Re: hide/show div

Post by Cool-processor 4/3/2010, 16:17

are you having a problem?why have you posted that here?? :/
Cool-processor
Cool-processor
Forumember

Male Posts : 724
Reputation : -55
Language : HTML | CSS/3 | JQuery
Location : To my own coding world

http://www.creative-labz.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum