Closed ghost closed 9 years ago
I don't understand how to put a different picture into a website.. helpful tips?
@capre733 so first you need to find an image on the page, then a way to select it.
if the image has a class attribute, for example one called 'slide-1', you can select it with
$('.slide-1')
then you can change the src
attribute of that element like so:
$('.slide-1').attr('src','http://link.to/new/image.jpg')
I can show this in more detail in class tomorrow
:+1: full credit for this assignment
So I don't really have an issue with the class, so far so good. With regards the reading, it was actually interesting to begin to learn Ruby like that. Although I did find myself forgetting what some of the terms were (but somehow still remembering what they do, ex. knowing that .each was a method but not remembering the fact that it's called a method). I'll get the hang of it...
In other news I defaced zara.com, which is now KateMara.com....except it has a huge Miley pic just because: