Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    Problema nell'inserimento del calendario blog

    Ciao a tutti, sono nuovo del forum.

    Vi scrivo perchè ho un problema con l'inserimento di un calendario (fatto da me) all'interno di un blog che ho appena creato.
    Premetto che io di html ne so poco e niente e quel poco che sono fin'ora riuscito a fare è stato solo frutto dell'aver consultato alcuni tutorial online e della vecchia legge "sbagliando si impara"...

    Dunque... ho creato un calendario seguendo il tutorial preso da qui:

    http://giulyalbascura.altervista.org...rial_html.html

    da inserire in un blog creato su splinder.com. Il codice html del calendario è questo:

    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Nuova pagina 1</title>
    </head>

    <body>

    <div style="position: absolute; width: 107px; height: 110px; z-index: 1; left: 44px; top: -7px" id="livello2">

    <script language=javascript>


    <!--//Begin
    monthnames = new Array(
    "Gennaio",
    "Febbraio",
    "Marzo",
    "Aprile",
    "Maggio",
    "Giugno",
    "Luglio",
    "Agosto",
    "Settembre",
    "Ottobre",
    "Novembre",
    "Dicembre");
    var linkcount=0;
    function addlink(month, day, href) {
    var entry = new Array(3);
    entry[0] = month;
    entry[1] = day;
    entry[2] = href;
    this[linkcount++] = entry;
    }
    Array.prototype.addlink = addlink;
    linkdays = new Array();
    monthdays = new Array(12);
    monthdays[0]=31;
    monthdays[1]=28;
    monthdays[2]=31;
    monthdays[3]=30;
    monthdays[4]=31;
    monthdays[5]=30;
    monthdays[6]=31;
    monthdays[7]=31;
    monthdays[8]=30;
    monthdays[9]=31;
    monthdays[10]=30;
    monthdays[11]=31;
    todayDate=new Date();
    thisday=todayDate.getDay();
    thismonth=todayDate.getMonth();
    thisdate=todayDate.getDate();
    thisyear=todayDate.getYear();
    thisyear = thisyear % 100;
    thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));
    if (((thisyear % 4 == 0)
    && !(thisyear % 100 == 0))
    ||(thisyear % 400 == 0)) monthdays[1]++;
    startspaces=thisdate;
    while (startspaces > 7) startspaces-=7;
    startspaces = thisday - startspaces + 1;
    if (startspaces < 0) startspaces+=7;
    document.write("<FONT face='Verdana'>");
    document.write("<table border=0 " );
    document.write("bordercolor=#ffffff style='font-size : 12px; color : #F1B96F;' cellpadding=0 cellspacing=1>");

    document.write("<tr><td colspan=7><center>"
    + monthnames[thismonth] + " " + thisyear
    + "
    </center></td></tr>");
    document.write("<tr>");
    document.write("<td align=center><font color=#ffffff>D</td>");
    document.write("<td align=center><font color=#ffffff>L</td>");
    document.write("<td align=center><font color=#ffffff>M</td>");
    document.write("<td align=center><font color=#ffffff>M</td>");
    document.write("<td align=center><font color=#ffffff>G</td>");
    document.write("<td align=center><font color=#ffffff>V</td>");
    document.write("<td align=center><font color=#ffffff>S</font></td>");
    document.write("</tr>");
    document.write("<tr>");
    for (s=0;s<startspaces;s++) {
    document.write("<td>-</td>");
    }
    count=1;
    while (count <= monthdays[thismonth]) {
    for (b = startspaces;b<7;b++) {
    linktrue=false;
    document.write("<td>");
    for (c=0;c<linkdays.length;c++) {
    if (linkdays[c] != null) {
    if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) {
    document.write("<a href=\"" + linkdays[c][2] + "\">");
    linktrue=true;
    }
    }
    }
    if (count==thisdate) {
    document.write("<font color='#00CCB8'>");
    }
    if (count <= monthdays[thismonth]) {
    document.write(count);
    }
    else {
    document.write(" ");
    }
    if (count==thisdate) {
    document.write("</font>");
    }
    if (linktrue)
    document.write("</a>");
    document.write("</td>");
    count++;
    }
    document.write("</tr>");
    document.write("<tr>");
    startspaces=0;
    }
    document.write("</table>");
    document.write("</FONT>");
    </script>

    </div>




    </div>

    </body>

    </html>



    mentre l'iframe inserito nel blog è il seguente:


    <iframe name="l1" src=url del file.html frameborder="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" width="195" height="130"></iframe>


    il problema è che con Firefox si vede tutto ok, mentre con IE compare uno sfondo bianco tra il calendario e il background del template che non riesco a togliere... per capirci potete vedere direttamente il blog da: http://waterflame.splinder.com

    Come posso fare? è un problema di trasparenze? non so proprio da che parte cominciare..

    Grazie a chi volesse aiutarmi!!!!

  2. #2
    Ho trovato da solo cercando un po' su internet...

    In pratica nella pagina che deve essere caricata nell'iframe bisogna inserire il seguente comando:
    <BODY STYLE="background-color:transparent">

    Nella pag. in cui si dichiara l'iframe poi si scrive il codice:
    <iframe src="contenuto.html" ALLOWTRANSPARENCY="true"></iframe>

    Grazie lo stesso

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.