PDA

View Full Version : weird alt attribute problem


Alias
04-07-2003, 02:17 PM
hello people,
here is little weird (probably unsolvable) problem

my img:

<img name='restore' src='../ico/restore.gif' width='20' height='17' border='0' alt="Restore">

when image is clicked .gif is changed :

onClick="restore.src='../ico/maximize.gif';"

and now I need img alt attribute to be changed to alt="Maximize" :

<img name='restore' src='../ico/maximize.gif' width='20' height='17' border='0' alt="Maximize">

possible ???

thox
04-07-2003, 02:49 PM
onClick="restore.src='../ico/maximize.gif';restore.alt='Maximise';"

i'm probably wrong. this is a JavaScript question and i'm sure the nearest moderator will move it some time

Alias
04-07-2003, 03:46 PM
Thanx Thox :thumbsup:

it works !!!
(i've tried with IE 4.0 and 5.0)

Sorry for wrong forum posting :(