[Typo3-dev] Javascript me please!
tapio
tapio.markula at dnainternet.net
Sun Sep 4 19:30:21 CEST 2005
Lasse Nørby wrote:
> Hi guys!
> I'm trying to develop a new ext.. I need help :)
>
> I want an IMG, expand.gif, to change to collapse.gif when the user
> clicks it, and then change back to expand.gif when clicked again.
> How do i do this?? I guess it's something like: onclick="myFunction()",
> but it's the myFunction part I can't see through.
> Please excuse my ignorence, but I am no programmer, and all I can do is
> the most basic javascripts like mouseovers etc.
I don't understand where you would need it except in the tree.
In fact it would be nice there. Now +/- just reloads the entire page,
which is not reasonable.
Instead of
<a href="alt_db_navframe.php?PM=0_1_1_browsePages#0_1" name="0_1"><img
src="../typo3conf/ext/skin_grey/icons/gfx/ol/plus.gif" width="18"
height="16" alt="" /></a>
Corresponding JavaScript could be reasonable.
More information about the TYPO3-dev
mailing list