sEnte!
Power Member
Vou tentar explicar o que quero!!
Como podem ver aqui isto é um frame onde estou a direccionar para 2 páginas. O meu problema é quando abro a página correspondente ao frame "frame1XP" cujo código é
ele simplesmente abre no mesmo frame. Será que não dá para meter com que ele abra sempre para o outro frame.
Tipo tem 3 botões e queria que sempre que clicasse num botão diferente, ou até no mesmo, que ele fosse abrir no lugar do frame correspondente a "Pelouros"
Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>A frameset document</TITLE>
</HEAD>
<FRAMESET cols="20%,79%"border="0" frameborder="0" e framespacing="0">
<FRAMESET rows="*">
<FRAME src="file:///C:\Web/frame1XP.html">
</FRAMESET>
<FRAME src="file:///C:\Web/Pelouros.html">
</FRAMESET>
</HTML>
Código:
<html>
<head>
<meta http-equiv="Content-Language" content="pt">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nova página 5</title>
<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
return null;
}
// -->
</script>
</head>
<body bgcolor="#000080" onload="FP_preloadImgs(/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3A.jpg', /*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3B.jpg')">
<p><font size="5" color="#FFFFFF"> NEFLUC/AAC</font></p>
<p>
<img border="0" src="file:///C:/Web/NEFLUCAAC.jpg" width="141" height="178"></p>
<p><font size="5" color="#FFFFFF">Pelouros:</font></p>
<a href="file:///C:/Users/FidbecK/Desktop/New%20folder%20(2)/PelourosXP.html">
<img border="0" id="img1" src="file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button39.jpg" height="20" width="237" alt="Sistemas Informáticos e de Informação" fp-style="fp-btn: Metal Rectangle 5; fp-proportional: 0" fp-title="Sistemas Informáticos e de Informação" onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3A.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button39.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3B.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3A.jpg')"></a></a><p>
o mesmo
<img border="0" id="img2" src="file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3C.jpg" height="20" width="100" alt="Desporto" onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3D.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3C.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3E.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3D.jpg')" fp-style="fp-btn: Metal Rectangle 5; fp-proportional: 0" fp-title="Desporto"></p>
<p>
<img border="0" id="img3" src="file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3F.jpg" height="20" width="100" alt="Acção Social" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button40.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button3F.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img3',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button41.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img3',/*url*/'file:///C:/Users/FidbecK/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/FrontPageTempDir/button40.jpg')" fp-style="fp-btn: Metal Rectangle 5" fp-title="Acção Social"></p>
</p>
<p align="center"> </p>
</body>
</html>
Tipo tem 3 botões e queria que sempre que clicasse num botão diferente, ou até no mesmo, que ele fosse abrir no lugar do frame correspondente a "Pelouros"