Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

code question: what is it?

0 views
Skip to first unread message

Mason C

unread,
Jul 21, 2008, 2:40:17 AM7/21/08
to

I'm a novice at this and would be forever grateful if someone would tell
me what this code accomplishes. It is repeated 149 times on the page.
This is the 97th: (I've removed some trivial code.)

<script>
function swapon97()
{
document.img97.src="img/navigr97.gif";
}
function swapoff97()
{
document.img97.src="img/navig97.gif";
}
</script>

<a href="page97.html" onclick="return true">

<img src="navig97.gif" /></a>

then <script> and repeat above with "98"


Thanks for any instruction or source,

Mason C

Geoff Muldoon

unread,
Jul 21, 2008, 3:10:09 AM7/21/08
to
Mason C says...

It's a bit of javascript which will when triggered (probably by another
bit of javascript) switch the source of each of a number (149?) of images
on the page from one value - img/navigr97.gif ('r' for red?)- to another -
img/navig97.gif (note no 'r' in the name).

From your description it's a shitty bit of coding.

Geoff M

0 new messages