Avatar billede fasting Nybegynder
27. december 2003 - 16:31 Der er 5 kommentarer og
1 løsning

fjerne ramme om pic

jeg kan ikke finde ud af at fjerne ramme om billederne

se:

http://trefalke.dk/hold2/galleri/galleri.asp


hjælp mig

fasting



<%

Dim CurFile, ShowSub, ShowPic, PictureNo
Dim strPathInfo, strPhysicalPath

CurFile = "galleri.asp"
%>

<html><head>
<title>trefalke</title>
<script language="JavaScript">
<!--
function jumppage(sel)
{
  var i = sel.selectedIndex
  self.location.href = sel.options[i].value
}
// -->
</script>
</head><body>

<center>
  <br>
  <table border="0" cellpadding="0" cellspacing="0"  bordercolor="#111111" width="96%" id="AutoNumber1">
<tr>
      <td align="center" width="12%"><div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">kampe
          :</font> </div></td>
<td align="center" width="88%">
  <form action=<%=CurFile%> method="POST">
          <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<select name="go" onChange="jumppage(this);" size=1 style="font-family: Verdana; font-size: 10px; background-color: rgb(0,0,0); color: rgb(192,192,192); border: 1px solid rgb(192,192,192)">
              <%
  ShowSub = request("ShowSub")
  ShowPic = request("ShowPic")
  strPathInfo = Request.ServerVariables("PATH_INFO")
  strPhysicalPath = Server.MapPath(strPathInfo)

  Set objFSO = CreateObject("Scripting.FileSystemObject")
  Set objFile = objFSO.GetFile(strPhysicalPath)
  Set objFolder = objFile.ParentFolder
  Set objFolderContents = objFolder.Files
  For each Folder in objFolder.SubFolders
      If Left(Folder.Name,1)<>"_" Then
          Response.write "<option "
          If ShowSub=Folder.Name Then
              Response.Write "selected "
          End if
          Response.Write"value='" & CurFile & "?ShowSub="
          Response.Write(Replace(Folder.Name, " ", "%20"))
          response.write "'>"
          Response.Write(Folder.Name & "</option>")
          If ShowSub <= " " Then
            ShowSub = Folder.Name
        End if
      End if
  Next
  Set objFSO = Nothing
  %>
            </select>
            </font> </div>
        </form>
  </td>
</tr>
</table>
<%
If ShowPic > " " then
  ShowPic = Replace(ShowPic, " ", "%20")
  Response.Write "<a href='java script:history.go(-1)'><img src='" & ShowPic & "' width='390'><BR><BR><B>tilbage</B></a>"
Else
%>
  <table border="0" cellpadding="0" cellspacing="0" bordercolor="#333333" width="400" id="AutoNumber1">
  <tr>
  <%
  strPhysicalPath = Server.MapPath(".\" & ShowSub)
  If ShowSub > " " then
    ShowSub = Replace(ShowSub, " ", "%20")
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objFolder = objFSO.GetFolder(strPhysicalPath)
    Set objFolderContents = objFolder.Files
    For Each objFileItem in objFolderContents
    If Ucase(Right(objFileItem.Name,4))=".GIF" OR Ucase(Right(objFileItem.Name,4))=".JPG" THEN
        ShowPic = Replace(objFileItem.Name, " ", "%20")
      'Response.write "<td align='center' width='25%'><a href=" & ShowSub & "\"
      Response.write "<td align='center' width='25%'><a href=" & CurFile & "?ShowPic=" & ShowSub  & "\" & ShowPic
      'Response.Write(Replace(objFileItem.Name, " ", "%20"))
      Response.write ">"
      Response.Write("<img src='" & ShowSub & "\" & objFileItem.Name & "' width=75> ")
      Response.Write("<p align='center'><b>" & Mid(objFileItem.Name,1,Len(objFileItem.Name)-4) & "</b>")
      Response.write "</a></td>"
      PictureNo = PictureNo + 1
      If PictureNo=4 Then
          Response.write "</tr><tr>"
          PictureNo = 0
      End if
    End if
    Next
    Set objFSO = Nothing
  End if
  %>
  </tr>
  </table>
<%
End if
%>
  <br>
  <br>
</center>
</html>
Avatar billede chico Nybegynder
27. december 2003 - 16:32 #1
Du skal have skrevet noget i din <ims src -------  border=0>
Avatar billede arvin Nybegynder
27. december 2003 - 16:33 #2
border="0"
Avatar billede arvin Nybegynder
27. december 2003 - 16:34 #3
Response.Write "<a href='java script:history.go(-1)'><img src='" & ShowPic & "' width='390' border='0'><BR><
Avatar billede fasting Nybegynder
27. december 2003 - 16:35 #4
tak nu er den dér!
Avatar billede arvin Nybegynder
27. december 2003 - 16:37 #5
Hmm... Øv ik hurtig nok :o(
Avatar billede chico Nybegynder
27. december 2003 - 16:43 #6
:)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester