Link to home
Start Free TrialLog in
Avatar of ddantes
ddantesFlag for United States of America

asked on

Change image question

I'm trying to associate an image with a link, and can't sort out the syntax, due to inexperience.  With the following code, the original image no longer appears, but neither does the one I wish to load.

<head>
<script language="javascript" type="text/javascript">
      function changeImage(imgname, id) {
            document.getElementById("IMGname/ID").src=("https://secure.mauitradewinds.com/TransMan/Images/DigiCert.gif")
      }
</script>

</head>
<body>

<script language="javascript" type="text/javascript"
src="https://www.digicert.com/custsupport/sealtable.php?order_id=00259924&seal_type=a&seal_size=large&seal_color=blue&new=1" onload id="IMGname/ID"/>

</body>
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

That doesn't make any sense.  I don't see a link and I don't understand what you are trying to do.
Avatar of ddantes

ASKER

Sorry about that.  I've attached a file which contains a link to some javascript on the DigiCert server.  The link appears as a date.  I'd like to substitute an image for the date, without changing the link target, only its appearance.   test.htm
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ddantes

ASKER

Thank you for explaining.  Problem solved.