Abstand zwischen 2 Bildern entfernen [html]

Dieses Thema im Forum "Webentwicklung" wurde erstellt von Galdeano, 1. Juni 2007 .

Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 1. Juni 2007
    Hallo, habe ein problem, wie bekomme ich den abstand zwischen 2 bildern weg.
    Habe alles versucht, google hat mich auch nicht weitergebracht, evtl habt ihr ne ahnung.
    (ist mit html gemacht, hier der link zu meinem projekt:

    Download offline!/

    evtl könnt ihrs mir verbessern / mir weiterhelfen.

    dankeeeeeeeeeeee
     
  2. 1. Juni 2007
    AW: Abstand zwischen 2 Bildern entfernen
    HTML:
    [/b]
    
    Quellcode posten wäre besser.
    Kein Bock eine RAR-Datei zu entpacken.
    Zuviel Aufwand.
     
  3. 1. Juni 2007
    AW: Abstand zwischen 2 Bildern entfernen
    HTML:
    [/b]
    
    [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Unbenanntes Dokument</title>
    <script type="text/javascript" language="JavaScript">
    <!--
    // erzeugt Zufallszahl kleiner gleich Bilderanzahl
    today=new Date();
    jran=today.getTime();
    var anzahl = 14; // Anzahl der Bilder
    var random_number="";
    var image="";
    var text_color="";
    ia=9301;
    ic=49297;
    im=233280;
    jran = (jran*ia+ic) % im;
    
    random_number = Math.ceil( (jran/(im*1.0)) * anzahl);
    
    // läd ein Image abhängig von der Zufallszahl
    
    if (random_number==1) {
    text_color="000000";
    image="1.bmp";
    text="Bild 01"
    }
    if (random_number==2) {
    text_color="#FF0000";
    image="2.bmp";
    text="Bild 02"
    }
    if (random_number==3) {
    text_color="#00BF00";
    image="3.bmp";
    text="Bild 03"
    }
    if (random_number==4) {
    text_color="#0090E0";
    image="4.bmp";
    text="Bild 04"
    }
    if (random_number==5) {
    text_color="#BF0000";
    image="5.bmp";
    text="Bild 05"
    }
    if (random_number==6) {
    text_color="#AF00FF";
    image="6.bmp";
    text="Bild 06"
    }
    if (random_number==7) {
    text_color="#00AFAF";
    image="7.bmp";
    text="Bild 07"
    }
    if (random_number==8) {
    text_color="#00AFAF";
    image="8.bmp";
    text="Bild 07"
    }
    if (random_number==9) {
    text_color="#00AFAF";
    image="9.bmp";
    text="Bild 07"
    }
    if (random_number==10) {
    text_color="#00AFAF";
    image="10.bmp";
    text="Bild 07"
    }
    if (random_number==11) {
    text_color="#00AFAF";
    image="11.bmp";
    text="Bild 07"
    }
    if (random_number==12) {
    text_color="#00AFAF";
    image="12.bmp";
    text="Bild 07"
    }
    if (random_number==13) {
    text_color="#00AFAF";
    image="13.bmp";
    text="Bild 07"
    }
    if (random_number==14) {
    text_color="#00AFAF";
    image="14.bmp";
    text="Bild 07"
    }
    
    function zufallsbild() {
    document.write("<img src='" + image + "' width='189' height='97' border='0' alt='Text'><br><br>")
    document.write("<font color=#" + text_color +"'>" + "</font><br>")
    return
    }
    
    // -->
    </script>
    <style type="text/css">
    <!--
    body {
     background-color: #FFFFFF;
     background-image: url();
     margin-left: 0px;
     margin-top: 0px;
     margin-right: 0px;
     margin-bottom: 0px;
     background-repeat: no-repeat;
    }
    -->
    </style></head>
    
    <body>
    
     <div align="left"><img src="../page neu/banner-page.bmp" />
     <script language="JavaScript">
    <!--
    zufallsbild();
    //-->
     </script>
     <br>
     <br>
     </div>
    </body>
    </html>
    [/code]
    
    
    
    so siehts ausgegeben aus:
    Bild=down!
     
  4. 1. Juni 2007
    AW: Abstand zwischen 2 Bildern entfernen
    HTML:
    [/b]
    
    0.o Wo sind da 2 Bilder gleichzeitig? Es wird doch nur zufällig ein Bild angezeigt...
    
    Ansonsten würd ichs mal damit versuchen:
    [php]img {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    }[/php]
    
    Gehört natürlich hier dazwischen:
    [php]<style type="text/css">
    <!--
    
    -->
    </style>[/php]
     
  5. 1. Juni 2007
    AW: Abstand zwischen 2 Bildern entfernen
    HTML:
    [/b]
    
    klappt nich wirklich,
    
    es wird ein festes bild dargestellt, an dem eins angereiht ist welches durch zufall bestimmt wird ^^
     
  6. 1. Juni 2007
    AW: Abstand zwischen 2 Bildern entfernen
    HTML:
    [/b]
    
    Jetzt seh ich es auch...du hast das "feste" Bild nicht gezippt, deshalb wird es auch nicht angezeigt.
    
    Weiß zwar nicht, ob das die sauberste Lösung ist, aber sie funktioniert bei mir:
    
    [php]function zufallsbild() {
    document.write("<img src='" + image + "' width='189' height='97' border='0' alt='Text' style='margin-left: -4px'><br><br>")
    document.write("<font color=#" + text_color +"'>" + "</font><br>")
    return
    }[/php]
     
  7. 1. Juni 2007
    AW: Abstand zwischen 2 Bildern entfernen
    HTML:
    [/b]
    
    da sag ich ma schön danke ^^
    bw ist natürlich raus.
    
    obs ne saubere lösung ist, ist egal, es funktioniert das reicht aus xDDD
    
    Mfg
    
    *close*
     
  8. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.