Hey frnds plz help me.. Plz read the code below..
This is the css code:
This is the javascript code:
This is the HTML code:
[HTML]<body>
<p>Be great in act, as you have been in thought.Be great in act, as you have been in thought.Be great in act, as you have been in thought.Be great in act, as you have been in thought.Be great in act, as you have been in thought.<a href="#" onClick="showdi v('demodiv',1); "> Add a Comment</a>
<div id="demodiv" class="comment" >
<blockquote>B e great in act, as you have been in thought.Be great in act, as you have been in thought.Be great in act, as you have been in thought.Be great in act, as you have been in thought.</blockquote></div>
</p>
</body>[/HTML]
Actually i want to show and hide the div on the click of link .It should show like it is include with the paragraph not a different div..So please Help
This is the css code:
Code:
p { background-color:#FFFFCC; width:700px; color:#000066; } .comment { width:300px; height:200px; border:thin 1px #FF0066; background-color:#FFCCFF; color:#6600CC; visibility:hidden; }
Code:
function showdiv(demodiv,iState) { if(document.getElementbyId) { var obj = document.getElementbyId(comment) obj.style.visibilty = iState ? "show" : "hidden"; } }
[HTML]<body>
<p>Be great in act, as you have been in thought.Be great in act, as you have been in thought.Be great in act, as you have been in thought.Be great in act, as you have been in thought.Be great in act, as you have been in thought.<a href="#" onClick="showdi v('demodiv',1); "> Add a Comment</a>
<div id="demodiv" class="comment" >
<blockquote>B e great in act, as you have been in thought.Be great in act, as you have been in thought.Be great in act, as you have been in thought.Be great in act, as you have been in thought.</blockquote></div>
</p>
</body>[/HTML]
Actually i want to show and hide the div on the click of link .It should show like it is include with the paragraph not a different div..So please Help
Comment