Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 07:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



HTML/CSS Background

Discussion on HTML/CSS Background within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
KentuckyFC's Avatar
 
elite*gold: 5
Join Date: Oct 2008
Posts: 1,363
Received Thanks: 236
HTML/CSS Background

Hi,

Ich möchte meinen HTML/CSS hintergrund auf einer Website Gestreckt haben das er egal bei welcher auflösung immer die seite ausfüllt ohne dabei die seite in die länge zu ziehen. Ich muss noch Font und Font Color bearbeiten aber Momentan sieht es so aus:



und der code dazu so:
Wisst ihr ne lösung?
----------------
Listening to:
KentuckyFC is offline  
Old 07/26/2010, 00:50   #2
 
Alisami's Avatar
 
elite*gold: 19
Join Date: Sep 2007
Posts: 1,525
Received Thanks: 1,058
Könnte wie folgt aussehen:

<head>
<title>Dein Titel</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<SCRIPT LANGUAGE="JavaScript1.2" src="aufloesung.js">
</script>

</head>
<body>
</body>
</html>

Dies wäre dann der Inhalt deiner Datei, die vor der Seite mit der Grafik geladen wird. Die "aufloesung.js" könnte dann so aussehen:

if (window.screen)
{
if (screen.width<1024) self.location.href="1024.htm";
else if (screen.width>1024) self.location.href="1280.htm";
else self.location.href="1024.htm";
}

Bei einer Aflösung bis 1024x768 wird also die "1024.htm" aufgerufen und alles was darüber ist bekommt die "1280.htm".

Dann erstellst du einfach die unterschiedlichen Versionen mit den unterschiedlichen Grafikgrössen und fertig.
Alisami is offline  
Thanks
1 User
Old 07/26/2010, 01:18   #3
 
KentuckyFC's Avatar
 
elite*gold: 5
Join Date: Oct 2008
Posts: 1,363
Received Thanks: 236
Okay komplizierter als gedacht^^ ich probiers mal
KentuckyFC is offline  
Old 07/26/2010, 01:48   #4
 
rhodi's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 66
Received Thanks: 88
Als erstes nimmst du das BG Bild aus dem <body> Tag und löscht aus dem CSS body{} Tag background-image, background-repeat, height, width und position raus.

Dann fügst du nachdem <body> Tag folgendes ein:
<img style="top: 0pt; left: 0pt; position: absolute; z-index: -1; width: 100%; height: 100%;" alt="" src="bilder/rappelzw44ikLL6f6qx0.jpg">

Dann brauchst du auch kein JavaScript und mehrere HTML Dateien.
rhodi is offline  
Thanks
1 User
Old 07/26/2010, 02:13   #5
 
KentuckyFC's Avatar
 
elite*gold: 5
Join Date: Oct 2008
Posts: 1,363
Received Thanks: 236
Jaa genau so wollt ich das danke

Rhodi^^

aber auch danke Alisami
KentuckyFC is offline  
Reply


Similar Threads Similar Threads
LC Background
04/20/2010 - Last Chaos - 6 Replies
Hi zusammen, hab mal so beim groben durchstöbern im Forum entdeckt das man LC mit Bots wohl auch im Background steuern kann... Kann mir das vllt jemand genauer erklären wie das funzt? Benutze AI. Konnte da noch nicht allzuviel rausfinden. Auch PN ist gern gesehen. THX
Background
12/27/2009 - AutoIt - 8 Replies
Yo, Im using Autoit to make a fog lvler but i want to know how to make it background,if any1 can help me ill be really happy, Sammy
[HTML]HELP[/HTML]range hack and skill speed in extreme
08/21/2009 - Dekaron Private Server - 5 Replies
hey guys i need a little help about range hack and skill speed in extreme i already unpack the Data its all done..1! my problem is wer i can edit the range ang skill speed in extreme..! pls :):):):):)
Background
07/16/2008 - WoW Bots - 6 Replies
jaaaa, ich hab jetz seit n paar tagen elite und will den nu ma richtig testen.. nuuuur, ichwill background enable machen aber is nich anklickbar plz help



All times are GMT +2. The time now is 07:39.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.