4
Contributors
8
Replies
37
Views
4 Years
Discussion Span
Last Post by broj1
0

so the idea is to change the value at <link href="value to change depending on user resolution"> so i tought somehow to set the variables of screen resolution in js and get them with php so i can include the php in <link href="php to include">

Edited by andreiviziru

0

so the idea is to change the value at <link href="value to change depending on user resolution"> so i tought somehow to set the variables of screen resolution in js and get them with php so i can include the php in <link href="php to include">

0

Another way of doing it is using Javascript to store the screen resolution to a hidden fields (width and height) in a form that has get as a method. This way the server will get the resolution in a $_GET array. Please note, the form has to be submitted somehow.

Yet another way is using a cookie.

Edited by broj1

2

Why did i got my comment voted down ?

I can't see any downvotes on your comment.

Votes + Comments
it had dissapeared :)
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.