Det er meningen, at de diverse links skal åbnes i et nyt pop-up vindue...
Jeg kan lige vedlægge koden, til min mai. html, hvor linksene ligger.
Den er lidt lang, men her kommer den :
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 5">
<title>
www.monoplane.dk</title> <style media="screen" type="text/css"><!--
#layer1 { position: absolute; top: 466px; left: 145px; width: 99px; height: 100px; visibility: visible }
#layer2 { position: absolute; top: 23px; left: 6px; width: 68px; height: 43px; visibility: visible }
#layer3 { position: absolute; top: 22px; left: 76px; width: 102px; height: 35px; visibility: visible }
#layer4 { position: absolute; top: 22px; left: 170px; width: 94px; height: 40px; visibility: visible }
#layer5 { position: absolute; top: 22px; left: 245px; width: 105px; height: 42px; visibility: visible }
#layer6 { position: absolute; top: 22px; left: 338px; width: 124px; height: 44px; visibility: visible }
#layer7 { position: absolute; top: 22px; left: 444px; width: 117px; height: 39px; visibility: visible }
#layer8 { position: absolute; top: 22px; left: 551px; width: 117px; height: 38px; visibility: visible }
#layer9 { position: absolute; top: 466px; left: 503px; width: 120px; height: 41px; visibility: visible }
#layer10 { position: absolute; top: 469px; left: 28px; width: 129px; height: 33px; visibility: visible }
--></style>
<csscriptdict>
<script><!--
CSInit = new Array;
function CSScriptInit() {
if(typeof(skipPage) != "undefined") { if(skipPage) return; }
idxArray = new Array;
for(var i=0;i<CSInit.length;i++)
idxArray[i] = i;
CSAction2(CSInit, idxArray);}
function CSClickReturn () {
var bAgent = window.navigator.userAgent;
var bAppName = window.navigator.appName;
if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
return true; // dont follow link
else return false; // dont follow link
}
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
var curDoc = ly ? ly.document : document; var elem = curDoc[n];
if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
return elem;
}
function CSButtonReturn () {
var bAgent = window.navigator.userAgent;
var bAppName = window.navigator.appName;
if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
return false; // follow link
else return true; // follow link
}
CSIm = new Object();
function CSIShow(n,i) {
if (document.images) {
if (CSIm[n]) {
var img = (!IsIE()) ? CSFindElement(n,0) : document[n];
if (img && typeof(CSIm[n][i].src) != "undefined") {img.src = CSIm[n][i].src;}
if(i != 0)
self.status = CSIm[n][3];
else
self.status = " ";
return true;
}
}
return false;
}
function CSILoad(action) {
im = action[1];
if (document.images) {
CSIm[im] = new Object();
for (var i=2;i<5;i++) {
if (action[i] != '') { CSIm[im][i-2] = new Image(); CSIm[im][i-2].src = action[i]; }
else CSIm[im][i-2] = 0;
}
CSIm[im][3] = action[5];
}
}
CSStopExecution = false;
function CSAction(array) {
return CSAction2(CSAct, array);
}
function CSAction2(fct, array) {
var result;
for (var i=0;i<array.length;i++) {
if(CSStopExecution) return false;
var actArray = fct[array[i]];
if(actArray == null) return false;
var tempArray = new Array;
for(var j=1;j<actArray.length;j++) {
if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
if(actArray[j][0] == "VAR") {
tempArray[j] = CSStateArray[actArray[j][1]];
}
else {
if(actArray[j][0] == "ACT") {
tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
}
else
tempArray[j] = actArray[j];
}
}
else
tempArray[j] = actArray[j];
}
result = actArray[0](tempArray);
}
return result;
}
CSAct = new Object;
// OpenPopUp 1.4 action by Nate Baldwin,
www.mindpalette.com, copyright 2002
function MPOpenPopup(action) {
var posX = 0;
var posY = 0;
if (action[4] == true) {
posX = ((screen.availWidth/2)-(action[2]/2));
posY = ((screen.availHeight/2)-(action[3]/2));
} else {
posX = action[12];
posY = action[13];
}
if (action[16] == true) {
posX = 0;
posY = 0;
action[2] = screen.availWidth;
action[3] = screen.availHeight;
}
for (i=5; i<12; i++) {
action[i] == true ? action[i] = "yes" : action[i] = "no";
}
var windowOptions = "";
windowOptions += "width=" + action[2];
windowOptions += ",height=" + action[3];
windowOptions += ",resizable=" + action[11];
windowOptions += ",scrollbars=" + action[5];
windowOptions += ",menubar=" + action[6];
windowOptions += ",toolbar=" + action[9];
windowOptions += ",directories=" + action[7];
windowOptions += ",location=" + action[10];
windowOptions += ",status=" + action[8];
windowOptions += ",left=" + posX;
windowOptions += ",top=" + posY;
window.open(action[15], action[1], windowOptions);
if (action[14] != "" && action[14] != "#" && action[14] != "(EmptyReference!)" && action[14] != "(Empty Reference!)")
window.location = action[14];
}
// --></script>
</csscriptdict>
<csactiondict>
<script><!--
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button',/*URL*/'buttons/newsoff.gif',/*URL*/'buttons/newson.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button2',/*URL*/'buttons/aboutoff.gif',/*URL*/'buttons/abouton.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button3',/*URL*/'buttons/musicoff.gif',/*URL*/'buttons/musicon.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button4',/*URL*/'buttons/soundoff.gif',/*URL*/'buttons/soundon.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button5',/*URL*/'buttons/contactoff.gif',/*URL*/'buttons/contacton.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button6',/*URL*/'buttons/biooff.gif',/*URL*/'buttons/bioon.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button7',/*URL*/'buttons/touroff.gif',/*URL*/'buttons/touron.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button8',/*URL*/'buttons/picturesoff.gif',/*URL*/'buttons/pictureson.gif',/*URL*/'','');
CSAct[/*CMP*/ '582C890'] = new Array(MPOpenPopup,'PopUp1',660,498,true,false,false,false,false,false,false,false,'','',/*URL*/ '(Empty Reference!)',/*URL*/ 'news/mainnews.html',false);
CSAct[/*CMP*/ '5D68501'] = new Array(MPOpenPopup,'PopUp2',660,498,true,false,false,false,false,false,false,false,'','',/*URL*/ '(Empty Reference!)',/*URL*/ 'about/mainabout.html',false);
CSAct[/*CMP*/ '5E44832'] = new Array(MPOpenPopup,'PopUp3',660,498,true,false,false,false,false,false,false,true,'','',/*URL*/ '#',/*URL*/ 'music/mainmusic.html',false);
CSAct[/*CMP*/ '5EDEA43'] = new Array(MPOpenPopup,'PopUp4',660,498,true,false,false,false,false,false,false,false,'','',/*URL*/ '#',/*URL*/ 'pics/mainpics.html',false);
CSAct[/*CMP*/ '5F3F254'] = new Array(MPOpenPopup,'PopUp5',660,498,true,false,false,false,false,false,false,false,'','',/*URL*/ '#',/*URL*/ 'tour/maintour.html',false);
CSAct[/*CMP*/ '5F9A735'] = new Array(MPOpenPopup,'PopUp6',660,498,true,false,false,false,false,false,false,false,'','',/*URL*/ '#',/*URL*/ 'biopress/mainbio.html',false);
CSAct[/*CMP*/ '60347F6'] = new Array(MPOpenPopup,'PopUp7',660,498,true,false,false,false,false,false,false,false,'','',/*URL*/ '#',/*URL*/ 'contact/maincontact.html',false);
// --></script>
</csactiondict>
<csactions>
<csaction name="582C890" class="Open Popup" type="onevent" val0="PopUp1" val1="660" val2="498" val3="true" val4="false" val5="false" val6="false" val7="false" val8="false" val9="false" val10="false" val11="" val12="" val13="(Empty Reference!)" val14="news/mainnews.html" val15="false">
<csaction name="5D68501" class="Open Popup" type="onevent" val0="PopUp2" val1="660" val2="498" val3="true" val4="false" val5="false" val6="false" val7="false" val8="false" val9="false" val10="false" val11="" val12="" val13="(Empty Reference!)" val14="about/mainabout.html" val15="false">
<csaction name="5E44832" class="Open Popup" type="onevent" val0="PopUp3" val1="660" val2="498" val3="true" val4="false" val5="false" val6="false" val7="false" val8="false" val9="false" val10="true" val11="" val12="" val13="#" val14="music/mainmusic.html" val15="false">
<csaction name="5EDEA43" class="Open Popup" type="onevent" val0="PopUp4" val1="660" val2="498" val3="true" val4="false" val5="false" val6="false" val7="false" val8="false" val9="false" val10="false" val11="" val12="" val13="#" val14="pics/mainpics.html" val15="false">
<csaction name="5F3F254" class="Open Popup" type="onevent" val0="PopUp5" val1="660" val2="498" val3="true" val4="false" val5="false" val6="false" val7="false" val8="false" val9="false" val10="false" val11="" val12="" val13="#" val14="tour/maintour.html" val15="false">
<csaction name="5F9A735" class="Open Popup" type="onevent" val0="PopUp6" val1="660" val2="498" val3="true" val4="false" val5="false" val6="false" val7="false" val8="false" val9="false" val10="false" val11="" val12="" val13="#" val14="biopress/mainbio.html" val15="false">
<csaction name="60347F6" class="Open Popup" type="onevent" val0="PopUp7" val1="660" val2="498" val3="true" val4="false" val5="false" val6="false" val7="false" val8="false" val9="false" val10="false" val11="" val12="" val13="#" val14="contact/maincontact.html" val15="false">
</csactions>
</head>
<body bgcolor="D95825" body scroll="no" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" onload="CSScriptInit();">
<p></p>
<div id="layer2">
<csobj w="64" h="26" t="Button" ht="buttons/newson.gif" csclick="582C890"><a href="#" onmouseover="return CSIShow(/*CMP*/'button',1)" onmouseout="return CSIShow(/*CMP*/'button',0)" onclick="CSAction(new Array(/*CMP*/'582C890'));return CSClickReturn()"><img src="buttons/newsoff.gif" width="64" height="26" name="button" border="0"></a></csobj></div>
<div id="layer3">
<csobj w="88" h="27" t="Button" ht="buttons/abouton.gif" csclick="5D68501"><a href="#" onmouseover="return CSIShow(/*CMP*/'button2',1)" onmouseout="return CSIShow(/*CMP*/'button2',0)" onclick="CSAction(new Array(/*CMP*/'5D68501'));return CSClickReturn()"><img src="buttons/aboutoff.gif" width="88" height="27" name="button2" border="0"></a></csobj></div>
<div id="layer4">
<csobj w="69" h="27" t="Button" ht="buttons/musicon.gif" csclick="5E44832"><a href="#" onmouseover="return CSIShow(/*CMP*/'button3',1)" onmouseout="return CSIShow(/*CMP*/'button3',0)" onclick="CSAction(new Array(/*CMP*/'5E44832'));return CSClickReturn()"><img src="buttons/musicoff.gif" width="69" height="27" name="button3" border="0"></a></csobj></div>
<div id="layer10">
<img src="buttons/visitor.gif" width="118" height="18" border="0"></div>
<p><img src="midt1.jpg" width="660" height="498" alt="
www.monoplane.dk"></p> <div id="layer9">
<csobj w="102" h="26" t="Button" ht="buttons/soundon.gif"><a href="#" onmouseover="return CSIShow(/*CMP*/'button4',1)" onmouseout="return CSIShow(/*CMP*/'button4',0)" onclick="return CSButtonReturn()"><img src="buttons/soundoff.gif" width="102" height="26" name="button4" border="0"></a></csobj></div>
<div id="layer8">
<csobj w="102" h="27" t="Button" ht="buttons/contacton.gif" csclick="60347F6"><a href="#" onmouseover="return CSIShow(/*CMP*/'button5',1)" onmouseout="return CSIShow(/*CMP*/'button5',0)" onclick="CSAction(new Array(/*CMP*/'60347F6'));return CSClickReturn()"><img src="buttons/contactoff.gif" width="102" height="27" name="button5" border="0"></a></csobj></div>
<div id="layer7">
<csobj w="100" h="27" t="Button" ht="buttons/bioon.gif" csclick="5F9A735"><a href="#" onmouseover="return CSIShow(/*CMP*/'button6',1)" onmouseout="return CSIShow(/*CMP*/'button6',0)" onclick="CSAction(new Array(/*CMP*/'5F9A735'));return CSClickReturn()"><img src="buttons/biooff.gif" width="100" height="27" name="button6" border="0"></a></csobj></div>
<div id="layer6">
<csobj w="100" h="27" t="Button" ht="buttons/touron.gif" csclick="5F3F254"><a href="#" onmouseover="return CSIShow(/*CMP*/'button7',1)" onmouseout="return CSIShow(/*CMP*/'button7',0)" onclick="CSAction(new Array(/*CMP*/'5F3F254'));return CSClickReturn()"><img src="buttons/touroff.gif" width="100" height="27" name="button7" border="0"></a></csobj></div>
<div id="layer5">
<csobj w="86" h="27" t="Button" ht="buttons/pictureson.gif" csclick="5EDEA43"><a href="#" onmouseover="return CSIShow(/*CMP*/'button8',1)" onmouseout="return CSIShow(/*CMP*/'button8',0)" onclick="CSAction(new Array(/*CMP*/'5EDEA43'));return CSClickReturn()"><img src="buttons/picturesoff.gif" width="86" height="27" name="button8" border="0"></a></csobj></div>
<div id="layer1">
<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<a href="
http://sm7.sitemeter.com/stats.asp?site=sm7monocounter" target="_top">
<img src="
http://sm7.sitemeter.com/meter.asp?site=sm7monocounter" alt="Site Meter" border=0></a>
<!--WEBBOT bot="HTMLMarkup" Endspan -->
</body>
</html>
------------------------------------------------------------------------------
Der skal lige siges til, at indeks.html og main.html (som er den kode ovenfor), ligger på samme niveau.
Så har jeg en mappe, der hedder buttons, med knapperne på forsiden + mapper med indholdet af de diverse undersider....
Håber du kan gennemskue koden.....