...

View Full Version : two commands



6arredja
01-05-2007, 03:27 AM
how do you execute two js commands through the <a> tag

ex:


<a href="#" onclick="tggle('home'); Effect.SlideDown('home');">adfasdf</a>


that does not work

chump2877
01-05-2007, 04:00 AM
how do you execute two js commands through the <a> tag

ex:


<a href="#" onclick="tggle('home'); Effect.SlideDown('home');">adfasdf</a>
that does not work


That should work. Are you getting any JS errors? Check Mozilla's JS console....

You can also write that like this, slightly more efficiently:



<a href="javascript: tggle('home'); Effect.SlideDown('home');">adfasdf</a>

6arredja
01-05-2007, 04:07 AM
im trying to use my own script along with scriptaculus and its not working to well

6arredja
01-05-2007, 04:13 AM
geez i feel like such a noob

i had the scriptaculus file pointed to the wrong directory

sorry for wasting time lol



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum