Results 1 to 13 of 13
Hybrid View
-
12th September 2010 22:27 #1
, , .
, - -. , . , 1920x1200. , . , , :
//
var jswidth = screen.width;
if (jswidth==800) document.write("<div class='main' style='width:63%;'>");
else if (jswidth==1024) document.write("<div class='main' style='width:72%;'>");
else if (jswidth==1152) document.write("<div class='main' style='width:75%;'>");
else if (jswidth==1280) document.write("<div class='main' style='width:77%;'>");
else document.write("<div class='main' style='width:63%;'>");
Name that file homepage.js for your convienience. Link to this file by using
<script type="text/javascript"src="/index/homepage.js"></script>
right before your main content in the homepage. Then make this file:
document.write("</div>");
Name it divclose.js. Place the following code after your content:
<script type="text/javascript"src="/index/divclose.js"></script>
//
, , , . .
))) , ...
Laptop:Asus k50IE |CPU:Intel Core Duo T4400 2.20Ghz 800Mhz|VGA: Nvidia G310M 512MB GDDR3|RAM: 4GB DDR3 1066Mhz|HDD: Hitachi 500GB
-
12th September 2010 22:31 #2''? * *
- !
...
-
12th September 2010 23:33 #3
... . .
Laptop:Asus k50IE |CPU:Intel Core Duo T4400 2.20Ghz 800Mhz|VGA: Nvidia G310M 512MB GDDR3|RAM: 4GB DDR3 1066Mhz|HDD: Hitachi 500GB
-
13th September 2010 15:20 #4Registered User
Join Date: Jul:2005
Location: Sofiq
Posts: 2,798
. background div body. Background-a . . , :
:Code:document.write("<div class='main' style='width:72%;'>");
"",Code:document.body.style.backgroundImage='url( )';
:
Internet ExploderCode:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html style="height:100%;"> <head> </head> <body style="height:100%;padding:0;margin:0;"> <div id="wrap_main" style="height:100%;"> <img src="http://i.kefche.com/p/cq/lwcmq9j4cqfxb5dho.jpg" style="display:block;position:absolute;width:100%;" /> <div id="wrap_site" style="position: absolute;width:100%;background:white;"> <div style="width:800px;margin:0 auto;background:red;"> </div> </div> </div> </body> </html>

: doctype strict
Last edited by _ShadoW_; 13th September 2010 at 15:38.
-
13th September 2010 15:52 #5
.

:
. :
:Code:<script type="text/javascript"src="/homepage.js"></script> <script type="text/javascript"src="/divclose.js"></script>
, ...Code:var jswidth = screen.width; if (jswidth==800) document.body.style.backgroundImage=url(/bgpic.jpg); else if (jswidth==1024) document.body.style.backgroundImage=url(/bgpic.jpg); else if (jswidth==1152) document.body.style.backgroundImage=url(/bgpic.jpg); else if (jswidth==1280) document.body.style.backgroundImage=url(/bgpic.jpg); else if (jswidth==1366) document.body.style.backgroundImage=url(/bgpic.jpg); else document.body.style.backgroundImage=url(/bgpic.jpg);
Last edited by devilguard3; 13th September 2010 at 16:07.
Laptop:Asus k50IE |CPU:Intel Core Duo T4400 2.20Ghz 800Mhz|VGA: Nvidia G310M 512MB GDDR3|RAM: 4GB DDR3 1066Mhz|HDD: Hitachi 500GB
-
13th September 2010 16:37 #6Registered User
Join Date: Jul:2005
Location: Sofiq
Posts: 2,798
:
<script type="text/javascript"src="/divclose.js"></script>
:
Code:document.body.style.backgroundImage='url(/bgpic.jpg)';
-
13th September 2010 20:35 #7
-, - , , , 10 -.
, , , , . " " .
http://www.serialcut.com/''? * *
- !
...
-
13th September 2010 20:56 #8Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19
-
14th September 2010 07:29 #9Registered User
Join Date: Sep:2009
Location: pazardjik
Posts: 29
4eRNoBiL .
, .
-
14th September 2010 10:26 #10Registered User
Join Date: Jul:2005
Location: Sofiq
Posts: 2,798
-
14th September 2010 20:53 #11
_ShadoW_, , . Opera Firefox.
- , . - , . , .
Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19
-
15th September 2010 09:53 #12Registered User
Join Date: Jul:2005
Location: Sofiq
Posts: 2,798
-
14th September 2010 10:15 #13




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in