Répondre 09/08/2004 de pckb
avec la fonction dessine bouton du site exemple asp ballerini (www.asp-php.net) comment definir l'ouverture des pages (pied de page / principal / sommaire ""target :??)
Merci
le code
<%
pg = "element.asp?element=" & RS("ID_element")
response.write bouton(RS("rubrique"),pg) ????target="principal"???
%>
' DESSINE LE BOUTON MENU
function bouton(nom,adr)
QRY=request.serverVariables("QUERY_STRING")
if QRY<>"" then QRY="?" & QRY
' Si on est sur la page >> lien inactif
if instr(lcase(URL&QRY),lcase(adr)) > 0 then
lien = "<font class=nolien>" & nom & "</font>"
' sinon >> lien actif
else
lien="<A class=lien href='" &adr& "'>" &nom& "</A>"
end if
' Dessine le bouton
bouton = "<table cellspacing=2 cellpadding=0 " _
& "border=0><tr><td width=102 height=21 nowrap " _
& "class=bouton>" & lien & "</td></tr></table>" _
& VbCrLf
end function
%>