Load another banner for different screen size (1 post)

  1. imjscn
    Posted 4 years ago #

    Not really screen size, but viewport.
    php can't detect viewport, so I use javascript to get the viewport width.

    Now I need to pass the width to php so that php can decide to load a big banner or a small banner. Something like this:

    If viewport width > 1024, load big banner;
    if Viewport width <=104, load small banner.

    I heard that $_GET['...'] can get javascript variable into php, but I didn't get it.

    Please help!

Topic Closed

This topic has been closed to new replies.

About this Topic