-
JavaScript
This is probably a real newbie question, but I am very new to .NET and am trying to add a javascript menu to a web user control (this control will be a head that appears at the top of each page in the site). Unfortunately, I can't seem to get the menu to appear at all.
Is there a special way to add javascript? This script works in a plain old HTML page, but does not do anything when I pasted it into the HTML view of the aspx page.
Please help!
-
I did a very complicated menu from one I got off dynamicdrive.com.
It required alot of javascript code for each menu in the head section.
Basically I wrote a dll that has a shared function that returns the javascript as a string that is embeded into the head section.
If you look at my menu at http://www.sdublincoco.ie and view the source you will see a large amount of javascript code. The codebehind just has:-
<script language="javascript">
<%=MyDllName.MyClassName.SharedFunction %>
</script>
Simple as that. Return a proper string that is javascript code and you have it.
By the way the tickers on that site are user controls with header and image properties. If anybody would like the source I'd be happy to send it on.