View Single Post
ישן 16-09-09, 22:54   # 8
shimlash
חבר בקהילה
 
מיני פרופיל
תאריך הצטרפות: Aug 2008
הודעות: 139

shimlash לא מחובר  

אם אתה משתמש בJavaScript תשתמש ב- screen.width

לדוגמא תיצור פונקציה שפועלת עם טעינת הדף שמכילה את הפקודות:

if (screen.width>1000) document.getElementById('div-id').style.left='200px';
else if (screen.width>790) document.getElementById('div-id').style.left='100px';
וכו'

משהו כזה
  Reply With Quote