Jump to content
php.lv forumi

Lielums,Ekrans


sacejs

Recommended Posts

Es labāk izdarīšu tā..

Sataisīšu tos css failus un tur tikai norādīšu header jo man tikai logo slikti izskatās un viss...a ja būs arī slikti tad jau vajadzēs kodēt...

Bet par šo:

<html><head></head><body><script>window.width=1600; window.height=1200;</script></body></html>

ierakstiju bet negāja..iespējams kautko neko daru bet neņemsim šo verā lai nelauzt galvu :)

Link to comment
Share on other sites

Nu tāda problēma:

Es sataisiju variable.js tajā ierakstiju:

// JavaScript Document

if (screen.width < 800) {

document.write('<link rel=stylesheet type="text/css" href="/images/layout800.css">');

}

if (screen.width >= 1024) {

document.write('<link rel=stylesheet type="text/css" href="/images/layout1024.css">');

}

if (screen.width >= 1280) {

document.write('<link rel=stylesheet type="text/css" href="/images/layout1280.css">');

}

if (screen.width >= 1600) {

document.write('<link rel=stylesheet type="text/css" href="/images/layout1600.css">');

}

Nu tad protams izveidoju layout.css failus un tajos ierakstiju:

#header {

width : 1280px;

height : 180px;

color : #eedd99;

background: #005599 url(/images/1280.png) repeat-x;

padding : 5px;

}

Un tad protams rakstiju

<script type="text/javascript" src="/images/variable.js"></script>

Nu tad iegāju saitā un skatos tur...man vsp tur viens tikai liels rāda un viss,,,karoche nekā tāda neiet..ko darīt?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...