Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript how can i access these classes Reply To: how can i access these classes

#249019
gearheartstudio
Participant

ok so I changed the

<script>
$(this).attr(‘data-src’,’contents/……’);
</script>

to

<script>
$(‘#wide4’).attr(‘data-src’,’contents/……’);
</script>

at the start where it sets to logolink.png src, I lso set id’s for each for classes. This allowed me to get only 1 image to load, yet it’s within the each which fires multiple times…am I getting closer? I also updated the links just for codepen so that it loads the images and logolink so you can actually see whats going on

http://codepen.io/gearheartstudio/pen/ZBMKLZ