Results 1 to 4 of 4

Thread: Adding a rollover image

  1. #1
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding a rollover image

    I attached the files that I am working with. I actually downloaded them from this site.

    It is a menu script that I really like, it does rollover images, but what I would like to be able to do is make 2 image files for rollovers that will be used for all main menus items.
    Currently I can add 1 image for all, but when you roll over it you can only get one solid color and not a second image.

    I'm trying to avoid creating 2 images for each menu item.

    I hope this makes sense.

    Thanks

  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

    You don't have to create two images for each menu item but, you may have to configure the same two images for each item you want to use them.
    - John
    ________________________

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

  3. #3
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I was able to make my 2 images work on all menu items, but adding the test over it is not working.

  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

    Quote Originally Posted by send2mark
    but adding the test over it is not working
    That's probably text that you mean. Following the documentation on this menu, it appears you can have rollover images for the item text or text for the the items. There is also a provision for a background image but not a rollover for the background image. So, why not get creative and think outside the box, no promises but, you could just try putting the rollover code in the background image field, see if that works, if so, you can put your text in the text field and everyone is happy. If not, here is something that should work, use something like this in the "TextToShow" field:
    Code:
    <table style='border-collapse:collapse;color:navy;background:pink url(some.jpg)' onmouseover=\"this.style.background='yellow url(someother.jpg)'\" onmouseout=\"this.style.background='red url(some.jpg)'\"><tr><td width='100' height='50'>Text for the menu item goes here</td></tr></table>
    Set your own colors, text and dimensions.
    - John
    ________________________

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

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
  •