felix: links auf iframe

Beitrag lesen

Hallo Felix,

gib uns mal den URL zu einer Testseite, es erleichtert die korrekte
Beantwortung Deiner Frage ungemein.

Viele Grüße,
Stefan

ich habe es noch nich im netz, aber hier die beiden relevanten dateien :

index(nur body, hoffe das reicht):
--------------------------------
<html>
<head>
<title>BREAK DE COLOGNE: STREET DANCE COMPETITION</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="bdc.css">
</head>

<body bgcolor="#000000" topmargin=0 marginheight=0 marginwidth=0 leftmargin=0 onLoad="" link="#FFFF00" alink="#FFFF00" vlink="#CCCCCC" background="images/bdc.gif">
<table width="651" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="100"> </td>
  </tr>
  <tr>
    <td height="442" width="651"  bgcolor="FFFFFF">

<table   height="442" width="651" border="1" bordercolor="#000000" cellspacing="0" >
        <tr>
           <td>

<table  height="442" width="651" border="0" cellspacing="0" bgcolor="FFFFFF">
             <tr>
              <td><!-- iframe in dem menu steht--><IFRAME name="menu" scrolling=no frameborder="0" border="0" SRC="menu.htm" height="442" width="171"></IFRAME></td>
               <td>
                  <table height="100" width="480"cellspacing="0" bgcolor="FFFFFF" border="0">
                 <tr>
                   <td>
                    <img src="images/breakdecologne.gif"  border="0"alt="Text" align="left" >
                  </td>
               </tr>
               <tr>
                <td><!-- in dieses iframe sollen die links aus dem menu--><IFRAME name="content" frameborder="0" border="0" SRC="text.htm" height="342" width="480"></IFRAME></td></tr>
                  </table>
               </td>
            </tr>
          </table>

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

</td>
  </tr>

<tr>
    <td height="100"> </td>
  </tr>
</table>
</body>
</html>
-------------------------------------------------------

menu:
----------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<link rel="stylesheet" type="text/css" href="bdc.css">
<title>Menu</title>
</head>
<body>
   <table>
     <tr>
       <td>
         <img style="vertical-align:middle;text-align:center;position:absolute; top:27px; left:10px"src="images/carhartt.gif" width="138" height="77" border="0"alt="Text" align="right" >
        </td>
     </tr>
     <tr>
      <td width="150" height="41">
        <div style="vertical-align:middle;text-align:center;position:absolute; top:150px; left:5px"><!--diesr link soll dann den inhalt des content iframes ändern--><a href="text.htm" target="content"><img src="images/story_blau.gif" border=0 onmouseover="flipImage('images/story_rot.gif')" onmouseout="flipImage('images/story_blau.gif')"></a></div>
      </td>
    </tr>
     <tr>
       <td width="150" height="41">
        <div style="vertical-align:middle;text-align:center;position:absolute; top:191px; left:1px"><a href="main_glly.htm"><img src="images/gallery_blau.gif" border=0 onmouseover="flipImage('images/gallery_rot.gif')" onmouseout="flipImage('images/gallery_blau.gif')"></a></div>
      </td>
    </tr>
     <tr>
      <td width="150" height="41">
        <div style="vertical-align:middle;text-align:center;position:absolute; top:232px; left:3px"><a href="main_glly.htm"><img src="images/contact_blau.gif" border=0 onmouseover="flipImage('images/contact_rot.gif')" onmouseout="flipImage('images/contact_blau.gif')"></a></div>
      </td>
     </tr>
    <tr>
      <td width="150" height="41">
        <img style="vertical-align:middle;text-align:center;position:absolute; top:300px; left:2px"src="images/see_them_fighting.gif" width="150" height="90" border="0"alt="Text" align="right" >
        </td>
     </tr>
   </table>
</body>
</html>

<SCRIPT LANGUAGE="JScript">
function flipImage(url)
{
    if (window.event.srcElement.tagName == "IMG" ) {
        window.event.srcElement.src = url;
    }
}
</SCRIPT>
---------------------------------

so, ich hoffe das du damit schon etwas anfangen kannst, gruss felix