Question : Object Expected Error

Hello.  I'm not a Javascript expert but I used it for a page to display text when you rollover links.  It works in Firefox, not in Google Chrome and in IE there is an error which seems to refer to the line:
<script language="JavaScript1.2">fwLoadMenus();</script>.  It says that an Object is expected.  I've attached the code for the whole page.
Thanks
Attachments:
 
HTML file
 

Answer : Object Expected Error

I now see where things go awry:
within the items-div, every div represents a set of images to show. Since in your code every image has it's own div, each image is it's own set, ie there's only one image per set.
So what you need to do is set a div every 5th dataitem in the repeater.

So your ItemTemplate becomes this:
<ItemTemplate>
<asp:Literal ID="ltrlOpen" runat="server" Visible="false" Text="<div>"/>
                                                <div class="highslide-gallery">
                                                    <a href='<%# DataBinder.Eval(Container, "DataItem.PictureName") %>' class="highslide"
                                                        onclick="return hs.expand(this)">
                                                        <img border="0" width="75px" alt="image" height="75px" src='<%# DataBinder.Eval(Container, "DataItem.PictureName")%>' />
                                                    </a>
                                                </div>
<asp:Literal ID="ltrlClose" runat="server" Visible="false" Text="</div>"/>
                                            </ItemTemplate>
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
protected void SetDivs(object sender, RepeaterItemEventArgs e)
{
if(e.Item.ItemIndex == 0 || e.Item.ItemIndex % 5)
{
Literal ltrlOpen = (Literal)e.Item.FindControl("ltrlOpen");
ltrlOpen.Visible = true;
}
else if(e.Item.ItemIndex % 4 || e.Item.ItemIndex + 1 == Repeater1.Items.Count)
{
Literal ltrlClose = (Literal)e.Item.FindControl("ltrlClose");
ltrlClose.Visible = true;
}
}
Random Solutions  
 
programming4us programming4us