Jump to content
  • 0

много выпадающих меню из отдельного файла


erange
 Share

Question

Здравздвуте! )

есть табличка со большим количеством ячеек. нужно что бы при клике на ячейку выпадало меню,

созданное в отдельном файле.

пример таблицы:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style>
body {
background-color: Black;
}
.tab {
background-color: black;
margin-top: 1%;
border: 2px solid #339900;
}
.tr{
background-color: #333333;
border: 1px solid #00FF00;
}
H1 {
color: #00FF00;
font-size: 14px;
font-family: serif;
margin:0px;
padding:0px 1px 0px 1px;
}
H2 {
color: red;
font-size: 15px;
margin:0px;
padding:0px;
}
</style>
</head>

<body>
<table class="tab" cellpadding="0">
<tr>
<td class="tr"><H2>#</H></td>
<td class="tr"><H1>001</H></td>
<td class="tr"><H1>002</H></td>
<td class="tr"><H1>003</H></td>
<td class="tr"><H1>004</H></td>
<td class="tr"><H1>005</H></td>
<tr>
<td class="tr"><H2>1</H></td>
<td class="tr"></td>
<td class="tr"></td>
<td class="tr"></td>
<td class="tr"></td>
<td class="tr"></td>
<tr>
<td class="tr"><H2>3</H></td>
<td class="tr"></td>
<td class="tr"></td>
<td class="tr"></td>
<td class="tr"></td>
<td class="tr"></td>
</body>
</html>

а это та мненюшка, что расположена в отдельном файле "menu_01.js":

var NoOffFirstLineMenus=5;
var LowBgColor='white';
var LowSubBgColor='white';
var HighBgColor='black';
var HighSubBgColor='black';
var FontLowColor='black';
var FontSubLowColor='black';
var FontHighColor='white';
var FontSubHighColor='white';
var BorderColor='black';
var BorderSubColor='black';
var BorderWidth=1;
var BorderBtwnElmnts=1;
var FontFamily="arial,comic sans ms,technical"
var FontSize=9;
var FontBold=1;
var FontItalic=0;
var MenuTextCentered='left';
var MenuCentered='left';
var MenuVerticalCentered='top';
var ChildOverlap=.2;
var ChildVerticalOverlap=.2;
var StartTop=240;
var StartLeft=1;
var VerCorrect=0;
var HorCorrect=0;
var LeftPaddng=3;
var TopPaddng=2;
var FirstLineHorizontal=0;
var MenuFramesVertical=1;
var DissapearDelay=1000;
var TakeOverBgColor=1;
var FirstLineFrame='navig';
var SecLineFrame='space';
var DocTargetFrame='space';
var TargetLoc='';
var HideTop=0;
var MenuWrap=1;
var RightToLeft=0;
var UnfoldsOnClick=0;
var WebMasterCheck=0;
var ShowArrow=1;
var KeepHilite=1;
var Arrws=['tri.gif',5,10,'tridown.gif',10,5,'trileft.gif',5,10];

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}




Menu1=new Array("Home","http://www.woscripts.com","",0,20,138);

Menu2=new Array("News","blank.htm","",2);
Menu2_1=new Array("General","blank.htm","",5,20,150);
Menu2_1_1=new Array("CNN","http://www.cnn.com","",0,20,150);
Menu2_1_2=new Array("ABCNews","http://www.abcnews.com","",0);
Menu2_1_3=new Array("MSNBC","http://www.msnbc.com","",0);
Menu2_1_4=new Array("CBSNews","http://www.cbsnews.com","",0);
Menu2_1_5=new Array("Canadian News","http://news.bbc.co.uk","",2);
Menu2_1_5_1=new Array("Vancouver Sun","http://www.vancouversun.com","",0,20,150);
Menu2_1_5_2=new Array("CTV News","http://www.ctvnews.com","",0);
Menu2_2=new Array("Technology","blank.htm","",3);
Menu2_2_1=new Array("TechWeb","http://www.techweb.com","",0,20,200);
Menu2_2_2=new Array("News.com","http://www.news.com","",0);
Menu2_2_3=new Array("Wired News","http://www.wired.com","",0);

Menu3=new Array("Search Engines","blank.htm","",3);
Menu3_1=new Array("Altavista","http://www.altavista.com","",0,20,150);
Menu3_2=new Array("Google","http://www.google.com","",0);
Menu3_3=new Array("Yahoo","http://www.yahoo.com","",0);

Menu4=new Array("Webmaster","blank.htm","",4);
Menu4_1=new Array("Dynamic Drive","http://www.dynamicdrive.com","",0,20,180);
Menu4_2=new Array("JavaScript Kit","http://www.javascriptkit.com","",0);
Menu4_3=new Array("Freewarejava","http://www.freewarejava.com","",0);
Menu4_4=new Array("Web Review","http://www.webreview.com","",0);

Menu5=new Array("Other","java script:top.location.href='blank.htm'","",1);
Menu5_1=new Array("Author's Site","http://www.burmees.nl/","",0,20,140);

подскажите пожалуйста, как это реализовать

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy