|
|
|
| Есть задача, нет решения!
Использую файл config.js в котором один из параметров, определение стиля
function Style()
{
i1="<link rel='stylesheet' type='text/css' href='http://www.macroservice.net/css/801x600.css'>";
i2="<link rel='stylesheet' type='text/css' href='http://www.macroservice.net/css/1024x768.css'>";
i3="<link rel='stylesheet' type='text/css' href='http://www.macroservice.net/css/1152x864.css'>";
i4="<link rel='stylesheet' type='text/css' href='http://www.macroservice.net/css/1279x768.css'>";
i5="<link rel='stylesheet' type='text/css' href='http://www.macroservice.net/css/1279x961.css'>";
i6="<link rel='stylesheet' type='text/css' href='http://www.macroservice.net/css/1279x1025.css'>";
}
|
При определении разрешении монитора, загружается соответствующий файл
Так вот, подскажите как одну из переменных i1, i2, i3, i4, i5, i6 применить в файле index.php? | |
|
|
|
|
|
|
|
для: Fox
(11.02.2007 в 22:42)
| | НУ НУ! | |
|
|
|
|
|
|
|
для: Fox
(12.02.2007 в 01:05)
| | ты про это? http://www.alistapart.com/d/switchymclayout/transition_layout_news.html
в смысле применить? | |
|
|
|
|
|
|
|
для: Fox
(11.02.2007 в 22:42)
| | Пробуйте так:
<html>
<head>
<script>
document.write('<link rel="stylesheet" type="text/css" href="http://www.macroservice.net/css/'+screen.width+'x'+screen.height+'.css">');
document.close();
</script>
</head>
<body>
</body>
</html>
|
| |
|
|
|