Autor Zpráva
Anonymní
Profil *
Stáhl jsem si tohle menu a chtěl byc se zeptat jestli mohu určit do kterého Iframu chci otevřít odkaz. pls odpovětzte. Díky.
<SCRIPT language=JavaScript1.2>
td_1 = "Žáci"
url_1 = "new.htm"
target_1 = "main"
td_2 = "Ucitele"
url_ = "ucitele.htm"
td_3 = "Links"
td_3_1 = "First Link"
url_3_1 = "pages.htm"
td_3_2 = "Second Link"
url_3_2 = "pages.htm"
td_3_3 = "Third Link"
url_3_3 = "pages.htm"
td_3_4 = "Fourth Link"
url_3_4 = "pages.htm"
td_3_5 = "Fifth Link"
url_3_5 = "pages.htm"
td_3_6 = "Sixth Link"
url_3_6 = "pages.htm"
td_3_7 = "Seventh Link"
td_4 = "Top Picks"
td_4_1 = "First Pick"
url_4_1 = "pages.htm"
td_4_2 = "Second Pick"
url_4_2 = "pages.htm"
td_4_3 = "Third Pick"
url_4_3 = "pages.htm"
td_4_4 = "Fourth Pick"
url_4_4 = "pages.htm"
td_4_5 = "Fifth Pick"
url_4_5 = "pages.htm"
td_4_6 = "Sixth Pick"
url_4_6 = "pages.htm"
td_4_7 = "Seventh Pick"
url_4_7 = "pages.htm"
td_4_8 = "Eighth Pick"
url_4_8 = "pages.htm"
td_4_9 = "Ninth Pick"
url_4_9 = "pages.htm"
td_4_10 = "Tenth Pick"
url_4_10 = "pages.htm"
td_5 = "Website Info"
td_5_1 = "About The Site"
url_5_1 = "pages.htm"
td_5_2 = "Webmasters"
url_5_2 = "pages.htm"
td_5_3 = "Forum"
url_5_3 = "pages.htm"
td_5_4 = "Guest book"
url_5_4 = "pages.htm"
td_6 = "Contact Me"
url_6 = "pages.htm"
td_7 = "Help"
url_7 = "pages.htm"

</SCRIPT>

<STYLE type=text/css>
PRE {
COLOR: Blue
}
TABLE.menu {
BORDER-RIGHT: White 1px solid;
BORDER-TOP: White 1px solid;
BORDER-BOTTOM: White 1px solid;
BORDER-LEFT: White 1px solid;
VISIBILITY: hidden;
CURSOR: pointer;
POSITION: absolute
}
#mainmenu {
POSITION: static
}
TABLE.menu TD {
COLOR: White; /* Must be the same as tdBgColor in MScript.js */
BACKGROUND-COLOR: #FF6D1D; /* Must be the same as tdBgColor in MScript.js */
BORDER-RIGHT: 0px;
BORDER-TOP: 0px;
BORDER-LEFT: 0px;
BORDER-BOTTOM: 0px;
PADDING-RIGHT: 8px;
PADDING-LEFT: 8px;
PADDING-BOTTOM: 2px;
PADDING-TOP: 0px;
FONT-SIZE: 8pt;
FONT-FAMILY: Arial;
WHITE-SPACE: nowrap;
}
</STYLE>
</HEAD>

<BODY background="background.gif">
<SCRIPT language=JavaScript1.2>
////////////////////Please leave this notice//////////////////////
// //
// Dynamic JS Menu 1.0 //
// By Pat Libby (Libbypa@maine.rr.com) //
// http://dragonsbane1.topcities.com //
// It works only with IE5.0(++) and Netscape6.0(++) //
// Free to use! //
// //
////////////////////Last modified 01-31-2003//////////////////////

// Modify following four lines to customize your menu
var tdColor="White"; // menu item text color
var tdBgColor="#FF6D1D"; // menu item background color
var hlColor="White"; // highlight text color
var hlBgColor="#FEA441"; // highlight background color
// After change, modify same values in your DropDown.css file

////////////////////DO NOT MODIFY BELOW HERE//////////////////////
var md=250;
var ti=-1;
var oTd=new Object;
oTd=null;

