drop down menus

D

Desmond

Any help on this one. I am trying to work out how drop down menus
work. The website below
has been very helpfull, but the last section on javascript is
confusing me. I don't know how to implement
it. functions should be in a seperate file like functions.inc and the
styles should be in there own file

How do i add the sfHover = function() as described here?


http://www.htmldog.com/articles/suckerfish/dropdowns/
 
B

Ben C

Any help on this one. I am trying to work out how drop down menus
work. The website below
has been very helpfull, but the last section on javascript is
confusing me. I don't know how to implement
it. functions should be in a seperate file like functions.inc and the
styles should be in there own file

How do i add the sfHover = function() as described here?


http://www.htmldog.com/articles/suckerfish/dropdowns/

Put the text into a file (hover.js is a better name than functions.inc).
Then in your <head> element put

<script type="text/javascript" src="hover.js"></script>

The script should run as soon as that script element is parsed, which
will initialize sfHover and cause it to be called once the document has
loaded.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top