Тёмный

Event Listeners - Javascript - Tutorial 14 

Giraffe Academy
Подписаться 308 тыс.
Просмотров 65 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 66   
@MrDarkogaucho
@MrDarkogaucho 3 года назад
You're the best programming teacher on youtube in these beginner tutorials
@vadrif-draco
@vadrif-draco 5 лет назад
Most important video in this playlist so far, thank you for this great tutorial.
@joshuajoshua334
@joshuajoshua334 2 года назад
I learnt html, css and javascript watching u...u are a guru
@elizabeth00653
@elizabeth00653 3 месяца назад
Love the font style and size too, super easy to read
@snackmami8371
@snackmami8371 3 года назад
you explain things so good !! Big compliment from Austria
@RobertGuilman
@RobertGuilman 3 года назад
The cornerstone of front end, thanks for the explanation, you're a good teacher
@MrStephen9876
@MrStephen9876 5 лет назад
This was just what I had been trying to find a video. I love your videos!
@simbaevans.3301
@simbaevans.3301 4 месяца назад
just finished learning Tutorial 14.Thanks to Mike
@jmarq1965
@jmarq1965 3 года назад
I'm new to JS, and this video was exactly what I was looking for, in terms of teaching me how to use the listeners on a JS file linked to my HTML file. Thank you for this, definitely subbing!
@pasej5
@pasej5 Год назад
The best explanatory video on the web.. thank u
@amandavanderheyden4938
@amandavanderheyden4938 5 лет назад
This was soooo helpful, thank you so much! You explained it very well!
@marksiely4747
@marksiely4747 2 года назад
This is simply the best explination I have seen for this part of javascript, one quesion: why do you use var image and not let image in index.html ? Thank you very much!
@entity5678
@entity5678 Год назад
very easy to understand when mike dane teaches
@kartikkrishnan1753
@kartikkrishnan1753 4 года назад
I have got a question... could someone please tell me what 'this' means inboth cases it is used. example.: this.width example.: onclick = "handleClick(this)"
@scottisitt
@scottisitt 4 года назад
8:17
@HalValla01
@HalValla01 4 года назад
For anyone watching using classes in stead of ID in your html, this is what you have to do for event listeners: var something = document.getElemtsByClassName("class-name"); for (var temp = 0; temp < something.length; temp++){ let someVar = something[temp]; someVar.addEventListener(THIS WILL WORK) }
4 года назад
fuck off nigga, why you need a 'for loop' over here
@HalValla01
@HalValla01 4 года назад
@ Little harsh, don't you think?
@prod.kashkari3075
@prod.kashkari3075 4 года назад
From an organization perspective , what do you recommend, to add all event listeners in your html page inline, or have your html and styling seperate, and then have your JavaScript file specifically for adding event listeners and handle user interaction
@hsmith5723
@hsmith5723 3 года назад
Can I "call" an audio link inside that onclick function so when the button is clicked it makes a sound? Trying to add audio to a counter button.
@japanwithkids
@japanwithkids 2 года назад
I'm having some trouble with the addEventListener section (around 7 to 9 minutes in). Here's my code, which I've copied from the video several times and tried in both Safari and Chrome, but the image doesn't pop out at all: function handleClick(element){ element.style = "background-color:blue;" } var image = document.getElementById("image"); image.addEventListener("mouseover", function(){ this.style ="box-shadow: 2px 2px 2px grey"; this.width ="110" }); The "image." and "this." both appear white in my .js document, not red as in Mike's. Any advice on how I can make this work?
@qliu9173
@qliu9173 2 года назад
check if you remove the "onclick="handleclick(this) " on your image at your HTML page.
@ohad7
@ohad7 3 года назад
Thank you for sharing. That was really clear and helpful .
@driverguy5864
@driverguy5864 6 лет назад
very clear. very concise. thanks
@ryanmattmcdonald
@ryanmattmcdonald 5 лет назад
Your stuff is great! Thank you!
@oswhytecodes1
@oswhytecodes1 2 года назад
So with the image, you do mouse out to set the image back…. But for the button, what event listener would I use to set the button back to its original state 😞 help someone please
@SeyfadinAbdela
@SeyfadinAbdela 2 месяца назад
wow great explanation
@cristinaberceanu
@cristinaberceanu 4 года назад
Man you saved my life.. thx so much
@theasychair148
@theasychair148 2 года назад
Was super helpful information, alough the :hover in css would have worked fine too.
@aquagrenh
@aquagrenh 4 года назад
i enjoyed your tuts. How would you add event listeners to make a box grow, resize turn blue and fade out using 4 diff buttons.I am new to java script
@freddy7304
@freddy7304 4 года назад
you can do that with css animations
@freddy7304
@freddy7304 4 года назад
my function isnt quite working this smoothly. I can only change the box-shadow, not the height.
@hamzaansari7715
@hamzaansari7715 5 лет назад
good stuff dude. helped me alot!
@color.8467
@color.8467 4 года назад
Why we events are usee with function to be executed?
@desmondfoo5050
@desmondfoo5050 3 года назад
is it not working on visual studio code?
@burhanali9117
@burhanali9117 4 года назад
good video just 1 suggestion keep your code zoom out because when you zoom in and start coding half of the code gets cut
@anilui8434
@anilui8434 5 лет назад
Clear voice and Zoom most plus points ..
@00el04
@00el04 5 лет назад
@stillFLiP ahhahahahah
@JavaScriptJolt
@JavaScriptJolt 4 года назад
stillFLiP Zoom is really helpful if you’re somewhere waiting, or at work, and you only have your phone.
4 года назад
@stillFLiP nigga , listen. you follow along, then you don't need whole code.
@229axb7
@229axb7 4 года назад
my image just disappears? I followed along exactly so im not sure what went wrong
@gery_3585
@gery_3585 8 месяцев назад
incorrect file path but the image in the folder
@rajromil5
@rajromil5 4 года назад
for those who are having trouble with the code in the video for mouseover and out effect can try the code below, its much more simple in my opinion . function bigImg(x){ x.style.height="150px"; x.style.width="150px"; } function nrmlImg(x){ x.style.height="100px"; x.style.width="100px"; }
@Asuuri
@Asuuri 3 года назад
omggg thank you so much!! God bless! Stay safe and healthy!!
@BG-fo4si
@BG-fo4si Год назад
1:34, "onclick" is not javascript event. A "click" is. "onclick" is event handler.
@EtoBARAKUDAvasa
@EtoBARAKUDAvasa 6 лет назад
ty man.very nice instruction
@zoku5896
@zoku5896 7 месяцев назад
Thanks!
@bettyrizzo6167
@bettyrizzo6167 2 года назад
I love you sensei
@sheezazainab1903
@sheezazainab1903 4 года назад
Please make a video in React
@kom219
@kom219 9 месяцев назад
Nice
@raveson1990
@raveson1990 Год назад
Beat Man thx
@dawooddalvi7704
@dawooddalvi7704 2 года назад
best!!!
@CoconutwCoco
@CoconutwCoco 2 года назад
This usage of “this ” is just out of nowhere… it is so strange n feels so fluky…
@doodlefootball1571
@doodlefootball1571 3 года назад
W3 school is very usefull
@jayanthvenavenka7668
@jayanthvenavenka7668 4 года назад
This would be a lot easier using CSS
@davidallsopp4030
@davidallsopp4030 4 года назад
who hurt the person who disliked this video
@freddy7304
@freddy7304 4 года назад
probably someone that tried to follow along with the video without learning html first.........." He didn't show us how to make the button"...
@__Peter
@__Peter 4 года назад
Alert("your the fucking man;")
@faiaz.18
@faiaz.18 Год назад
5:30
@truthmatters758
@truthmatters758 3 года назад
man you gotta stop zooming in all the time it gets me confused
@kom219
@kom219 9 месяцев назад
Nice
Далее
Building a Messaging App | Javascript | Tutorial 15
9:05
The Rust Survival Guide
12:34
Просмотров 155 тыс.
Coding SUCKS for Beginners | Let's Rant!
17:40
Просмотров 161 тыс.
Is JavaScript BAD for Beginners? | Let's Rant
14:53
Просмотров 41 тыс.
Programming Languages DON'T MATTER | Let's Rant!
10:05
Learn JavaScript Event Listeners In 18 Minutes
18:03
Просмотров 592 тыс.
Introduction to JavaScript Event Listeners
22:07
Просмотров 71 тыс.
For Loops | Javascript | Tutorial 23
9:04
Просмотров 16 тыс.
Objects | JavaScript | Tutorial 19
9:25
Просмотров 21 тыс.
WHY IS THE HEAP SO SLOW?
17:53
Просмотров 251 тыс.