Results 1 to 5 of 5

Thread: Omni-slide have top menu slide as well

  1. #1
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Omni-slide have top menu slide as well

    i have a question about the omnislide script.
    http://www.dynamicdrive.com/dynamici...lide/index.htm

    how can i make the top menu to slide with the scroll bar as well? and what would the code be for having an image as the menu background? sorry, i just started coding yesterday with the help of dreamweaver.
    Last edited by atlanteay; 12-31-2006 at 01:37 AM.

  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

    Could you be more specific? The top menu already slides along with the scroll bar so as to always be available to the user.
    - John
    ________________________

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

  3. #3
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    not on my layout it doesn't. I must've done something wrong in the coding but that doesn't matter now. The main thing is that i want to know the string for setting the bg of the menu to an image instead of colors.

    on every string with keepinview, i set it to true. However, the top menu just won't slide along in IE7 but it works with firefox. That shouldn't be right since the demo worked with IE7 but not my layout. Also, in the properties.htm that came along with the package, it says the Top Menu will ALWAYS follow the screen no matter where i scroll. So this is really pissing me off because if it will always do that, and i haven't editted anything except the menu items, why won't it move?
    Last edited by atlanteay; 01-01-2007 at 05:50 AM.

  4. #4
    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

    Well, that's not done with a single property and there are various ways to do it. I'll outline two ways. One way would be to simply set the desired background images for the menu's links in the style section. This will only assign a background image to the links and, it will be used by each link individually.

    Another way would be to set the allowtransparent property to true for that menu:

    Code:
    allowtransparent:true,
    Then in your style section put something like so:

    Code:
    #menuid table {
    background-image:url('some.gif');
    }
    where menuid is the id property you have assigned to that menu. Like any background image, it will not show through other elements above it that have background, so the background styles must be removed from that menu's links and/or headings. The link styles are on the page (background colors you can remove, highlighted):

    Code:
    #menu1 a {color:black;background-color:white;text-decoration:none;text-indent:1ex;}
    #menu1 a:active {color:black;text-decoration:none;}
    #menu1 a:hover {color:black;background-color:#FFFF99}
    #menu1 a:visited {color:black;text-decoration:none;}
    The heading background-color is set by property, make it transparent:

    Code:
    hdingbgcolor:'transparent',
    Finally, if the draw bar is to allow the background image for the table to show through, use:

    Code:
    barbgcolor:'transparent',
    - John
    ________________________

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

  5. #5
    Join Date
    Mar 2007
    Posts
    66
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Thank you for this info ... been struggling for a couple of hours ... missed the connection on the page .... thanks ... viki

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
  •