كيف أعمل كائن treeview في الصفحة
كيف أعمل كائن Treeview في الصفحة؟؟؟
مغلق
هاذا مثال حول كيفية قيام بذلك
<script type="text/javascript">
function showh(id,img)
{
if(document.getElementById(id).style.display=='block')
{
document.getElementById(id).style.display='none';
document.getElementById(img).src='/style_images/ip.boardpr/exp_plus.gif';
}
else
{
document.getElementById(id).style.display='block';
document.getElementById(img).src='/style_images/ip.boardpr/exp_minus.gif';
}
}
</script>
<img id="i1" src="/style_images/ip.boardpr/exp_minus.gif" style="float:left" onClick="showh('tree1','i1');"/>
<dl><dt >sad</dt>
<div id="tree1">
<dd>sad</dd>
<dd>sad</dd>
<dd>sad</dd>
<dd>sad</dd>
</div>
</dl>
<img id="i2" src="/style_images/ip.boardpr/exp_minus.gif" style="float:left" onClick="showh('tree2','i2');"/> <dl><dt >sad</dt>
<div id="tree2">
<dd>sad</dd>
<dd>sad</dd>
<dd>sad</dd>
<dd>sad</dd>
</div>
</dl>يسلمو يا ابو حميد
كتر خيرك :thumb_up:
Regards
YasseR YassiN
The Black Lily Web Development
+963 933339001
info@theblacklily.com

theblacklily2006 كتب:يسلمو يا ابو حميدكتر خيرك :thumb_up:
اي خدمه :rolleyes:
شكرا لك أخي أحمد على السكريبت.........ومعذرة على التأخير
لو ممكن تعطيني السكريبت بال php بدل Javascript؟؟؟؟
هذا الموضوع مغلق.