Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2006
    Messaggi
    15

    immagine

    Ciao a tutti,
    come faccio a inserire un'immagine in una pagina web e far si che questa risulti cliccabile?
    ho già la pagina, ma al posto dell'immagine non viene visualizzato niente (solo la x o l'icona), e anche se la modifico o ne aggiungo un'altra non cambia niente.
    grazie per l'aiuto!
    buona giornata!

  2. #2
    Se appare la X vuol dire che il percorso dell'immagine non è giusto, controlla e riprova.
    FEDERIX.IT - [Pillola] GRAFICA DEI FORM

    ...ho ancora quella forza che ti serve, quando dici "Si comincia!"

  3. #3
    Frontend samurai L'avatar di fcaldera
    Registrato dal
    Feb 2003
    Messaggi
    12,924
    attenzione al titolo...
    Vuoi aiutare la riforestazione responsabile?

    Iscriviti a Ecologi e inizia a rimuovere la tua impronta ecologica (30 alberi extra usando il referral)

  4. #4

    Re: immagine

    Originariamente inviato da zim182
    Ciao a tutti,
    come faccio a inserire un'immagine in una pagina web e far si che questa risulti cliccabile?
    ho già la pagina, ma al posto dell'immagine non viene visualizzato niente (solo la x o l'icona), e anche se la modifico o ne aggiungo un'altra non cambia niente.
    grazie per l'aiuto!
    buona giornata!
    1) Controlla che l'immagine sia .jpg .gif oppure .png in quanto altri formati per quanto ne so io (qualcuno mi corregga se sbaglio) non sono validi.

    2) Fai attenzione alle maiuscole/minuscole. Magari il file si chiama Pippo.jpg ed hai linkato il file pippo.jpg.
    Occhio anche all'estensione: pippo.jpg è diverso da pippo.JPG

    3) Il file contenente l'immagine è inserito nella cartella corretta?

    4) Magari se ci fai vedere il codice ti si può aiutare più facilmente.

  5. #5
    Utente di HTML.it
    Registrato dal
    Feb 2006
    Messaggi
    15
    Vi provo a mandare il codice ma è un ppo complaicato..
    praticamente è un heading di una pagina web, il codice era già scritto, io ho provato ad inserire le immagini, che si chiamano "bright.gif", usando frontpage e cliccando sulla x della vecchia immagine e cambiando il percorso mettendo quello della nuova immagine..
    non so se è il giusto modo di procedere..

    -----------------------------------------------------------------


    <HTML>
    <HEAD>
    <SCRIPT LANGUAGE="javascript">
    function Mousin(where){
    switch (where){
    case 1:
    if (document.Image1.src.charAt(document.Image1.src.la stIndexOf(".")-1) == "f")
    document.Image1.src = "../images/Wombat_images/con_u.gif";
    break;
    case 2:
    if (document.Image1.src.charAt(document.Image1.src.la stIndexOf(".")-1) == "u")
    document.Image1.src = "../images/Wombat_images/con_f.gif";
    break;
    case 3:
    if (document.Image1.src.charAt(document.Image1.src.la stIndexOf(".")-1) == "u"){
    document.Image1.src = "../images/Wombat_images/con_d.gif";
    document.Image2.src = "../images/Wombat_images/sear_f.gif";
    setTimeout("ShowMenu()", 250);
    parent.frames['text'].location.reload();
    }
    break;
    case 4:
    if (document.Image2.src.charAt(document.Image2.src.la stIndexOf(".")-1) == "f")
    document.Image2.src = "../images/Wombat_images/sear_u.gif";
    break;
    case 5:
    if (document.Image2.src.charAt(document.Image2.src.la stIndexOf(".")-1) == "u")
    document.Image2.src = "../images/Wombat_images/sear_f.gif";
    break;
    case 6:
    if (document.Image2.src.charAt(document.Image2.src.la stIndexOf(".")-1) == "u"){
    document.Image2.src = "../images/Wombat_images/sear_d.gif";
    document.Image1.src = "../images/Wombat_images/con_f.gif";
    parent.frames["menu"].location = "Search.asp";
    }
    break;
    case 7:
    if (document.Image3.src.charAt(document.Image3.src.la stIndexOf(".")-1) == "f")
    document.Image3.src = "../images/Wombat_images/sync_u.gif";
    break;
    case 8:
    document.Image3.src = "../images/Wombat_images/sync_f.gif";
    break;
    case 9:
    document.Image3.src = "../images/Wombat_images/sync_d.gif";
    break;
    case 10:
    document.Image3.src = "../images/Wombat_images/sync_f.gif";
    document.Image1.src = "../images/Wombat_images/con_d.gif";
    document.Image2.src = "../images/Wombat_images/sear_f.gif";
    setTimeout("ShowMenu()", 250);
    parent.frames['text'].location.reload();
    break;
    default:
    alert ("Error");
    }
    }

    //---- Build the tree menu.
    <% Function buildmenu()
    Set conn = CreateObject("adodb.connection")
    conn.open Session("connectstring")
    Set rsX = CreateObject("adodb.recordset")
    Set rsY = CreateObject("adodb.recordset")

    If Session ("StaffID") > 0 Then
    SQLstr1 = "select kbs_id as id, kbs_caption as title, type=1, kbs_order, parent = kbs_parent from kb_struct union " & _
    "select kbi_id as id, kbi_title as title, type=2, kbi_order, parent = kbi_folder_id from kb_issue "
    SQLstr2 = "select kba_id, kba_title, parent = kba_issue_id from kb_article order by 3, kba_order"
    Else
    SQLstr1 = "select kbs_id as id, kbs_caption as title, type=1, kbs_order, parent = kbs_parent from kb_struct where kbs_visible = 'Y' union " & _
    "select kbi_id as id, kbi_title as title, type=2, kbi_order, parent = kbi_folder_id from kb_issue where kbi_visible = 'Y'"
    SQLstr2 = "select kba_id, kba_title, parent = kba_issue_id from kb_article where kba_visible = 'Y' order by 3, kba_order"
    End If
    SQLstr1 = SQLstr1 & " order by 5,4"

    rsX.CursorLocation = 3
    rsX.open SQLstr1, conn, 3
    rsX.ActiveConnection = nothing

    rsY.CursorLocation = 3
    rsY.open SQLstr2, conn, 3
    rsY.ActiveConnection = nothing

    conn.close
    Set conn = nothing

    TextFrame = "text"
    IssueURL = "KBIssue.asp?id="
    IssueIMG = "Issue.gif"
    IssueID = 0
    DflFolder = "menu_folder_open.gif"
    TextFrame = "text"
    ArticleURL = "KBArticle.asp?id="
    ArticleIMG = "Article.gif"
    index = 0
    PrevParent = -1
    %>//---- create root tree node
    var menu = null;
    var menu = new TheMenu();
    //---- creating tree nodes
    <% Do While rsX.recordcount > 0 AND Not rsX.eof
    '---- keep track of the number of nodes per branch
    If PrevParent = rsX("parent") Then
    NodeIndex(index) = NodeIndex(index) + 1
    Else
    index = index + 1
    ReDim Preserve NodeIndex(index)
    NodeIndex(index) = 0
    End If
    PrevParent = rsX("parent")
    If rsX("parent") > 0 Then
    MenuLevel = CStr(rsX("parent"))
    Else
    MenuLevel = ""
    End If
    nodeID = CStr(rsX("id"))
    If rsX("type") = 1 Then
    %>//---- creating folder
    var menu<%=nodeID%> = null;
    var menu<%=nodeID%> = new TheMenu();
    <% Else
    %>//---- creating issue
    var menuI<%=nodeID%> = new TheMenu ();
    <% End If
    rsX.movenext()
    Loop
    '---- Attach nodes
    If rsX.recordcount > 0 Then
    rsX.movefirst()
    Do While not rsX.eof
    PrevParent = rsX("parent")
    If rsX("parent") > 0 Then
    MenuLevel = CStr(rsX("parent"))
    Else
    MenuLevel = ""
    End If
    nodeID = CStr(rsX("id"))
    If rsX("type") = 1 Then
    %>//---- attaching folder
    try {menu<%=MenuLevel%>.AttachIt(new Node("<%=replace(rsX("title"), "\","\\")%>", "", "", "", "<%=DflFolder%>"));} catch(oError){}
    <% Else
    %>//---- attaching issue
    try {menu<%=MenuLevel%>.AttachIt(new Node("<%=replace(replace(rsX("title"), Chr(34), "'"), "\","\\")%>", "<%=IssueURL & Cstr (nodeID)%>", "<%=textframe%>", "<%=replace(replace(rsX("title"), Chr (34), "'"), "\","\\")%>", "<%=IssueIMG%>"));} catch(oError){}
    <% End If
    rsX.movenext()
    Loop
    End If
    '---- Building the tree
    If rsX.recordcount > 0 Then
    rsX.movelast()
    Do While not rsX.bof
    If rsX("parent") > 0 Then
    MenuLevel = CStr(rsX("parent"))
    Else
    MenuLevel = ""
    End If
    nodeID = CStr(rsX("id"))
    If rsX("type") = 1 Then
    %>//---- Making folder expandable
    if (menu<%=nodeID%>.items[0]) menu<%=MenuLevel%>.items[<%=CStr(NodeIndex(index))%>].SubNode (menu<%=nodeID%>, false, "menu_folder_closed.gif","menu_folder_open.gif ");
    <% Else
    '---- getting the article nodes and attaching them
    rsY.filter = "parent = " & nodeID
    Acount = rsY.recordcount
    If Acount > 0 Then
    rsY.movefirst()
    %>//---- creating article
    try {menu<%=MenuLevel%>.items[<%=CStr(NodeIndex(index))%>].SubNode (menuI<%=Cstr(rsX("id"))%>, false, "Issue.gif", "Issue.gif");} catch(oError){}
    <% End If
    For x = 0 to Acount - 1
    Do While not rsY.eof
    %>//---- attaching article
    try {menuI<%=nodeID%>.AttachIt(new Node("<%=replace(replace(rsY("kba_title"), Chr (34), "'"), "\","\\")%>", "<%=ArticleURL & CStr(rsY("kba_id"))%>", "<%=textframe%>", "<%=replace(replace(rsY("kba_title"), Chr (34), "'"), "\","\\")%>", "<%=ArticleIMG%>"));} catch(oError){}
    <% rsY.movenext()
    loop
    Next
    '---- articles are done
    End If
    rsX.moveprevious()
    If NodeIndex(index) <= 0 Then
    index = index - 1
    Else
    NodeIndex(index) = NodeIndex(index) - 1
    End If
    loop
    End If
    rsY.filter = ""
    rsX.close
    rsY.close
    Set rsX = nothing
    Set rsY = nothing
    End Function
    buildmenu ()%>
    </SCRIPT>
    <base target="heading">
    </HEAD>
    <BODY ONLOAD="Go();" BGCOLOR="#336699" LINK="#FFA82B" VLINK="#0BA2AB" TEXT="#FFFFFF" TOPMARGIN=2 LEFTMARGIN=2 MARGINWIDTH=2 MARGINHEIGHT=2>
    <TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
    <TR>
    <TD>
    [img]images/bright.gif[/img]

    </TD>
    <TD>
    [img]images/bright.gif[/img]

    </TD>
    <TD>
    [img]images/bright.gif[/img]

    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    -----------------------------------------------------------------

    grazie a tutti!
    zim

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.