Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it L'avatar di mexican
    Registrato dal
    Oct 2001
    residenza
    cava de tirreni
    Messaggi
    3,541

    menu che non funziona perchè?

    Eccovi il codice della pagina, perchè il menu non si vede???

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

    <style type="text/css">
    A:link, A:visited { text-decoration: none }
    A:hover { text-decoration: underline }
    .tabella{
    font-family: Verdana, Tahoma, Geneva, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-style: normal;
    padding:3px;
    color:#FFFFFF;
    }
    </style>
    </head>

    <body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" bgcolor="#000066">
    <table width="100%" height="100%" border="1" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td height="100" align="left" valign="top" colspan="3">
    <table width="100%" he height="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="30%" align="left" valign="top">[img]immagini/webmaster.png[/img]</td>
    <td width="40%" align="center" valign="middle">[img]immagini/ugobasile.png[/img]</td>
    <td width="30%"><div align="right"> </div></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td width="15%" height="429" align="left" valign="top">
    <script language="JavaScript">
    document.write('<STYLE TYPE=text/css>');
    document.write('.ejs_mv3_styl_scroll {font-weight: bold;font-size:12px;font-family:Verdana;color:#3a799a;text-decoration:none}');
    document.write('</STYLE>');

    ejs_mv3_largeur = 100;
    ejs_mv3_hauteur = 360;
    ejs_mv3_bgcolor = '#000066';


    ejs_mv3_menu = new Array;
    ejs_mv3_menu[0] = '[img]immagini/imm_menu/homepage.png[/img]';
    ejs_mv3_menu[1] = '[img]immagini/imm_menu/chisono.png[/img]';
    ejs_mv3_menu[2] = '[img]immagini/imm_menu/curriculum.png[/img]';
    ejs_mv3_menu[3] = '[img]immagini/imm_menu/portafolio.png[/img]';
    ejs_mv3_menu[4] = '[img]immagini/imm_menu/javascript.png[/img]';
    ejs_mv3_menu[5] = '[img]immagini/imm_menu/flash.png[/img]';
    ejs_mv3_menu[6] = '[img]immagini/imm_menu/tutorial.png[/img]';
    ejs_mv3_menu[7] = '[img]immagini/imm_menu/giochi.png[/img]';
    ejs_mv3_menu[8] = '[img]immagini/imm_menu/forum.png[/img]';
    ejs_mv3_menu[9] = '[img]immagini/imm_menu/chat.png[/img]';
    ejs_mv3_menu[10] = '[img]immagini/imm_menu/download.png[/img]';
    ejs_mv3_menu[11] = '[img]immagini/imm_menu/contattami.png[/img]';
    ejs_mv3_menu[12] = '[img]immagini/imm_menu/link.png[/img]';
    ejs_mv3_menu[13] = '[img]immagini/imm_menu/areaprivata.png[/img]';



    ejs_mv3_lien = new Array;
    ejs_mv3_lien[0] = ''
    ejs_mv3_lien[1] = ''
    ejs_mv3_lien[2] = ''
    ejs_mv3_lien[3] = ''
    ejs_mv3_lien[4] = ''
    ejs_mv3_lien[5] = ''
    ejs_mv3_lien[6] = ''
    ejs_mv3_lien[0] += '- Società
    ';
    ejs_mv3_lien[0] += '- Struttura Aziendale
    ';
    ejs_mv3_lien[0] += '- Chi è il Broker
    ';
    ejs_mv3_lien[0] += '- Codice Deontologico del Broker
    ';
    ejs_mv3_lien[0] += '- Dove Siamo
    ';
    ejs_mv3_lien[1] += '- Servizi per i Clienti
    ';
    ejs_mv3_lien[1] += '- Servizi Aziendali
    ';
    ejs_mv3_lien[1] += '- Convenzione Sviluppo Italia
    ';
    ejs_mv3_lien[2] += '- Cosa è
    ';
    ejs_mv3_lien[2] += '- Convenzioni
    ';
    ejs_mv3_lien[2] += '- Come Averla
    ';
    ejs_mv3_lien[3] += '- Scrivi a Italfi
    ';
    ejs_mv3_lien[3] += '- Contatta il tuo Broker
    ';
    ejs_mv3_lien[4] += '- Del Mese
    ';
    ejs_mv3_lien[4] += '- Archivio
    ';
    ejs_mv3_lien[5] += '- Cosa Sono
    ';
    ejs_mv3_lien[5] += '- Leggile
    ';
    ejs_mv3_lien[6] += '- Mappa del Sito
    ';





    function d(texte)
    {
    document.write(texte);
    }

    d('<DIV ID=ejs_mv3_relativ STYLE="position:relative;width:'+ejs_mv3_largeur+' ;height:'+ejs_mv3_hauteur+'">');
    d('<DIV ID=ejs_mv3_cadre STYLE="position:absolute;width:'+(ejs_mv3_largeur-8)+';height:'+(ejs_mv3_hauteur-8)+';top:4;left:4;clip:rect(0 '+(ejs_mv3_largeur-8)+' '+(ejs_mv3_hauteur-8)+' 0)">');
    d('<div id=ejs_mv3_scroll_1 style="position:absolute;width:'+(ejs_mv3_largeur-8)+';left:0;top:0;" CLASS=ejs_mv3_styl_scroll>Caricamento del menù ...</DIV>');
    d('<div id=ejs_mv3_scroll_2 style="position:absolute;width:'+(ejs_mv3_largeur-8)+';top:0;left:'+ejs_mv3_largeur+';" CLASS=ejs_mv3_styl_scroll></DIV>');
    d('</DIV></DIV>');

    ejs_mv3_mode = 1;
    ejs_mv3_actuel = 0;

    function ejs_mv3_show(menu)
    {
    if(menu == "menu")
    {
    var html = "<TABLE BORDER=0 BORDERCOLOR=#FFCC66 WIDTH=100% CELLSPACING=3 BGCOLOR="+ejs_mv3_bgcolor+">";
    for(a=0;a<ejs_mv3_menu.length;a++)
    {
    html += '<TR><TD>'+ejs_mv3_menu[a]+'</TD></TR>';
    }
    html += "</TABLE>";
    document.getElementById("ejs_mv3_scroll_1").innerH TML = html;
    if(ejs_mv3_mode == 2)
    ejs_mv3_action(1);
    }
    else
    {
    var html = "<TABLE HEIGHT="+(ejs_mv3_hauteur-15)+" BORDER=0 BORDERCOLOR=#000066 WIDTH=100% CELLSPACING=3 BGCOLOR="+ejs_mv3_bgcolor+"><TR><TD HEIGHT=25 ALIGN=center CLASS=ejs_mv3_styl_scroll>"+ejs_mv3_menu[menu]+"</TD></TR><TR><TD HEIGHT="+(ejs_mv3_hauteur-70)+" VALIGN=top CLASS=ejs_mv3_styl_scroll>"+ejs_mv3_lien[menu]+"</TD></TR><TR><TD HEIGHT=25 ALIGN=center CLASS=ejs_mv3_styl_scroll><img src=\"immagini/imm_menu/indietro.png\" width='80' height='20' border='0'></TD></TR></TABLE>";
    document.getElementById("ejs_mv3_scroll_2").innerH TML = html;
    if(ejs_mv3_mode == 1)
    ejs_mv3_action(2);
    }
    }
    ejs_mv3_cursor = ejs_mv3_largeur;

    function ejs_mv3_action(action)
    {
    if(action == 2)
    {
    if(ejs_mv3_cursor>0)
    {
    ejs_mv3_cursor -= 10;
    document.getElementById("ejs_mv3_scroll_1").style. left = ejs_mv3_cursor-ejs_mv3_largeur;
    document.getElementById("ejs_mv3_scroll_2").style. left = ejs_mv3_cursor;
    setTimeout("ejs_mv3_action("+action+")",1);
    ejs_mv3_mode = 2;
    }
    }
    else
    {
    if(ejs_mv3_cursor<ejs_mv3_largeur)
    {
    ejs_mv3_cursor += 10;
    document.getElementById("ejs_mv3_scroll_1").style. left = ejs_mv3_cursor-ejs_mv3_largeur;
    document.getElementById("ejs_mv3_scroll_2").style. left = ejs_mv3_cursor;
    setTimeout("ejs_mv3_action("+action+")",1);
    ejs_mv3_mode = 1;
    }
    }
    }

    window.onload = new Function("ejs_mv3_show('menu')");
    </script>
    </td>
    <td width="85%" colspan="2" align="left" valign="top">
    <div align="left">
    <table width="100%" height="68%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="55%">
    <div align="left">



    <marquee bgcolor="#000066" border="0" align="top" scrollamount="2" direction="right" width="40%" height="20px" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size 14; color: #FFFFFF">
    Benvenuto in U&B Site</a>
    </marquee>
    </p>
    </div>

    </td>
    <td width="11%"></td>
    <td width="34%"></td>
    </tr>
    <tr>
    <td><div align="left"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Con
    questo sito spero di fornire vari strumenti utili per i WebMaster,

    E creare una piccola comunit&agrave; di persone appasionate di
    WEB.</font>
    </div></td>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td>



    </p>


    </p>


    </p>


    </p>


    </p>


    </p>


    </p>
    </td>
    <td></td>
    <td align="right" valign="bottom">
    <div align="right">

  2. #2
    Utente di HTML.it L'avatar di mexican
    Registrato dal
    Oct 2001
    residenza
    cava de tirreni
    Messaggi
    3,541

    ecco il continuo non entrava in una sola

    <script language="JavaScript">

    var scroller_width='150px';
    var scroller_height='150px';
    var bgcolor='#000066';
    var border_color='#0099ff';
    var pause=3000;

    var scrollercontent=new Array()
    scrollercontent[0]='Traduzioni di siti web: Italiano -> Inglese; Italiano -> Francese; Inglese -> Italiano; Francese -> Italiano;
    Clicca QUI '
    scrollercontent[1]='Partecipa al Forum e contribuisci a migliorare il Sito.'
    scrollercontent[2]='Ogni 45/60 minuti passati davanti al pc ricordati di fare una breve pausa... fa bene a te e fa bene allo schermo che non ne può più di vedere sempre la tua faccia che lo fissa.'


    var ie4=document.all
    var dom=document.getElementById&&navigator.userAgent.i ndexOf("Opera")==-1

    if (ie4||dom){
    document.write('<div align="left" style="position:relative;width:'+scroller_width+'; height:'+scroller_height+';overflow:hidden; border: 1px '+border_color+'; border-style: solid;"><div class="tabella" id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+scroller_width+';height: '+scroller_height+';top:'+scroller_height+';filter :alpha(opacity=20);-moz-opacity:0.2;"></div><div class="tabella" id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+scroller_width+';height: '+scroller_height+';top:'+scroller_height+';filter :alpha(opacity=20);-moz-opacity:0.2;"></div></div>')
    } else if(document.layers){
    document.write('<ilayer id=tickernsmain visibility=hide width='+scroller_width+' height='+scroller_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+scroller_width+' height='+scroller_height+' left=0 top=0>'+scrollercontent[0]+'</layer></ilayer>')
    }

    var curpos=scroller_height*(1)
    var degree=10
    var curcanvas="canvas0"
    var curindex=0
    var nextindex=1

    function moveslide(){
    if (curpos>0){
    curpos=Math.max(curpos-degree,0)
    tempobj.style.top=curpos+"px"
    }
    else{
    clearInterval(dropslide)
    if (crossobj.filters)
    crossobj.filters.alpha.opacity=100
    else if (crossobj.style.MozOpacity)
    crossobj.style.MozOpacity=1
    nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
    tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
    tempobj.innerHTML=scrollercontent[curindex]
    nextindex=(nextindex<scrollercontent.length-1)? nextindex+1 : 0
    setTimeout("rotateslide()",pause)
    }
    }

    function rotateslide(){
    if (ie4||dom){
    resetit(curcanvas)
    crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
    crossobj.style.zIndex++
    if (crossobj.filters)
    document.all.canvas0.filters.alpha.opacity=documen t.all.canvas1.filters.alpha.opacity=20
    else if (crossobj.style.MozOpacity)
    document.getElementById("canvas0").style.MozOpacit y=document.getElementById("canvas1").style.MozOpac ity=0.2
    var temp='setInterval("moveslide()",50)'
    dropslide=eval(temp)
    curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
    }
    else if (document.layers){
    crossobj.document.write(scrollercontent[curindex])
    crossobj.document.close()
    }
    curindex=(curindex<scrollercontent.length-1)? curindex+1 : 0
    }

    function resetit(what){
    curpos=parseInt(scroller_height)*(1)
    var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
    crossobj.style.top=curpos+"px"
    }

    function startit(){
    crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub
    if (ie4||dom){
    crossobj.innerHTML=scrollercontent[curindex]
    rotateslide()
    }
    else{
    document.tickernsmain.visibility='show'
    curindex++
    setInterval("rotateslide()",pause)
    }
    }

    if (ie4||dom||document.layers)
    window.onload=startit
    </script>
    </div>
    </td>
    </tr>
    </table>


    </p>
    </div>
    </td>
    </tr>
    <tr>
    <td width="15%" height="119"><font color="#FFFFFF"></font></td>
    <td width="65%" height="119"></td>
    <td width="20%" height="119" align="right" valign="middle">[img]immagini/mcp.png[/img]</td>
    </tr>
    </table>
    </body>
    </html>

  3. #3
    dal debug di IE risulta che l'errore è in questa riga

    html +='<TR><TD>'+ejs_mv3_menu[a]+'</TD></TR>';

    Il primo apice dell'evento onClick te lo vede come chiusura della stringa, devi quindi aggiungere prima un backslash.
    Lo devi aggiungere anche prima dell'apice di chiusura dell'evento.
    Purtroppo se lo scrivo non me lo visualizza......

    è un vento del deserto, a scanzo di equivoci

  4. #4
    Utente di HTML.it L'avatar di mexican
    Registrato dal
    Oct 2001
    residenza
    cava de tirreni
    Messaggi
    3,541

    i backslash ci sono

    Originariamente inviato da Shamal
    dal debug di IE risulta che l'errore è in questa riga

    html +='<TR><TD>'+ejs_mv3_menu[a]+'</TD></TR>';

    Il primo apice dell'evento onClick te lo vede come chiusura della stringa, devi quindi aggiungere prima un backslash.
    Lo devi aggiungere anche prima dell'apice di chiusura dell'evento.
    Purtroppo se lo scrivo non me lo visualizza......

    il problema sta nel fatto che senza il secondo script funziona con il secondo non mi compare il menù!!!

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 © 2025 vBulletin Solutions, Inc. All rights reserved.