Volledige versie bekijken : niet naar iframe



Joga
27 August 2006, 14:20
ik ben weer bezig met een nieuwe site en als ik in de navigatie op home, contact, ... klik opent hij dat in een nieuw venster en niet in het iframe :frown:
ik weet echt niet wat ik mis doe...

index:
<html>
<head>
<title>bandage</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<center>
<body bgcolor="#191919" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (bandage.psd) -->
<table id="Table_01" width="801" height="601" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="29">
<img src="images/index_01.gif" width="800" height="23" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="23" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="6">
<img src="images/index_02.gif" width="348" height="232" alt=""></td>
<td colspan="4" rowspan="2">
<a href="wis.html" target="_iframe">
<img src="images/wis.gif" width="123" height="9" border="0" alt=""></a></td>
<td rowspan="38">
<img src="images/index_04.gif" width="13" height="577" alt=""></td>
<td colspan="6">
<a href="hi.html" target="_iframe">
<img src="images/hi.gif" width="88" height="8" border="0" alt=""></a></td>
<td rowspan="7">
<img src="images/index_06.gif" width="21" height="235" alt=""></td>
<td colspan="13">
<a href="handleidingen.html" target="_iframe">
<img src="images/handleidingen.gif" width="116" height="8" border="0" alt=""></a></td>
<td rowspan="38">
<img src="images/index_08.gif" width="91" height="577" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="8" alt=""></td>
</tr>
<tr>
<td colspan="6" rowspan="2">
<img src="images/index_09.gif" width="88" height="33" alt=""></td>
<td colspan="13" rowspan="2">
<img src="images/index_10.gif" width="116" height="33" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt=""></td>
</tr>
<tr>
<td colspan="4">
<img src="images/index_11.gif" width="123" height="32" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="32" alt=""></td>
</tr>
<tr>
<td colspan="2" rowspan="3">
<img src="images/index_12.gif" width="27" height="191" alt=""></td>
<td>
<a href="home.html" target="_iframe">
<img src="images/home.gif" width="48" height="7" border="0" alt=""></a></td>
<td rowspan="3">
<img src="images/index_14.gif" width="48" height="191" alt=""></td>
<td rowspan="35">
<img src="images/index_15.gif" width="5" height="536" alt=""></td>
<td colspan="4">
<a href="contact.html" target="_iframe">
<img src="images/contact.gif" width="79" height="7" border="0" alt=""></a></td>
<td rowspan="4">
<img src="images/index_17.gif" width="4" height="194" alt=""></td>
<td colspan="6" rowspan="4">
<img src="images/index_18.gif" width="33" height="194" alt=""></td>
<td colspan="6" rowspan="2">
<a href="tips.html" target="_iframe">
<img src="images/tips.gif" width="46" height="8" border="0" alt=""></a></td>
<td rowspan="35">
<img src="images/index_20.gif" width="37" height="536" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="7" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/index_21.gif" width="48" height="184" alt=""></td>
<td colspan="4" rowspan="3">
<img src="images/index_22.gif" width="79" height="187" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt=""></td>
</tr>
<tr>
<td colspan="6" rowspan="2">
<img src="images/index_23.gif" width="46" height="186" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="183" alt=""></td>
</tr>
<tr>
<td rowspan="32">
<img src="images/index_24.gif" width="90" height="345" alt=""></td>
<td width="381" height="294" colspan="6" rowspan="29"><iframe name="iframe" SRC="home.html" scrolling="auto" height="294" width="381" FRAMEBORDER="no"></iframe></td>
<td>
<img src="images/spacer.gif" width="1" height="3" alt=""></td>
</tr>
<tr>
<td rowspan="31">
<img src="images/index_26.gif" width="72" height="342" alt=""></td>
<td colspan="16">
<a href="http://www.ivanhoejupiler.be/index.php" target="main">
<img src="images/ihj.gif" width="92" height="11" border="0" alt=""></a></td>
<td rowspan="31">
<img src="images/index_28.gif" width="19" height="342" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="11" alt=""></td>
</tr>
<tr>
<td colspan="16">
<img src="images/index_29.gif" width="92" height="8" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="8" alt=""></td>
</tr>
<tr>
<td colspan="12">
<a href="http://geekstogo.com/" target="main">
<img src="images/bandage_30.gif" width="69" height="11" border="0" alt=""></a></td>
<td colspan="4" rowspan="4">
<img src="images/index_31.gif" width="23" height="37" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="11" alt=""></td>
</tr>
<tr>
<td colspan="12">
<img src="images/index_32.gif" width="69" height="8" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="8" alt=""></td>
</tr>
<tr>
<td colspan="10">
<a href="http://www.hijackthis.nl/" target="main">
<img src="images/hijackthis.gif" width="63" height="12" border="0" alt=""></a></td>
<td colspan="2" rowspan="2">
<img src="images/index_34.gif" width="6" height="18" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="12" alt=""></td>
</tr>
<tr>
<td colspan="10">
<img src="images/index_35.gif" width="63" height="6" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="6" alt=""></td>
</tr>
<tr>
<td colspan="15">
<a href="http://www.bluemedicine.be/" target="main">
<img src="images/bluemedecine.gif" width="86" height="11" border="0" alt=""></a></td>
<td rowspan="25">
<img src="images/index_37.gif" width="6" height="286" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="11" alt=""></td>
</tr>
<tr>
<td colspan="15">
<img src="images/index_38.gif" width="86" height="6" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="6" alt=""></td>
</tr>
<tr>
<td colspan="8">
<a href="http://martijnc.be/" target="main">
<img src="images/bandage_30-39.gif" width="55" height="12" border="0" alt=""></a></td>
<td colspan="7" rowspan="2">
<img src="images/index_40.gif" width="31" height="19" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="12" alt=""></td>
</tr>
<tr>
<td colspan="8">
<img src="images/index_41.gif" width="55" height="7" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="7" alt=""></td>
</tr>
<tr>
<td colspan="14">
<a href="http://spywareinfo.com/" target="main">
<img src="images/spywareinfo.gif" width="77" height="14" border="0" alt=""></a></td>
<td rowspan="4">
<img src="images/index_43.gif" width="9" height="71" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="14" alt=""></td>
</tr>
<tr>
<td colspan="14">
<img src="images/index_44.gif" width="77" height="3" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="3" alt=""></td>
</tr>
<tr>
<td rowspan="19">
<img src="images/index_45.gif" width="2" height="233" alt=""></td>
<td colspan="12">
<a href="http://jogadesign.designstudioice.nl/" target="main">
<img src="images/joga.gif" width="70" height="15" border="0" alt=""></a></td>
<td rowspan="2">
<img src="images/index_47.gif" width="5" height="54" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="15" alt=""></td>
</tr>
<tr>
<td colspan="12">
<img src="images/index_48.gif" width="70" height="39" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="39" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img src="images/index_49.gif" width="9" height="23" alt=""></td>
<td colspan="11">
<a href="downloads.html" target="_iframe">
<img src="images/downloads.gif" width="75" height="7" border="0" alt=""></a></td>
<td>
<img src="images/spacer.gif" width="1" height="7" alt=""></td>
</tr>
<tr>
<td colspan="11">
<img src="images/index_51.gif" width="75" height="16" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="16" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/index_52.gif" width="2" height="14" alt=""></td>
<td colspan="10">
<a href="http://www.lavasoft.de/dutch/software/adaware/" target="main">
<img src="images/adw.gif" width="65" height="9" border="0" alt=""></a></td>
<td colspan="3" rowspan="15">
<img src="images/index_54.gif" width="17" height="156" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="9" alt=""></td>
</tr>
<tr>
<td colspan="10">
<img src="images/index_55.gif" width="65" height="5" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="5" alt=""></td>
</tr>
<tr>
<td colspan="6">
<a href="http://www.download.com/Spybot-Search-Destroy/3000-8022_4-10401314.html?tag=lst-0-1" target="main">
<img src="images/spybot.gif" width="47" height="14" border="0" alt=""></a></td>
<td colspan="5" rowspan="2">
<img src="images/index_57.gif" width="20" height="20" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="14" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="images/index_58.gif" width="47" height="6" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="6" alt=""></td>
</tr>
<tr>
<td colspan="9">
<a href="http://www.merijn.org/files/hijackthis.zip" target="main">
<img src="images/hijackthis-59.gif" width="61" height="8" border="0" alt=""></a></td>
<td colspan="2" rowspan="11">
<img src="images/index_60.gif" width="6" height="122" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="8" alt=""></td>
</tr>
<tr>
<td colspan="9">
<img src="images/index_61.gif" width="61" height="10" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="10" alt=""></td>
</tr>
<tr>
<td colspan="5">
<a href="http://www.ewido.net/en/download/" target="main">
<img src="images/ewido.gif" width="42" height="11" border="0" alt=""></a></td>
<td colspan="4" rowspan="2">
<img src="images/index_63.gif" width="19" height="20" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="11" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="images/index_64.gif" width="42" height="9" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="9" alt=""></td>
</tr>
<tr>
<td colspan="8">
<a href="http://www.ccleaner.com/" target="main">
<img src="images/ccleaner.gif" width="59" height="11" border="0" alt=""></a></td>
<td rowspan="2">
<img src="images/index_66.gif" width="2" height="17" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="11" alt=""></td>
</tr>
<tr>
<td colspan="8">
<img src="images/index_67.gif" width="59" height="6" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="6" alt=""></td>
</tr>
<tr>
<td colspan="9">
<a href="http://www.zonelabs.com/store/application;jsessionid=EJiOGq6QzJ7V41pROYb6v1WsKMY tB2xZz7n1QcumNg1jdf2HANln!-2104473970!-1062696903!7551!7552!NONE?namespace=zls_catalog&origin=global.jsp&event=link.skuList&dc=12bms&ctry=BE&lang=nl&lid=nav_db" target="main">
<img src="images/zonelabs.gif" width="61" height="11" border="0" alt=""></a></td>
<td>
<img src="images/spacer.gif" width="1" height="11" alt=""></td>
</tr>
<tr>
<td colspan="9" rowspan="4">
<img src="images/index_69.gif" width="61" height="56" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="5" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="images/index_70.gif" width="381" height="36" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="36" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/index_71.gif" width="197" height="15" alt=""></td>
<td colspan="2">
<a href="http://jogadesign.designstudioice.nl/" target="main">
<img src="images/jogadesign.gif" width="77" height="6" border="0" alt=""></a></td>
<td colspan="3" rowspan="2">
<img src="images/index_73.gif" width="107" height="15" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="6" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/index_74.gif" width="77" height="9" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="9" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="90" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="197" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="61" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="16" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="11" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="48" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="48" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="5" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="72" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="2" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="2" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="3" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="4" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="21" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="12" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="5" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="6" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="6" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="2" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="2" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="4" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="3" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="5" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="9" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="6" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="19" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="37" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="91" height="1" alt=""></td>
<td></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</center>
</html>

home:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-color: #b7b7b7;
background-image: url(images/s.jpg);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {
font-size: 16px;
font-family: "Abadi MT Condensed";
color: #d7d7d7;
}
-->
</style></head>

<body>
<table width="376" height="264" border="0">
<tr>
<td height="260"><p class="style1">Welkom op bandage,</p>
<p class="style1">Je vraagt je misschien af, waarom en site over spyware? Het antwoord is eigenlijk vrij simpel. Terwijl je aan het surfen bent op internet en je klikt op een reclame-advertentie, is de kans groot dat je systeem besmet is met spyware. Spyware zit overal en bijna 9 op de 10 pc's is besmet, daarom vind je hier allerlei programmas en tips om je te beschermen. Kijk eens rond en als het dan nog niet duidelijk is, neem dan contact met mij op.</p>
<p class="style1">jonas</p></td>
</tr>
</table>
</body>
</html>




help mij aub!:bow:

bubsy119
27 August 2006, 14:52
Zet bij elke link die in het iframe moet openen target="iframe"
ipv "main"

Jelle
27 August 2006, 14:53
Hier (http://www.handleidinghtml.nl/html/frames/frames05.html) vind je een mooie uitleg over het openen van pagina's in een iframe ;)

Je gebruikt de naam van het iframe om in het target attribuut van de link te gebruiken. Daarvoor moet je geen underscore (_) gebruiken, dat moet alleen bij de standaard gedefinieerde namen (_self, _parent, _top en _blank). Het lijkt me ook niet zo slim om je iframe iframe te noemen, kwestie van problemen te vermijden.

Main als target bij externe links bestaat ook niet en staat nergens bij een name attribuut van bv. een iframe gedefinieerd. Ik denk dat je die wilt laten openen in een nieuw venster, dan moet je _blank gebruiken in het target attribuut.

Joga
27 August 2006, 15:10
Zet bij elke link die in het iframe moet openen target="iframe"
ipv "main"
het gaat niet over mijn links hé :) maar over mijn navigatie ;)
@jelle: bedankt kga het eens proberen

Joga
27 August 2006, 15:29
ok bedankt jelle :good: ik heb de naam van mijn iframe verandert en mijn main verandert in _blank, nu gaat het wel :good: