This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2006 > Drop down menu





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Drop down menu
lknope

2006-02-24, 10:15 am

Hello everyone. I've got a drop down menu on my site but I need to create
another one on the same page. By itself it works fine but when I create
another one it messes them up and says there are errors. I think it's got
something to do with the headers but I'm not sure. Here's the code. HELP
PLEASE! What's in the code that's not allowing me to create to menus on the
same page?

var refer=true;
function combo() {
if (refer) {
document.all.contents.style.visibility="visible";
refer=false;
}
else {
document.all.contents.style.visibility="hidden";
refer=true;
}
}
// End -->
</script>


</head>

<body>
<BODY>

<table align="center">
<tr><td>
<table width="200" border="1" cellspacing="0" cellpadding="0"
bordercolor="#d8d8d8">
<tr>
<td bgcolor="d8d8d8">
<font face="verdana" size="2"> Scanners</font>
</td>
<td align="right" width="21">
<img src="img/combo_arrow.gif" name="combo_arrow" width="21" height="21"
alt="" border="0" onclick="combo()" ></td>
</tr>
</table>
<div id="contents" style="position:absolute; left:?px; top:?px; width:?px;
height:?px; z-index:1; visibility:hidden">
<table width="200" border="1" cellspacing="0" cellpadding="0"
bordercolor="#d8d8d8">
<tr>
<td bgcolor="d8d8d8">
<font face="verdana" size="2">
<a href="http://www.edocwarehouse.com/CanonProduct.htm"
target="_parent"> <img src="img/bullet2.gif" border="0" width="8" height="8">
Canon</a><br>
<a href="http://www.edocwarehouse.com/FujitsuProduct.htm"
target="_parent"> <img src="img/bullet2.gif" border="0" width="8" height="8">
Fujitsu</a><br>
<a href="http://www.edocwarehouse.com/BellHowellProduct.htm"
target="_parent"> <img src="img/bullet2.gif" border="0" width="8" height="8">
Bell & Howell</a><br></font>
<a href="http://www.edocwarehouse.com/KodakProduct.htm"
target="_parent"> <img src="img/bullet2.gif" border="0" width="8" height="8">
kodak</a><br>
</td>
</tr>
</table>



Murray *TMM*

2006-02-24, 10:15 am

Can you post a link to the page, please?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"lknope" <webforumsuser@macromedia.com> wrote in message
news:dtl2md$co8$1@forums.macromedia.com...
> Hello everyone. I've got a drop down menu on my site but I need to create
> another one on the same page. By itself it works fine but when I create
> another one it messes them up and says there are errors. I think it's got
> something to do with the headers but I'm not sure. Here's the code. HELP
> PLEASE! What's in the code that's not allowing me to create to menus on
> the
> same page?
>
> var refer=true;
> function combo() {
> if (refer) {
> document.all.contents.style.visibility="visible";
> refer=false;
> }
> else {
> document.all.contents.style.visibility="hidden";
> refer=true;
> }
> }
> // End -->
> </script>
>
>
> </head>
>
> <body>
> <BODY>
>
> <table align="center">
> <tr><td>
> <table width="200" border="1" cellspacing="0" cellpadding="0"
> bordercolor="#d8d8d8">
> <tr>
> <td bgcolor="d8d8d8">
> <font face="verdana" size="2"> Scanners</font>
> </td>
> <td align="right" width="21">
> <img src="img/combo_arrow.gif" name="combo_arrow" width="21"
> height="21"
> alt="" border="0" onclick="combo()" ></td>
> </tr>
> </table>
> <div id="contents" style="position:absolute; left:?px; top:?px; width:?px;
> height:?px; z-index:1; visibility:hidden">
> <table width="200" border="1" cellspacing="0" cellpadding="0"
> bordercolor="#d8d8d8">
> <tr>
> <td bgcolor="d8d8d8">
> <font face="verdana" size="2">
> <a href="http://www.edocwarehouse.com/CanonProduct.htm"
> target="_parent"> <img src="img/bullet2.gif" border="0" width="8"
> height="8">
> Canon</a><br>
> <a href="http://www.edocwarehouse.com/FujitsuProduct.htm"
> target="_parent"> <img src="img/bullet2.gif" border="0" width="8"
> height="8">
> Fujitsu</a><br>
> <a href="http://www.edocwarehouse.com/BellHowellProduct.htm"
> target="_parent"> <img src="img/bullet2.gif" border="0" width="8"
> height="8">
> Bell & Howell</a><br></font>
> <a href="http://www.edocwarehouse.com/KodakProduct.htm"
> target="_parent"> <img src="img/bullet2.gif" border="0" width="8"
> height="8">
> kodak</a><br>
> </td>
> </tr>
> </table>
>
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews