אשכול: JS Src
View Single Post
ישן 30-11-08, 12:56   # 1
Labs
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Nov 2007
גיל: 33
הודעות: 1,500
Send a message via Skype™ to Labs

Labs לא מחובר  

JS Src

HTML קוד:
function m_open(aname, bname) {
	var srcs = document.getElementById(aname).src;
	document.getElementById(aname).src = (srcs=="img/plus.png"?"img/minus.png":"img/plus.png");

	var disp = document.getElementById(bname).style.display;
	document.getElementById(bname).style.display=(disp=="block"?"none":"block");
}
החלק השני של הפונ' עובד בסדר הבלוק נפתח ונסגר
אבל יש לי בעיה עם החלק הראשון התמונה לא מתחלפת

תודה לעוזרים =]
  Reply With Quote