sport1.de

German supplemental subscription

Moderator: EasyList Authors

Post Reply
cursorads1
New Member
New Member
Posts: 1
Joined: Tue May 15, 2018 5:37 pm
Reputation: 0

sport1.de

Post by cursorads1 » Tue May 15, 2018 5:41 pm

Coole neue Art von Werbung: Ein Auto das dem Mauszeiger folgt :banana:

https://www.sport1.de/fussball/dfb-pokal/2018/04/dfb-pokal-finale-mit-fc-bayern-in-berlin-live-im-tv-stream-ticker

Code: Select all

<span class="s1-cursor-ad" style="top: 287px; left: 715px;">
    <img alt="" src="https://assets.sport1.de/bundles/sport1portal/images/sport-1-vw-cursor.png">
</span>
Inline JS:

Code: Select all

<script>
    var cursorAd = $('.s1-cursor-ad').first();

    window.onmousemove = function (e) {
        var x = (e.clientX + 50) + 'px',
            y = (e.clientY + 50) + 'px';

        cursorAd.css('top', y);
        cursorAd.css('left', x);
    };
</script>

intense
Contributor
Contributor
Posts: 8350
Joined: Wed Mar 27, 2013 9:56 am
Reputation: 133

Post by intense » Tue May 15, 2018 6:49 pm

add

Code: Select all

sport1.de##.s1-cursor-ad

Post Reply