Results 1 to 2 of 2

Thread: Drop Down Menu Problem in Blogspot

  1. #1
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Drop Down Menu Problem in Blogspot

    1) Script Title: AnyLink JS Drop Down Menu v2.3

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    3) Describe problem: Please check the site http://insaneblackcat.blogspot.com. I have two doubts or request that needs to be cleared.
    1. i have implemented the script on wallpaper button which is floating on the left side of the screen. The script seems to be working perfectly fine but it only shows the menu on the top of the post (that is, the menu is displayed only where the slider is and not where the button is.), what should i do to get the menu display where button is on the entire page. I am facing this problem in firefox and IE.
    2. In the drop menu, you can see there are two tags "Colors" and "Tags" which do not have any links, is there any way, i can make it as a text instead of a blank link which if clicked will display the homepage?
    Last edited by ddhelp; 10-14-2011 at 08:05 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    BTW - While I was working on this you added a second anylinkmenu.init. This isn't helping and has only made matters worse, remove it or remove the first one.

    Take care of that first if you haven't already.

    There's another matter, on narrow screens the floating menu doesn't appear above the slider at all times, only some of the time. To fix that, give each one a z-index of 1000:

    Code:
    <a style="display:scroll;position:fixed;top:268px;left:200px;z-index:1000;" href="http://insaneblackcat.blogspot.com"><img style="border:0;" img alt='home' onmouseover="this.src='http://i1122.photobucket.com/albums/l526/photoalbum101/main%20blog%20photos/buttons/lblackhome.png'" src="http://i1122.photobucket.com/albums/l526/photoalbum101/main%20blog%20photos/buttons/lredhome.png" onmouseout="this.src='http://i1122.photobucket.com/albums/l526/photoalbum101/main%20blog%20photos/buttons/lredhome.png'"/></a>
    
    <a style="display:scroll;position:fixed;top:300px;left:162px;z-index:1000;" href="http://insaneblackcat.blogspot.com/search/label/Wallpaper"><img style="border:0;" img alt='wallpaper' onmouseover="this.src='http://i1122.photobucket.com/albums/l526/photoalbum101/main%20blog%20photos/buttons/lblackwallpaper.png'" src="http://i1122.photobucket.com/albums/l526/photoalbum101/main%20blog%20photos/buttons/lredwallpaper.png" onmouseout="this.src='http://i1122.photobucket.com/albums/l526/photoalbum101/main%20blog%20photos/buttons/lredwallpaper.png'" class="menuanchorclass myownclass" rel="anylinkmenu3" rev="lr" title="Click to display all the wallpapers or Select one from the given options"/></a>
    Since you're using jQuery already, the other problems are fairly easy to fix. Add the highlighted to the jQuery window load function here:

    Code:
    <!-- IBC: SLIDER CODE -->
    <script src='http://neenasisland.webs.com/psneena/nivoslider/jquery-1.6.1.min.js' type='text/javascript'></script>
    <script src='http://neenasisland.webs.com/psneena/nivoslider/jquery.nivo.slider.pack.js' type='text/javascript'></script>
    <script type='text/javascript'>
    $(window).load(function() {
    $('#slider').nivoSlider();
    	$('.anylinkmenucols .column ul').each(function(){
    		$(this).find('a').eq(0).addClass('anylinkheading').get(0).removeAttribute('href');
    	});
    });
    </script>
    <!-- IBC: SLIDER CODE -->
    That will remove the href attribute from those two links. They will look funny but it also gives them a class of anylinkheading. Use that to style them as you wish. Example (put it in an existing stylesheet for the page):

    Code:
    .anylinkheading, .anylinkheading:hover {
    	color: black!important;
    	text-decoration: none!important;
    }
    Be sure to use the !important keyword as shown to override other styles for links and this menu (only applies to some browsers but doesn't hurt others).

    As for the other matter, it's apparently the fixed positioning of the anchor that throws off the script. I found that by using jQuery to find the anchor's position, this was fixed. But IE was still closing the drop down too soon, so I made some other mods with jQuery to the script to fix that. To make a long story short, use this version of the script:

    Attachment 4127
    Last edited by jscheuer1; 10-14-2011 at 03:23 PM. Reason: add detail - later substitute annotated version of script
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    ddhelp (10-14-2011)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •