Results 1 to 13 of 13

Thread:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User devilguard3's Avatar
    Join Date: Apr:2009
    Location:
    Posts: 260

    , , .
    , - -. , . , 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

  2. #2

  3. #3
    Registered User devilguard3's Avatar
    Join Date: Apr:2009
    Location:
    Posts: 260
    ... . .
    Laptop:Asus k50IE |CPU:Intel Core Duo T4400 2.20Ghz 800Mhz|VGA: Nvidia G310M 512MB GDDR3|RAM: 4GB DDR3 1066Mhz|HDD: Hitachi 500GB

  4. #4
    Registered 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(     )';
    "", :

    Code:
    <!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>
    Internet Exploder

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

  5. #5
    Registered User devilguard3's Avatar
    Join Date: Apr:2009
    Location:
    Posts: 260
    Quote Originally Posted by _ShadoW_ View Post
    . background div body. Background-a . . , :

    Code:
    document.write("<div class='main' style='width:72%;'>");
    :

    Code:
    document.body.style.backgroundImage='url(     )';
    "", :

    Code:
    <!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>
    Internet Exploder

    : doctype strict
    .


    :
    . :

    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

  6. #6
    Registered 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)';

  7. #7
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    -, - , , , 10 -.

    , , , , . " " .

    http://www.serialcut.com/
    ''? * *
    - !
    ...

  8. #8
    Deleted User 4eRNoBiL's Avatar
    Join Date: Oct:2005
    Location:
    Posts: 739
    javascript, :
    Code:
    <body style="text-align: left; padding: 0; margin: 0;">
    
    	<div style="position: absolute; left:0; top:0; width:100%; height: 100%; z-index: 0;">
    		<img src="." alt="" style="position: absolute; width:100%; height: 100%;">
    	</div>
    ...
    z-index , <div> . Internet Explorer 6, . , , . .
    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

  9. #9
    Registered User
    Join Date: Sep:2009
    Location: pazardjik
    Posts: 29
    4eRNoBiL .
    , .

  10. #10
    Registered User
    Join Date: Jul:2005
    Location: Sofiq
    Posts: 2,798
    Quote Originally Posted by delux678 View Post
    4eRNoBiL .
    , .
    , IE. ..

  11. #11
    Deleted User 4eRNoBiL's Avatar
    Join Date: Oct:2005
    Location:
    Posts: 739
    _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

  12. #12
    Registered User
    Join Date: Jul:2005
    Location: Sofiq
    Posts: 2,798
    Quote Originally Posted by 4eRNoBiL View Post
    _ShadoW_, , . Opera Firefox.
    - . . CSS3 http://www.w3.org/TR/css3-background...ackground-size.

  13. #13
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    , .
    ''? * *
    - !
    ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |