Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • soulvayne 0 posts 20 karma points
    May 29, 2009 @ 09:41
    soulvayne
    0

    Topnavigation with mouseover[solved]

    Hello,

    I was wondering if there is a way to use mouseover effects with the standard Topnavigation thats provided with the Runway Package.
    Ive already tried to just insert a mouseover menu in the template. It worked but as soon as i clicked on the gallery it links to the gallery map and it cant go back.

    For example:
    If i go to the home page the link is: http://localhost:10932/home.aspx
    If i click on the gallery page the link is: http://localhost:10932/gallery/gallery.aspx
    And if i click back on home again it links to:http://localhost:10932/gallery/home.aspx
    Which doesn't exist ofcourse.

    Now my question is if there is a way to either change the links in the menu i made or use the Topnavigation package and make mouseovers there.

    Here is the code of my masterpage:

    [quote]
    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    <script type="text/javascript"><br />
                <!--<br />
                function MM_swapImgRestore() { //v3.0<br />
                  var i,x,a=document.MM_sr; for(i=0;a&amp;&amp;i<a.length&amp;&amp;(x=a[i])&amp;&amp;x.oSrc;i++) x.src=x.oSrc;<br />
                }<br />
                function MM_preloadImages() { //v3.0<br />
                  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();<br />
                    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)<br />
                    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}<br />
                }<br />
                <br />
                function MM_findObj(n, d) { //v4.01<br />
                  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&amp;&amp;parent.frames.length) {<br />
                    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}<br />
                  if(!(x=d[n])&amp;&amp;d.all) x=d.all[n]; for (i=0;!x&amp;&amp;i<d.forms.length;i++) x=d.forms[i][n];<br />
                  for(i=0;!x&amp;&amp;d.layers&amp;&amp;i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);<br />
                  if(!x &amp;&amp; d.getElementById) x=d.getElementById(n); return x;<br />
                }<br />
                <br />
                function MM_swapImage() { //v3.0<br />
                  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i&lt;(a.length-2);i+=3)<br />
                   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}<br />
                }<br />
                //--><br />
            </script>










    [/quote]

    Thanks in advance [-o<

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies