[thelist] Jscript vs. N4.7
.jeff
jeff at members.evolt.org
Wed Sep 5 13:00:50 CDT 2001
george,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: George Palframan
>
> I have found what was upsetting 4.7. It doesn't support
> swopping properties of the <a> tag:
>
> eg.
>
> atag.href = swopURL[image]
> atag.target = swopTarget[image]
>
> where atag is the name of the <a> tag.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
actually, it *does* support that. it's just very limited in how it does it.
check this out to see what i mean:
http://members.evolt.org/jeff/code/ammend_links.cfm
now, you could get around the difficulty of accessing the anchors by number
if you gave each <a> tag a name attribute and accessing it like that.
<a name="blah" href="blah.html" target="_self">blah</a>
and, in your script:
document.links['blah'].href = swopURL[image];
document.links['blah'].target = swopTarget[image]
i'd also find another variable to use other than "image".
good luck,
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list