@@horstmann
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
Das kann weg. jQuery war mal gut, als es gut war. Das ist vorbei.
<script> $('.searchlight') .on('mousemove', function(event) { $(this).addClass('on').css({'margin-left': event.pageX - 400, 'margin-top': event.pageY - 400}); }) .on('mouseout', function(event) { $(this).removeClass('on'); }) </script>
Das auch.
Mir scheint, du willst Stile für .searchlight:hover
angeben.
😷 LLAP
--
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon