SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict sparkdigital's Avatar
    Join Date
    Feb 2005
    Location
    Kendal, Cumbria - The Lake District, UK
    Posts
    249
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy two conflicting javascripts - preloader and dropdown

    Hi Guys, I'm no javascript expert so forgive me if I'm being stupid here...

    On a website I'm currently building I'm using rollover images (using the basic functionality from dreamweaver) and a CSS drop down menu from easymenu.co.uk and the two seem to conflict. BTW - I've cut the javascript for the rollover out of the page and replaced it with a link to an external .js script (don't know if this makes any difference).

    If I leave it as it is the menu doesn't drop down. If I delete the <body preloader> bit the rollover and drop down menu both work but the swap images obviously won't be preloaded.

    Any way around this? Many thanks,

    Konrad

  2. #2
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well. without seeing code. i cann't suggest anything. But there is one way to solve this problem. use CSS rollovers which is better than javascript rollovers. need code?
    Kirtan

  3. #3
    SitePoint Addict sparkdigital's Avatar
    Join Date
    Feb 2005
    Location
    Kendal, Cumbria - The Lake District, UK
    Posts
    249
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your quick reply. Can you use CSS rollovers for image buttons or only for backgrounds for text links (like the top navigation on sitepoint)?

    Konrad

  4. #4
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    we can use CSS for both. just use display:none at first. then turn it on when mouse over link (image or text). I mean preloading swap image using display:none.
    Last edited by rajimpress; Sep 29, 2006 at 08:33. Reason: add content
    Kirtan


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
  •