Hi there,
I have a number <div> tags that are dynamically generated by asp code.
I want to show the content of the div tag when an image is clicked on. I'm trying to
do this by showing and hiding the overflow of the tag.
This works great in IE but fails in FireFox
Can someone please help me with a firefox workaround.
You can see the page at
http://www.brewsterswaste.co.uk/new/areas covered.asp
<%
' Open a connection to the database
Set db = Server.CreateObject("ADODB
.Connectio
n")
db.Open session("SQL_STRING"),sess
ion("SQL_U
SERNAME"),
session("S
QL_PASSWOR
D")
MySQL = "Exec sp_lo0001"
set rs = db.execute(MySQL)
do until rs.eof = true
%>
<div id="layer_<%=rs("Location"
)%>" style="position:relative; height:24px; overflow:hidden;">
<!-- Location Header - SiteKeywords -->
<table width="100%" id="Content_Page_Layout" class="Content_Page_Layout
" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="9" height="20"><img src="images/general%20imag
es/table_l
eft.gif" width="9" height="20"></td>
<td height="20" width="100%" background="images/general
images/table_centre.gif"><
%=rs("Loca
tion")%></
td>
<td width="20" height="20"><a href="#" onclick="show_locations('l
ayer_<%=rs
("Location
")%>')" onMouseOut="MM_swapImgRest
ore()" onMouseOver="MM_swapImage(
'Image42',
'','images
/general%2
0images/ta
ble_down_b
utton_on.g
if',1)"><i
mg src="images/general%20imag
es/table_d
own_button
_off.gif" name="Image42" width="20" height="20" border="0"></a></td>
<td width="7" height="20"><img src="images/general%20imag
es/table_r
ight.gif" width="7" height="20"></td>
</tr>
</table>
<!-- Location Header - SiteKeywords -->
<!-- PostCodes - SiteKeywords -->
<table width="100%" id="Content_Page_Layout" class="Content_GreyArea" cellpadding="0" cellspacing="0" border="0">
<%
MySQL = "Exec sp_lo0002 @Location='" & rs("Location") & "'"
set prs = db.execute(MySQL)
do until prs.eof
%>
<tr>
<td nowrap><%=trim(prs("PostCo
de"))%></t
d>
<td valign="middle" nowrap> - </td>
<td nowrap>Local Authority</td>
<td width="100%"></td>
</tr>
<%
prs.movenext
loop
%>
</table>
<!-- PostCodes - SiteKeywords -->
</div>
<%
rs.movenext
loop
%>
Start Free Trial