sacejs Posted April 22, 2009 Author Report Share Posted April 22, 2009 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 :) Quote Link to comment Share on other sites More sharing options...
sacejs Posted April 22, 2009 Author Report Share Posted April 22, 2009 Nu tāda problēma: Es sataisiju variable.js tajā ierakstiju: // JavaScript Documentif (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? Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted April 22, 2009 Report Share Posted April 22, 2009 Paeksperimentē! Ļauj savai programmētāja fantāzijai lidot! (~; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.