Frames werken niet

Status
Niet open voor verdere reacties.

eric2001

Terugkerende gebruiker
Lid geworden
23 mrt 2001
Berichten
1.600
Hi, ik kom er even niet uit. Ik heb een javascript met een mooi menu. Dit wil ik in een apart frame bovenaan de pagina hebben, bij elke link die ik open. Ik heb dus gewoon twee frames gedefinieerd en als ik een link oproep wordt deze over de hele pagina gezet, dus weg menu. Ik roep ze als volgt op:

<td class=buttonNormal width="8%" align="center"
onmouseover="if( document.all ) { this.className='buttonHighlight' }"
onmouseOut="if( document.all ) { this.className='buttonNormal' }"
onmouseDown="if( document.all ) { this.className='buttonDown' }">
<a href="informatie.html" target="artikel">Informatie</a></td>

De mouse-code kun je vergeten, het gaat alleen om de target.

In het script staat wel: <base target="_self">. heeft dat ermee te maken?

bvd
Eric
 
Ja, dat _self moet je vervangen door artikel en dan zou het volgens mij moeten werken.

Grtz Rob
 
Nee Rob, dat had ik ook al geprobeerd maar dat werkt niet.
 
Had al een mailtje naar je gestuurd, maar zo kan het ook.

Hoe heb je je frames benoemd in de html van je framespagina ?
 
Mijn frames heten menu (voor het menu, bovenste frame en artikel)

De code (gedeeltelijk)

<html>
<head>
<title>Top cellen menu</title>
<link rel="STYLESHEET" type="text/css" href="css/druppels.css">

<style type="text/css">

.buttonNormal
{
PADDING-Bottom: 3px;
PADDING-TOP: 2px;
COLOR: #CCCCCC;
CURSOR: hand;
text-align: center;
BACKGROUND-COLOR: #CCFFCC;
font-size:12px;
}

.buttonHighlight
{
<!-- Achtergrond bij mouse over -->
PADDING-Bottom: 3px;
PADDING-TOP: 2px;
COLOR: red;
CURSOR: hand;
text-align: center;
BACKGROUND-COLOR: #ffff66;
font-size:12px;

}
.buttonDown
{
PADDING-Bottom: 1px;
PADDING-TOP: 4px;
COLOR: #FF9999;
CURSOR: hand;
font-size:12px;
}
.buttonCurrent
{
PADDING-Bottom: 3px;
PADDING-TOP: 2px;
BACKGROUND-COLOR: #CCCCCC;
COLOR: white;
font-size:12px;
}

</style>

<STYLE type=text/css>

A {
COLOR: black; FONT: 10pt Times New Roman; TEXT-DECORATION: none
}
A:hover {
COLOR: red
}
</STYLE>

<base target="artikel">
<!-- verander hierboven de target -->

</head>

<body background="images/backgrounds/druppels.jpg" width="100" height="100" alt="" border="0">


<table width="98%" cellspacing="0" cellpadding="0" border="1">
<tr>
<td class=buttonNormal width="8%" align="center"
onmouseover="if( document.all ) { this.className='buttonHighlight' }"
onmouseOut="if( document.all ) { this.className='buttonNormal' }"
onmouseDown="if( document.all ) { this.className='buttonDown' }">
<a href="home.html" target="artikel">Home</a></td>

<td class=buttonNormal width="8%" align="center"
onmouseover="if( document.all ) { this.className='buttonHighlight' }"
onmouseOut="if( document.all ) { this.className='buttonNormal' }"
onmouseDown="if( document.all ) { this.className='buttonDown' }">
<a href="informatie.html" target="artikel">Informatie</a></td>
 
<HTML>
<HEAD>
<TITLE>Definitie frames</TITLE>

</HEAD>

<FRAMESET ROWS="17%,83%" BORDER="0">
<FRAME NAME="menu" SRC="menu.html">
<FRAME NAME="artikel" SRC="artikel.html">
</FRAMESET>

</HTML>
 
Ik snap niet hoe het komt, maar het werkt nu.
In elk geval bedankt voor het meedenken.
Grtz,
Eric
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan