
26-09-2007, 16:17
|
|
|
|
חבר מתאריך: 30.07.05
הודעות: 949
|
|
טוב, הנה לך הדוגמא הכי בסיסית ופשוטה שיש:
קוד PHP:
<script> function chg(id, file) { document.getElementById(id).src=file; } </script>
<table> <tr><td><img src="1.gif" width=200 height=400 id="big"></td> <td valign=top><table> <td><img src="1.gif" height=30 width=30 onClick="return chg('big', this.src);"></td> <td><img src="2.gif" height=30 width=30 onClick="return chg('big', this.src);"></td> <td><img src="3.gif" height=30 width=30 onClick="return chg('big', this.src);"></td> <td><img src="4.gif" height=30 width=30 onClick="return chg('big', this.src);"></td> <td><img src="5.gif" height=30 width=30 onClick="return chg('big', this.src);"></td> <td><img src="6.gif" height=30 width=30 onClick="return chg('big', this.src);"></td> </td></table></tr> </table>
זה יעשה את העבודה - לחיצה על תמונה קטנה תשנה את התמונה ה"גדולה"
בהצלחה
_____________________________________
חתימתכם הוסרה כיוון שלא עמדה בחוקי האתר. לפרטים נוספים לחצו כאן. תוכלו לקבל עזרה להתאמת החתימה לחוקים בפורום חתימות וצלמיות.
נערך לאחרונה ע"י Dark Knight בתאריך 26-09-2007 בשעה 16:20.
|