Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / July 2008



Tip: Looking for answers? Try searching our database.

code question: what is it?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mason C - 21 Jul 2008 07:40 GMT
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 - 21 Jul 2008 08:10 GMT
Mason C says...

> 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.
[quoted text clipped - 18 lines]
>
>    Thanks for any instruction or source,

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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.