Re: [WSG] Multiple Suckerfish dropdown mayhem

2006-12-19 Thread John Faulds
I don't think you can't attach two functions with window.onload, so  
effectively the 2nd one gets ignored. You could add an event listener  
function to your js or go for something like the whatever:hover -  
http://www.xs4all.nl/~peterned/csshover.html


On Tue, 19 Dec 2006 20:10:27 +1000, Nick Gleitzman [EMAIL PROTECTED]  
wrote:



Hi folks

I wonder if any of the javascript gurus out there can help a
cut'n'paste non-programmer...

disclaimerI didn't design this site. The client's inhouse designer
did. I don't like the dropdowns; they get tedious. But dropdowns she
wants, and dropdowns she gets./disclaimer

I have a site build in progress [1] and I'm using an adaptation of
Patrick Griffiths and Dan Webb's Son of Suckerfish dropdowns. I even
have two separate nested lists on each page - and all works as
requested in 'good' browsers; I'm actually pretty happy with it.
Except, of course, when I start testing in Exploder. Fixed all the
layout issues, but IEWin [2] refuses to display the second dropdown -
which should appear on :hover of the text links at right. I assume this
is a bug in my clumsy attempt to duplicate the javascript [3] but I
don't know enough to find it.

Another issue with these dropdaowns is a really unsightly flashing on
and off of the graphics of the main menu as the links are :hovered
over. My virtual PC setup gives slower than normal rendering of web
pages, but even with a real PC I would imagine there's a flash of
white. Any clues?

The relevant rules for the menus in my css file [4] start at line 66,
with the comment /* navigation - top level */.

[1] http://www.omnivision.com.au/fenton2/index.htm
[2] IE6/Win XP Pro running on Virtual PC 7 on OS X 10.3.9 - slow as a
wet weekend, but it works...
[3] http://www.omnivision.com.au/fenton2/inc/sfhover.js
[4] http://www.omnivision.com.au/fenton2/inc/home.css

disclaimer
I didn't design this site. The client's inhouse designer did. I don't
like the dropdowns; they get tedious with constant use. But dropdowns
she wants, and dropdowns she gets.

Also:
This. Is. A. Work. In. Progress. Please resist the temptation to
comment on accessibilty (or the lack thereof); I know. The markup is
not finished yet. If you delve into the site and marvel at the multiple
stylesheets, that's how I work. They'll get combined and condensed
later. And the underscore hacks in the css files are a quick first
check and fix for IEWin; they'll be moved to their own files and
delivered vis CCs.
/disclaimer

Thanks for your time.

Nick
___
Omnivision. Websight.
http://www.omnivision.com.au/

***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***




--
Tyssen Design
www.tyssendesign.com.au
Ph: (07) 3300 3303
Mb: 0405 678 590


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Multiple Suckerfish dropdown mayhem

2006-12-19 Thread Micky Hulse
I cobbled this together a year or so back... allows for two, or many 
more, suckerfish menus on one page...


http://www.ambiguism.com/sandbox/scripts/spawn-of-suckerfish.php

I have yet to re-visit and clean-up the JS and/or CSS... but the main 
thing that should help you is the JS.


Maybe it will give you some good ideas and/or a starting point.

Cheers,
Micky


--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***