Vis indhold
Hejsa Eksperter,Denne funktion skulle gerne vise indholdet af tabellen når der bliver klikket på linket samt skjule det ved endnu et klik, men jeg kan ikke få det til at fungere, hvad kan der være galt?
<script>
<!--
var ImgArray = new Array();
ImgArray[1] = new Image; ImgArray[1].src = 'Images/up.gif';
ImgArray[2] = new Image; ImgArray[2].src = 'Images/down.gif';
function doThis(menu){
obj_img = eval("document."+menu+"_img")
obj = getElement(menu).style
if (obj.position == 'absolute'){
obj.position = 'relative';
obj.visibility = 'visible';
obj_img.src = ImgArray[1].src;
} else {
obj.position = 'absolute';
obj.visibility = 'hidden';
obj_img.src = ImgArray[2].src;
}
}
</script>
<Table>
<tr>
<td colspan="2" bgcolor="#F9F9F9"><strong><%=strTxtSHOP105%>:</strong><a href="java script:void(0);" onclick="java script:doThis('show_url')"><img src="Images/down.gif" name="show_url_img" width="20" height="20" border="0"></a>
<table border="0" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF" id="show_url" style="position:absolute;visibility:hidden">
<tr>
<td width="80"><%=strTxtGenImage%> 1:</td>
<td><input type="text" name="inpURL1" id=inp"URL1" size="30" value="" class="form"><img src="Images/Icons/gallery.gif" width="16" height="16" align="absmiddle" onclick="openAsset('inpURL1')" class="hand"> </td>
<td><%=strTxtGenImage%> 2:</td>
<td><input type="text" name="inpURL2" id=inp"URL2" size="30" value="" class="form"><img src="Images/Icons/gallery.gif" width="16" height="16" align="absmiddle" onclick="openAsset('inpURL2')" class="hand"> </td>
</tr>
</table>
</td>
</tr>
</table>
