WarHead
08-08-2007, 03:31 PM
I have a header user control in a master page where I want to use the AnyLink Drop Down Menu but I get the error
http://pbg.lestaging.com/js_error.gif
Home is the name of a menu array:
var home = new Array()
home[0]='<a href="spotlight.aspx">Spotlight</a>'
home[1]='<a href="news_insights.aspx">News and Insights</a>'
home[2]='<a href="calendar.aspx">Calendar of Events</a>'
//Contents for menu 2, and so on
var menu2 = new Array()
menu2[0]='<a href="learning_modules.aspx">Learning Modules</a>'
menu2[1]='<a href="library.aspx">Library</a>'
menu2[2]='<a href="learning_history.aspx">Learning History.</a>'
var menu3 = new Array()
menu3[0]='<a href="job_aids.aspx">Job Aids</a>'
menu3[1]='<a href="links.aspx">Links</a>'
The link calling the home drop down menu:
<a href="/index.aspx" onmouseover="dropdownmenu(this, event, home, '150px');" onmouseout="delayhidemenu();"><asp:ImageButton ImageUrl="/images/header/nav_home.gif" width="146" height="46" id="imgHome" runat="server" /></a>
Now this is the way the link is rendered:
<a href="/index.aspx" onmouseover="dropdownmenu(this, event, home, '150px');" onmouseout="delayhidemenu();"><input type="image" name="ctl00$Header2$imgHome" id="ctl00_Header2_imgHome" src="/images/header/nav_home-over.gif" style="height:46px;width:146px;border-width:0px;" /></a>
the ASP:Image button is rendered as an input type of image. Is this the problem? I don't see anything else that looks kooky...
Thanks for any help.
http://pbg.lestaging.com/js_error.gif
Home is the name of a menu array:
var home = new Array()
home[0]='<a href="spotlight.aspx">Spotlight</a>'
home[1]='<a href="news_insights.aspx">News and Insights</a>'
home[2]='<a href="calendar.aspx">Calendar of Events</a>'
//Contents for menu 2, and so on
var menu2 = new Array()
menu2[0]='<a href="learning_modules.aspx">Learning Modules</a>'
menu2[1]='<a href="library.aspx">Library</a>'
menu2[2]='<a href="learning_history.aspx">Learning History.</a>'
var menu3 = new Array()
menu3[0]='<a href="job_aids.aspx">Job Aids</a>'
menu3[1]='<a href="links.aspx">Links</a>'
The link calling the home drop down menu:
<a href="/index.aspx" onmouseover="dropdownmenu(this, event, home, '150px');" onmouseout="delayhidemenu();"><asp:ImageButton ImageUrl="/images/header/nav_home.gif" width="146" height="46" id="imgHome" runat="server" /></a>
Now this is the way the link is rendered:
<a href="/index.aspx" onmouseover="dropdownmenu(this, event, home, '150px');" onmouseout="delayhidemenu();"><input type="image" name="ctl00$Header2$imgHome" id="ctl00_Header2_imgHome" src="/images/header/nav_home-over.gif" style="height:46px;width:146px;border-width:0px;" /></a>
the ASP:Image button is rendered as an input type of image. Is this the problem? I don't see anything else that looks kooky...
Thanks for any help.