[thelist] Jscript vs. N4.7
George Palframan
george at themidwestgroup.com
Thu Sep 6 02:45:58 CDT 2001
Nice one Jeff, thats great!!!
-----Original Message-----
From: .jeff [mailto:jeff at members.evolt.org]
Sent: 05 September 2001 18:58
To: thelist at lists.evolt.org
Subject: RE: [thelist] Jscript vs. N4.7
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/
---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list