I would like to add something like a HREF to an ID at the top of my webpage to a JAVASCRIPT HREF im useing on all my menu links.
The DIV with the ID looks like this:
The JAVASCRIPT looks like this:<div id="backing">
<span id="top"><img height="545" alt="" src="jeffFist.jpg" border="0">
</span>
</div>
This type of link works great:<script language="Javascript">
<!--
{
layerRef = "document.all['";
endLayerRef = "']";
styleRef = ".style";
}
layerArray = new Array ("frontstuff","aboutstuff","contactstuff","zinestuff","linksstuff","optionsstuff","newsstuff","extrastuff1","extrastuff2","extrastuff3","extrastuff4");
function showMenu(layerName)
{
eval(layerRef + layerName + endLayerRef + styleRef + ".visibility = 'visible'");
layerName
for (i=0; i<layerArray.length; i++)
{
if (layerName != layerArray[i])
{
eval(layerRef + layerArray[i] + endLayerRef + styleRef + ".visibility = 'hidden'");
}
}
}
-->
</script>
I would like to add the #top reference to my links useing the JAVASCRIPT itself or maybe some simple HREF format Im missing. The standard menu links look like this:<a href="#top"></a>
<a href="javascript:showMenu('contactstuff');">CONTACT</a>
Sorry if my question is formatted wrong or posted in the wrong place.
Thanks in advance for any help.
![]()
![]()
![]()



Reply With Quote

Bookmarks