Avatar billede t-m-s Nybegynder
08. december 2002 - 18:19 Der er 7 kommentarer og
1 løsning

Åbne link i iframe?

Hej jeg er ved at leve en hp..

Når jeg trykker på at link i min mune skal den kun loade iframet, men når jeg trykker på den åbner den det der skulle være i iframet i hele vinduet :S

<html>

<head>
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>dfgdfg</title>
</head>

<body background="bg1.jpg" topmargin="0" leftmargin="0">

<div align="center">
  <center>

<table border="0" width="750" height="601">
  <tr>
    <td width="750" height="595">
      <div align="center">
        <center>
        <table border="0" width="750" height="585">
          <tr>
            <td width="650" height="579" background="main.jpg" align="right" valign="bottom">
            </center>
            <table border="0" width="113%" height="508">
              <tr>
                <td width="75%" height="502" align="center">
                  <table border="0" width="86%" height="417">
                    <tr>
                      <td width="100%" height="411" valign="top"><iframe name=main src=main.htm width="460" height="99%" border="0" frameborder="0" scrolling=auto></iframe></td>
                    </tr>
                  </table>
                </td>
                <td width="25%" height="502" align="center" valign="top">
                  <p style="margin-top: 0; margin-bottom: 0">k</p>
                  <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
                  <table border="1" width="79%" height="98" bordercolorlight="#000000" cellspacing="0" bordercolordark="#000000" bordercolor="#000000" bgcolor="#FFFFFF">
                    <tr>
                      <td width="100%" height="19">
                        <p align="center"><font face="Arial Black" size="2">Main</font></td>
                    </tr>
                    <tr>
                      <td width="100%" height="67" valign="top">
                        <p style="margin-left: 10; margin-top: 0; margin-bottom: 0">-
                        <a href="hvemervi.htm">Hvem er vi</a></p>
                        <p style="margin-left: 10; margin-top: 0; margin-bottom: 0">-
                        <a href="hvadlavervi.htm">Hvad laver vi</a></p>
                    </tr>
                  </table>
                  <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
                  <p style="margin-top: 0; margin-bottom: 0">k</p>
                  <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
                  <p style="margin-top: 0; margin-bottom: 0">k</p>
                  <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
                  <p style="margin-top: 0; margin-bottom: 0">k</p>
                  <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
                  <p style="margin-top: 0; margin-bottom: 0">k</td>
              </tr>
            </table>
          </td>
          </tr>
        </table>
      </div>
    </td>
  </tr>
</table>

  </center>
  </div>

</body>

</html>



hvad skal rettes?
Avatar billede gonza.dk Nybegynder
08. december 2002 - 18:23 #1
i dine links skriver du <a href='url.htm' target='main'>link</a>

Mvh.
Gonza
Avatar billede gonza.dk Nybegynder
08. december 2002 - 18:25 #2
koden er rettet:

<html>

<head>
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>dfgdfg</title>
</head>

<body background="bg1.jpg" topmargin="0" leftmargin="0">

<div align="center">
  <center>

<table border="0" width="750" height="601">
  <tr>
    <td width="750" height="595">
      <div align="center">
        <center>
        <table border="0" width="750" height="585">
          <tr>
            <td width="650" height="579" background="main.jpg" align="right" valign="bottom">
            </center>
            <table border="0" width="113%" height="508">
              <tr>
                <td width="75%" height="502" align="center">
                  <table border="0" width="86%" height="417">
                    <tr>
                      <td width="100%" height="411" valign="top"><iframe name="main" src="main.htm" width="460" height="99%" border="0" frameborder="0" scrolling="auto"></iframe></td>
                    </tr>
                  </table>
                </td>
                <td width="25%" height="502" align="center" valign="top">
                  <p style="margin-top: 0; margin-bottom: 0">k</p>
                  <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
                  <table border="1" width="79%" height="98" bordercolorlight="#000000" cellspacing="0" bordercolordark="#000000" bordercolor="#000000" bgcolor="#FFFFFF">
                    <tr>
                      <td width="100%" height="19">
                        <p align="center"><font face="Arial Black" size="2">Main</font></td>
                    </tr>
                    <tr>
                      <td width="100%" height="67" valign="top">
                        <p style="margin-left: 10; margin-top: 0; margin-bottom: 0">-
                        <a href="hvemervi.htm" target="main">Hvem er vi</a></p>
                        <p style="margin-left: 10; margin-top: 0; margin-bottom: 0">-
                        <a href="hvadlavervi.htm" target="main">Hvad laver vi</a></p>
                    </tr>
                  </table>
                  <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
                  <p style="margin-top: 0; margin-bottom: 0">k</p>
                  <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
                  <p style="margin-top: 0; margin-bottom: 0">k</p>
                  <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
                  <p style="margin-top: 0; margin-bottom: 0">k</p>
                  <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
                  <p style="margin-top: 0; margin-bottom: 0">k</td>
              </tr>
            </table>
          </td>
          </tr>
        </table>
      </div>
    </td>
  </tr>
</table>

  </center>
  </div>

</body>

</html>
Avatar billede t-m-s Nybegynder
08. december 2002 - 18:27 #3
takker
Avatar billede gonza.dk Nybegynder
08. december 2002 - 18:27 #4
dette er ikke god kodning:

<iframe name=main src=main.htm width="460" height="99%" border="0" frameborder="0" scrolling=auto></iframe>

dette er god kodning:
<iframe name="main" src="main.htm" width="460" height="99%" border="0" frameborder="0" scrolling="auto"></iframe>

bare et hint ;o)
Avatar billede t-m-s Nybegynder
08. december 2002 - 18:28 #5
ok kigger det lige igennem og retter det jeg kan ;) tak for hintet
Avatar billede gonza.dk Nybegynder
08. december 2002 - 18:29 #6
for god ordens skyld:

det var denne del jeg rettede i:

<p style="margin-left: 10; margin-top: 0; margin-bottom: 0">-
<a href="hvemervi.htm">Hvem er vi</a></p>
<p style="margin-left: 10; margin-top: 0; margin-bottom: 0">-
<a href="hvadlavervi.htm">Hvad laver vi</a></p>

den rettede jeg til:

<p style="margin-left: 10; margin-top: 0; margin-bottom: 0">-
<a href="hvemervi.htm" target="main">Hvem er vi</a></p>
<p style="margin-left: 10; margin-top: 0; margin-bottom: 0">-
<a href="hvadlavervi.htm" target="main">Hvad laver vi</a></p>

altså indsatte target="main" i dine links ;o)
Avatar billede gonza.dk Nybegynder
08. december 2002 - 18:30 #7
så lidt da, og takker for points ;o)
Avatar billede t-m-s Nybegynder
08. december 2002 - 18:33 #8
fik selv lavede det inden jeg så at du havde rettet det hele...


Var da så lidt ;)
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
Vi tilbyder markedets bedste kurser inden for webudvikling

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