Visualizzazione dei risultati da 1 a 6 su 6

Discussione: da testo a immagine

  1. #1

    da testo a immagine

    ciao ragazzi vorrei sostituire Back con un immagine...come faccio
    questo è il codice

    If Request.querystring("res") ="1024768" Then
    Response.write "<p align=Center>[img]& ObjRec([/img]</a>" &_
    "<p align=center><a href=javascript:history.back(1)>Back</a>"
    End if %>

    is it possible?

  2. #2
    Utente di HTML.it L'avatar di Gio&Ste
    Registrato dal
    Jan 2001
    Messaggi
    643
    semplice a posto di back ci metti [img]immagine che vuoi usare[/img] ed il gioco è fatto!!!

    Come perdersi in un bicchier d'acqua!
    Giò

  3. #3
    dank u

  4. #4
    non va... VVoVe:
    ho cambiato cosi
    <%@ language = "VBSCRIPT" %>

    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#FFFFFF" text="#000000" >

    <table width="50%" border="0" cellspacing="0" cellpadding="0" height="40" align="center">
    <tr>

    <% ID = request.querystring("ID")
    Set objCon = Server.CreateObject ("ADODB.Connection")
    Set objRec = Server.CreateObject ("ADODB.Recordset")
    objCon.Open Dbcon
    SQL = "SELECT * FROM gallery WHERE ID = " & ID
    objRec.Open SQL, objCon





    Response.write "<td valign=top height=67 width=""100%"">"

    If Request.querystring("res")="" Then
    Response.write "<p align=Center>[img]& ObjRec([/img]</a> " &_
    "<p align=center><a href=javascript:history.back(1)>[img]/img/24.png[/img]</a>"
    End if


    If Request.querystring("res")="800600" Then
    Response.write "<p align=Center>[img]& ObjRec([/img]</a>" &_
    "<p align=center><a href=javascript:history.back(1)>[img]/img/24.png[/img]</a>"
    End if

    If Request.querystring("res") ="1024768" Then
    Response.write "<p align=Center>[img]& ObjRec([/img]</a>" &_
    "<p align=center><a href=javascript:history.back(1)>[img]/img/24.png[/img]</a>"
    End if %>

    </td>
    </tr>
    </table>




    </body>
    </html>
    ma non mi visualizz piu' la p agina

  5. #5
    credo che il problema sia perchè qui:

    Response.write "<td valign=top height=67 width=""100%"">"

    metti (giustamente) le doppie virgolette sull'attributo width e qui:

    "<p align=center><a href=javascript:history.back(1)>[img]/img/24.png[/img]</a>"

    invece no, per l'attributo src...

    Prova a mettere:

    [img][/img]

    ovunque richiami le immagini, altrimenti le stringhe vengono troncate a "<p align=center><a href=javascript:history.back(1)><img src=" e non ti fanno vedere nulla...
    (io speriamo che c'ho azzeccato)
    Home: http://www.ivansweb.com
    Le mie applicazioni gratuite in ASP
    · IWGallery
    · IWNewsletter
    · IWMessenger
    · IWGuestbook

  6. #6
    xfetto!!!

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.