Page 1 of 1

title for links, alt for images

Posted: Tue May 20, 2008 9:44 am
by dazman
Norman, is there anyway to add a title to the link and alt to the '+' image?

i.e.

<li class="nsc"><div><img class="nsi" src="store/c-n.gif" alt="click to expand" />&nbsp;<a class="nsa" href="store/Middle_East.html" ="Middle East" >Middle East</a></div></li>

tia

Re: title for links, alt for images

Posted: Tue May 20, 2008 5:32 pm
by norman
Go to Design / Library / Layouts / Collapso-5 Dynamic Menu / Collapso-5 Menu and edit the code there (back the layouts code up to a text file first). Look for

<img

and add the appropriate code depending on whether it's the c-p.gif or c-n.gif (plus and minus).

Note that some of these lines are PHP code so you'll have to escape double quotes with a backslash. See what's there for guidance.

Also for the Title tag, look for

<a

and amend to something like

<a title=\"$linkname\"

Note that this layout is split into 3 areas.

1) Code that displays Brochure pages (not PHP so don't escape quotes).

2) Comments describing the generated HTML (no point amending this as it's informative only).

3) Code that generates the Section menu.

Re: title for links, alt for images

Posted: Thu May 22, 2008 12:08 pm
by dazman
cheers that worked a treat

Darren