Avatar billede jacobclausen Nybegynder
30. marts 2004 - 17:45 Der er 1 løsning

hjælp til menu

Hej eksperter.
Jeg står med følgende menu og skal have den til at åbne en popup side. Når man klikker på knappen "billeder" skal den åbne et popupvindue med mit indhold.

Kan i lave det for mig?
----------------------------------------
<%
    sub menu

response.write("<table width='750' border='0' cellspacing='0' cellpadding='0'>")
  response.write("<tr>")
    response.write("<td width='12' class='menu_spacer_left'>&nbsp;</td>")
    response.write("<td width='86' bgcolor='#")

    if getpagename() = "forside" then
    response.write("BEC9D9' class='menu_border'>")

    else

    response.write("FFFFFF' class='menu_border' onMouseOver='menu(this,""in"");MM_swapImage(""frontpage"","""",""gfx/gif/icons/frontpage_over.gif"",1)' onMouseOut='menu(this,""out""); MM_swapImgRestore()' onClick='location.href=""?page=1"";'>")

    end if

response.write("<table border='0' cellspacing='0' cellpadding='0' align='center'>")
  response.write("<tr>")
    response.write("<td width='20' height='22' valign='middle'><img src='gfx/gif/icons/frontpage")

    if getpagename() = "forside" then
    response.write("_over")
    end if
    response.write(".gif' name='frontpage' border='0'>")

    response.write("<td valign='middle' class='menu'>Forside</td>")
  response.write("</tr>")
response.write("</table>")

    response.write("<td width='108' bgcolor='#")

    if getpagename() = "information" then
    response.write("BEC9D9' class='menu_border'>")

    else

    response.write("FFFFFF' class='menu_border' onMouseOver='menu(this,""in"");MM_swapImage(""information"","""",""gfx/gif/icons/information_over.gif"",1)' onMouseOut='menu(this,""out""); MM_swapImgRestore()' onClick='location.href=""?page=2"";'>")
    end if

response.write("<table border='0' cellspacing='0' cellpadding='0' align='center'>")
  response.write("<tr>")
    response.write("<td width='20' height='22' valign='middle'><img src='gfx/gif/icons/information")

    if getpagename() = "information" then
    response.write("_over")
    end if
    response.write(".gif' name='information' border='0'>")
   
    response.write("<td valign='middle' class='menu'>Information</td>")
  response.write("</tr>")
response.write("</table>")

    response.write("<td width='108' bgcolor='#")

    if getpagename() = "klassen" then
    response.write("BEC9D9' class='menu_border'>")

    else

    response.write("FFFFFF' class='menu_border' onMouseOver='menu(this,""in"");MM_swapImage(""members"","""",""gfx/gif/icons/members_over.gif"",1)' onMouseOut='menu(this,""out""); MM_swapImgRestore()' onClick='location.href=""?page=3"";'>")
    end if

response.write("<table border='0' cellspacing='0' cellpadding='0' align='center'>")
  response.write("<tr>")
    response.write("<td width='20' height='22' valign='middle'><img src='gfx/gif/icons/members")

    if getpagename() = "klassen" then
    response.write("_over")
    end if
    response.write(".gif' name='members' border='0'>")
   
    response.write("<td valign='middle' class='menu'>Klassen</td>")
  response.write("</tr>")
response.write("</table>")

    response.write("<td width='86' bgcolor='#")

    if getpagename() = "kalender" then
    response.write("BEC9D9' class='menu_border'>")

    else

    response.write("FFFFFF' class='menu_border' onMouseOver='menu(this,""in"");MM_swapImage(""calender"","""",""gfx/gif/icons/calender_over.gif"",1)' onMouseOut='menu(this,""out""); MM_swapImgRestore()' onClick='location.href=""?page=4"";'>")
    end if

response.write("<table border='0' cellspacing='0' cellpadding='0' align='center'>")
  response.write("<tr>")
    response.write("<td width='20' height='22' valign='middle'><img src='gfx/gif/icons/calender")

    if getpagename() = "kalender" then
    response.write("_over")
    end if
    response.write(".gif' name='calender' border='0'>")

    response.write("<td valign='middle' class='menu'>Kalender</td>")
  response.write("</tr>")
response.write("</table>")

    response.write("<td width='86' bgcolor='#")

    if getpagename() = "Billeder" then
    response.write("BEC9D9' class='menu_border'>")

    else

    response.write("FFFFFF' class='menu_border' onMouseOver='menu(this,""in"");MM_swapImage(""tagwall"","""",""gfx/gif/icons/billede_over.gif"",1)' onMouseOut='menu(this,""out""); MM_swapImgRestore()' onClick='location.href=""?page=12"";'>")
    end if

response.write("<table border='0' cellspacing='0' cellpadding='0' align='center'>")
  response.write("<tr>")
    response.write("<td width='20' height='22' valign='middle'><img src='gfx/gif/icons/billede")

    if getpagename() = "Billeder" then
    response.write("_over")
    end if
    response.write(".gif' name='tagwall' border='0'>")

    response.write("<td valign='middle' class='menu'>Billeder</td>")
  response.write("</tr>")
response.write("</table>")

    response.write("<td width='86' bgcolor='#")

    if getpagename() = "tagwall" then
    response.write("BEC9D9' class='menu_border'>")

    else
   
    response.write("FFFFFF' class='menu_border' onMouseOver='menu(this,""in"");MM_swapImage(""forum"","""",""gfx/gif/icons/forum_over.gif"",1)' onMouseOut='menu(this,""out""); MM_swapImgRestore()' onClick='location.href=""?page=6"";'>")
    end if

response.write("<table border='0' cellspacing='0' cellpadding='0' align='center'>")
  response.write("<tr>")
    response.write("<td width='20' height='22' valign='middle'><img src='gfx/gif/icons/forum")

    if getpagename() = "tagwall" then
    response.write("_over")
    end if
    response.write(".gif' name='forum' border='0'>")

    response.write("<td valign='middle' class='menu'>Tagwall</td>")
  response.write("</tr>")
response.write("</table>")

    response.write("<td width='86' bgcolor='#")

    if getpagename() = "kontakt" then
    response.write("BEC9D9' class='menu_border'>")

    else

    response.write("FFFFFF' class='menu_border' onMouseOver='menu(this,""in"");MM_swapImage(""contact"","""",""gfx/gif/icons/contact_over.gif"",1)' onMouseOut='menu(this,""out""); MM_swapImgRestore()' onClick='location.href=""?page=7"";'>")
    end if

response.write("<table border='0' cellspacing='0' cellpadding='0' align='center'>")
  response.write("<tr>")
    response.write("<td width='20' height='22' valign='middle'><img src='gfx/gif/icons/contact")
   
    if getpagename() = "kontakt" then
    response.write("_over")   
    end if
    response.write(".gif' name='contact' border='0'>")

    response.write("<td valign='middle' class='menu'>Kontakt</td>")
  response.write("</tr>")
response.write("</table>")

    response.write("<td width='86' bgcolor='#")

    if getpagename() = "links" then
    response.write("BEC9D9' class='menu_border'>")

    else

    response.write("FFFFFF' class='menu_border' onMouseOver='menu(this,""in"");MM_swapImage(""links"","""",""gfx/gif/icons/links_over.gif"",1)' onMouseOut='menu(this,""out""); MM_swapImgRestore()' onClick='location.href=""?page=8"";'>")
    end if

response.write("<table border='0' cellspacing='0' cellpadding='0' align='center'>")
  response.write("<tr>")
    response.write("<td width='20' height='22' valign='middle'><img src='gfx/gif/icons/links")

    if getpagename() = "links" then
    response.write("_over")
    end if
    response.write(".gif' name='links' border='0'>")

    response.write("<td valign='middle' class='menu'>Links</td>")
  response.write("</tr>")
response.write("</table>")

  response.write("<td width='86' bgcolor='#")

    if getpagename() = "forum" then
    response.write("BEC9D9' class='menu_border'>")

    else

    response.write("FFFFFF' class='menu_border' onMouseOver='menu(this,""in"");MM_swapImage(""forum"","""",""gfx/gif/icons/forum_over.gif"",1)' onMouseOut='menu(this,""out""); MM_swapImgRestore()' onClick='location.href=""?page=5"";'>")
    end if

response.write("<table border='0' cellspacing='0' cellpadding='0' align='center'>")
  response.write("<tr>")
    response.write("<td width='20' height='22' valign='middle'><img src='gfx/gif/icons/forum")

    if getpagename() = "forum" then
    response.write("_over")
    end if
    response.write(".gif' name='forum' border='0'>")

    response.write("<td valign='middle' class='menu'>Forum</td>")
  response.write("</tr>")
response.write("</table>")

    response.write("<td width='12' class='menu_spacer_right'>&nbsp;</td>")
  response.write("</tr>")
response.write("</table>")

    end sub
%>
Avatar billede jacobclausen Nybegynder
31. marts 2004 - 09:47 #1
svar
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