function doMenu(td){
clearTimeout(ti);
td.style.backgroundColor=hlBgColor;
td.style.color=hlColor;
var i;
var sT="";
var tda=new Array();
tda=td.id.split("_");
if(oTd!=null){
var tdo=new Array();
tdo=oTd.id.split("_");
for(i=1;i<tdo.length;i++){
sT+="_"+tdo[i];
if(tdo[i]!=tda[i]){
document.getElementById("td"+sT).style.backgroundColor=tdBgColor;
document.getElementById("td"+sT).style.color=tdColor;
if(document.getElementById("tbl"+sT)!=null)
document.getElementById("tbl"+sT).style.visibility="hidden";
}
}
}
oTd=td;
sT="tbl";
for(i=1;i<tda.length;i++)
sT+="_"+tda[i];
if(document.getElementById(sT)!=null)
document.getElementById(sT).style.visibility="visible";

}

function clearMenu(){
if(oTd!=null){
var tdo=new Array();
tdo=oTd.id.split("_");
var sT="";
for(var i=1;i<tdo.length;i++){
sT+="_"+tdo[i];
document.getElementById("td"+sT).style.backgroundColor=tdBgColor;
document.getElementById("td"+sT).style.color=tdColor;
if(document.getElementById("tbl"+sT)!=null)
document.getElementById("tbl"+sT).style.visibility="hidden";
}
oTd=null;
}
}

function runMenu(strURL){
location.href=strURL;
}

var tt="";
var sT="";
var pT=new Array();
var tA=new Array();

function getCoord(st){
tA=st.split("_");
if(tA.length>2){
tA=tA.slice(0,-1);
tt=tA.join("_");
return (document.getElementById("tbl"+tt).offsetTop+document.getElementById(" td"+st).offsetTop+4)+"px;left:"+
(document.getElementById("tbl"+tt).offsetLeft+document.getElementById( "td"+st).offsetWidth-2)+"px\">";
}
return (document.getElementById("mainmenu").offsetTop+document.getElementById ("td"+st).offsetHeight-2)+"px;left:"+
(document.getElementById("mainmenu").offsetLeft+document.getElementByI d("td"+st).offsetLeft+5)+"px\">";
}

var sH="<table class=\"menu\" id=\"mainmenu\" cellspacing=\"0\"><tr>";
var p=0;
var j=0;
while(eval("typeof(td_"+ ++j +")!=\"undefined\"")){
sH+="<td id=\"td_"+j+"\" onmouseover=\"doMenu(this)\" onmouseout=\"ti=setTimeout('clearMenu()',md)\"";
sH+=(eval("typeof(url_"+j+")!=\"undefined\""))?" onclick=\"runMenu('"+eval("url_"+j)+"')\">":">";
sH+=eval("td_"+j)+"</td>";
if (eval("typeof(td_"+j+"_1)!=\"undefined\""))
pT[p++]="_"+j;
}
sH+="</tr></table>";
document.write(sH);
for(var q=0;typeof(pT[q])!="undefined";q++){
sT=pT[q];
sH="";
j=0;
sH+="<table class=\"menu\" id=\"tbl"+sT+"\" cellspacing=\"0\" style=\"top:"+getCoord(sT);
while (eval("typeof(td"+sT+"_"+ ++j +")!=\"undefined\"")){
sH+="<tr><td id=\"td"+sT+"_"+j+"\" onmouseover=\"doMenu(this)\" onmouseout=\"ti=setTimeout('clearMenu()',md)\"";
sH+=(eval("typeof(url"+sT+"_"+j+")!=\"undefined\""))?" onclick=\"runMenu('"+eval("url"+sT+"_"+j)+"')\">":">";
sH+=eval("td"+sT+"_"+j)+"</td></tr>";
if (eval("typeof(td"+sT+"_"+j+"_1)!=\"undefined\""))
pT[p++]=sT+"_"+j;
}
sH+="</table>";
document.write(sH);
}
document.getElementById("mainmenu").style.visibility="visible";
</SCRIPT>
Anonymní
Profil *
sorry ze jsem se ptal prisel jsem na to sam
Toto téma je uzamčeno. Odpověď nelze zaslat.

0