title for links, alt for images

Expanding / Collapsing, search engine friendly, Section menu.
Post Reply
dazman
Posts: 2
Joined: Mon May 19, 2008 3:19 pm

title for links, alt for images

Post by dazman » Tue May 20, 2008 9:44 am

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

norman
Site Admin
Posts: 1239
Joined: Sat Feb 07, 2004 9:55 pm

Re: title for links, alt for images

Post by norman » Tue May 20, 2008 5:32 pm

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.
Norman

dazman
Posts: 2
Joined: Mon May 19, 2008 3:19 pm

Re: title for links, alt for images

Post by dazman » Thu May 22, 2008 12:08 pm

cheers that worked a treat

Darren

Post Reply