פס אדום זה אומר שלא הכנסת הגדרת צבע- הוא שואב הגדרות ברירת מחדל.פס אדום = אין צבע, אין ערכים בכלל. לא?
הגדרות ברירת מחדל של קופסא מתהפכת זה צבעי הירוק-כחול...
זה סתם לידע, לפעם הבאה כשמאסק עיגול לא יתאים לך...
פס אדום זה אומר שלא הכנסת הגדרת צבע- הוא שואב הגדרות ברירת מחדל.פס אדום = אין צבע, אין ערכים בכלל. לא?
שלוחצים-גוררים עיגול צבעוני, ואז הוא "נוסע" לחור? יש דרך לפתור את זה?
ישלך רעיונות מדהימים!אני צריכה ליצור בסיס כזה,
בו אפשר ל'תפוס' את אחד העיגולים הצבעוניים
ולבעביר אותו דרך, כאילו הוא מתגלגל לאחד השקעים.
תודה תודהישלך רעיונות מדהימים!
אבל גדול עלי למצוא פתרונות כל כך יצירתיים
עוקבת גם. מעניין אותי אם יש לזה פתרון...
ואני גם סקרנית לראות מה את מתכננת שם...
תשתפי...
אם את רוצה שיהיה אפשר לגרור אלמנט צריך טיפה jsשלוחצים-גוררים עיגול צבעוני, ואז הוא "נוסע" לחור? יש דרך לפתור את זה?
<style>
#mydiv {
cursor: move;
}
</style>
<script>
dragElement(document.getElementById("mydiv"));
function dragElement(elmnt) {
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
if (document.getElementById(elmnt.id + "header")) {
// if present, the header is where you move the DIV from:
document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown;
} else {
// otherwise, move the DIV from anywhere inside the DIV:
elmnt.onmousedown = dragMouseDown;
}
function dragMouseDown(e) {
e = e || window.event;
e.preventDefault();
// get the mouse cursor position at startup:
pos3 = e.clientX;
pos4 = e.clientY;
document.onmouseup = closeDragElement;
// call a function whenever the cursor moves:
document.onmousemove = elementDrag;
}
function elementDrag(e) {
e = e || window.event;
e.preventDefault();
// calculate the new cursor position:
pos1 = pos3 - e.clientX;
pos2 = pos4 - e.clientY;
pos3 = e.clientX;
pos4 = e.clientY;
// set the element's new position:
elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
}
function closeDragElement() {
// stop moving when mouse button is released:
document.onmouseup = null;
document.onmousemove = null;
}
}
</script>
ווואו! תודה רבה רבה!אם את רוצה שיהיה אפשר לגרור אלמנט צריך טיפה js
הנה דוגמא לקוד
קוד:<style> #mydiv { cursor: move; } </style> <script> dragElement(document.getElementById("mydiv")); function dragElement(elmnt) { var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; if (document.getElementById(elmnt.id + "header")) { // if present, the header is where you move the DIV from: document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown; } else { // otherwise, move the DIV from anywhere inside the DIV: elmnt.onmousedown = dragMouseDown; } function dragMouseDown(e) { e = e || window.event; e.preventDefault(); // get the mouse cursor position at startup: pos3 = e.clientX; pos4 = e.clientY; document.onmouseup = closeDragElement; // call a function whenever the cursor moves: document.onmousemove = elementDrag; } function elementDrag(e) { e = e || window.event; e.preventDefault(); // calculate the new cursor position: pos1 = pos3 - e.clientX; pos2 = pos4 - e.clientY; pos3 = e.clientX; pos4 = e.clientY; // set the element's new position: elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; } function closeDragElement() { // stop moving when mouse button is released: document.onmouseup = null; document.onmousemove = null; } } </script>
אפי' עשיתי לך דוגמא
אלמנט נגרר - איזיפרס
wpguide.co.il
בוודאי! זה הדבר הכי טוב! אבל את רוצה באלמנטור...אגב, הבנתי מחיים בניסטי שעדיף היה לי לעשות את כל הפופאפים בג'ט, עם פואפא דינאמי.
אם את רוצה שיהיה אפשר לגרור אלמנט צריך טיפה js
הנה דוגמא לקוד
קוד:<style> #mydiv { cursor: move; } </style> <script> dragElement(document.getElementById("mydiv")); function dragElement(elmnt) { var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; if (document.getElementById(elmnt.id + "header")) { // if present, the header is where you move the DIV from: document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown; } else { // otherwise, move the DIV from anywhere inside the DIV: elmnt.onmousedown = dragMouseDown; } function dragMouseDown(e) { e = e || window.event; e.preventDefault(); // get the mouse cursor position at startup: pos3 = e.clientX; pos4 = e.clientY; document.onmouseup = closeDragElement; // call a function whenever the cursor moves: document.onmousemove = elementDrag; } function elementDrag(e) { e = e || window.event; e.preventDefault(); // calculate the new cursor position: pos1 = pos3 - e.clientX; pos2 = pos4 - e.clientY; pos3 = e.clientX; pos4 = e.clientY; // set the element's new position: elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; } function closeDragElement() { // stop moving when mouse button is released: document.onmouseup = null; document.onmousemove = null; } } </script>
אפי' עשיתי לך דוגמא
אלמנט נגרר - איזיפרס
wpguide.co.il
בעיקר js אפשר להכניס בווידג'ט htmlווואו מדהים, איפה בעצם מכניסים את הקוד?
זה לא בcss ..
גם אני הסתבכתי עם זה,ווואו מדהים, איפה בעצם מכניסים את הקוד?
זה לא בcss ..
האתר יצא מהמם.האתר יצא מאוד יפה, לא יודע אם @EPaP רוצה שיראו
לוח לימודים
מסלולי לימוד שאפשר לההצטרף
אליהם ממש עכשיו:
4.06
כ"ז אייר
סילבוס חדש ל-2024!
קורס פיתוח ובניית אתרים
קריירה מתקדמת, ביקוש עצום, וממוצע משכורות גבוה במיוחד!
מלגות גבוהות ומשתלמות!
2.06
כ"ה אייר
פתיחת מסלול
קורס עריכת וידאו
מלגות והנחות משמעותיות!
27.06
כ"א סיוון
פתיחת מסלול
עיצוב ואדריכלות פנים
מלגות גבוהות!
27.06
כ"א סיוון
השקה חגיגית!
עיצוב גרפי ודיגיטל - בסילבוס חדש ומטורף!
מלגות גבוהות!
21.05
י"ג אייר
#רקבפרוג
הרצאה מרתקת:
דיגיטל בגובה העיניים
עם מנדי נאבול
כל האפשרויות הטמונות בעולם הדיגיטל שיגרמו לך להרוויח יותר!
לתלמידים ובוגרים בלבד!
תהילים פרק קמג
א מִזְמוֹר לְדָוִד יְהוָה שְׁמַע תְּפִלָּתִי הַאֲזִינָה אֶל תַּחֲנוּנַי בֶּאֱמֻנָתְךָ עֲנֵנִי בְּצִדְקָתֶךָ:ב וְאַל תָּבוֹא בְמִשְׁפָּט אֶת עַבְדֶּךָ כִּי לֹא יִצְדַּק לְפָנֶיךָ כָל חָי:ג כִּי רָדַף אוֹיֵב נַפְשִׁי דִּכָּא לָאָרֶץ חַיָּתִי הוֹשִׁיבַנִי בְמַחֲשַׁכִּים כְּמֵתֵי עוֹלָם:ד וַתִּתְעַטֵּף עָלַי רוּחִי בְּתוֹכִי יִשְׁתּוֹמֵם לִבִּי:ה זָכַרְתִּי יָמִים מִקֶּדֶם הָגִיתִי בְכָל פָּעֳלֶךָ בְּמַעֲשֵׂה יָדֶיךָ אֲשׂוֹחֵחַ:ו פֵּרַשְׂתִּי יָדַי אֵלֶיךָ נַפְשִׁי כְּאֶרֶץ עֲיֵפָה לְךָ סֶלָה:ז מַהֵר עֲנֵנִי יְהוָה כָּלְתָה רוּחִי אַל תַּסְתֵּר פָּנֶיךָ מִמֶּנִּי וְנִמְשַׁלְתִּי עִם יֹרְדֵי בוֹר:ח הַשְׁמִיעֵנִי בַבֹּקֶר חַסְדֶּךָ כִּי בְךָ בָטָחְתִּי הוֹדִיעֵנִי דֶּרֶךְ זוּ אֵלֵךְ כִּי אֵלֶיךָ נָשָׂאתִי נַפְשִׁי:ט הַצִּילֵנִי מֵאֹיְבַי יְהוָה אֵלֶיךָ כִסִּתִי:י לַמְּדֵנִי לַעֲשׂוֹת רְצוֹנֶךָ כִּי אַתָּה אֱלוֹהָי רוּחֲךָ טוֹבָה תַּנְחֵנִי בְּאֶרֶץ מִישׁוֹר:יא לְמַעַן שִׁמְךָ יְהוָה תְּחַיֵּנִי בְּצִדְקָתְךָ תוֹצִיא מִצָּרָה נַפְשִׁי:יב וּבְחַסְדְּךָ תַּצְמִית אֹיְבָי וְהַאֲבַדְתָּ כָּל צֹרֲרֵי נַפְשִׁי כִּי אֲנִי עַבְדֶּךָ: