I wish to have slide program utilize the following

javascript Code:
 
document.write ("<a href=\"URL\" style=\"position:absolute;top:350px;left:50px;\">Some URL</a>");


such that document.write changes with images

so that

javascript Code:
 
 
function myChanges () {
 
var ? = ? // as relates to code found below at <b>Unrevised Code</b> 
 
  if(image == images/1.jpg) { //or whatever should be "if(? == images/1.jpg)"
 
     document.write ("<a href=\"URL\" style=\"position:absolute;top:350px;left:50px;\">Some URL</a>");
}
  else if (image == images/2.jpg) {
     document.write ("<a href=\"URL\" style=\"position:absolute;top:350px;left:50px;\">Some URL</a>");
 
}
 
  else if (image == images/3.jpg) {
     document.write ("<a href=\"URL\" style=\"position:absolute;top:350px;left:50px;\">Some URL</a>");   
}
// and so forth
}


Unrevised Code

<head>
javascript Code:
 
<script type="text/javascript" language="JavaScript"> <!--
  function doneLoading () {}
  function GenFooter () {}
  function GenMusic () {}
  function preloadImg () { return null; }
  function swapImg () { return false; }
  // Skeleton definitions for functions in slide.js
  function allSlideShowInit () {}
  function slideShow ()
  {
    if (!window.goSlideShows) {    // If 1st SlideShow
      goSlideShows = new Array();
      goSlideShows.Init = allSlideShowInit;
    }
  }
//--> </script>
 
<script type="text/javascript" language="JavaScript" src="slide.js"></script>
<script type="text/javascript" language="JavaScript" src="maina.js"></script>
 
<script type="text/javascript" language="JavaScript"> <!--
 
var goS1 = new slideShow (
  "im1",              // Name in IMG tag
  3000,               // Delay (1000 = 1 sec)
  false,              // Autostart
  "images",          // Begin list of images
      "images/1.jpg ",
      "images/2.jpg",
      "images/3.jpg",
      "images/4.jpg",
      "images/5.jpg",
      "images/6.jpg",
      "images/7.jpg",
      "images/8.jpg",
      "images/9.jpg",
      "images/10.jpg",
      "images/11.jpg",
      "images/12.jpg",
      "images/13.jpg",
      "images/14.jpg",
      "images/15.jpg",
 
 
  "captions",         // Begin list of captions
      "     Slide One",
      "     Slide Two",
      "     Slide Three",
      "     Slide Four",
      "     Slide Five",
      "     Slide Six",
      "     Slide Seven",
      "     Slide Eight",
      "     Slide Nine",
      "     Slide Ten",
      "     Slide Eleven",
      "     Slide Twelve",
      "     Slide Thirteen",
      "     Slide Fourteen",
      "     Slide Fifteen",
 
 
 
 
  "form",             // Begin form info
      "f1",           // Form name
      "fp1",          // Gadget prefix
  "startstop",        // Labels for start/stop button
      "Start",
      "Pause");
 
//--> </script>

</head>

<body bgcolor="#CCCCCC" onload="goSlideShows.Init();">

<DIV style="WIDTH: 800px; HEIGHT: 480px; border:medium solid red; BACKGROUND-COLOR: #ffffdd">

<form name= "f1" id= "f1" method= "post" action= "javascript:void(0)" >

<img src= "images/1.jpg" border= "0"
name= "im1" id= "im1" alt= "Slide show" align= "right" vspace= "10" hspace= "25" />
<br/>
&nbsp;&nbsp;&nbsp;<input type= "button" name= "fp1Start" value= "Loading"
onclick= "goS1.StartPause()" >

&nbsp;&nbsp; <br /><br /> &nbsp;&nbsp;

<input type= "button" value= "Next" onclick= "goS1.Next()" > &nbsp;&nbsp;
<input type= "button" value= "Prev" onclick= "goS1.Prev()" >

&nbsp;&nbsp;<br /><br /> &nbsp;&nbsp;&nbsp;

<input type= "button" value= "Faster" onclick= "goS1.Faster()" >

&nbsp;&nbsp; <input type= "button" value= "Slower" onclick= "goS1.Slower()" >

<br /><br /><br /><br /> &nbsp; &nbsp;&nbsp;

<font color="#FF0000">Delay: </font>
<input type= "text" name= "fp1Delay" style= "color:red" size= "3" >

<font color="#FF0000"> seconds </font>

<br/><br/> &nbsp; &nbsp;

<input type= "text" size= "25" style= "color:#0000FF"
name= "fp1Caption" value= "" />

<br/><br/><br/>

</form>

</DIV>
</body>




Thanks in Advance,

Lucien