Solved

Change image question

Posted on 2013-05-28
4
193 Views
Last Modified: 2013-05-28
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>
0
Comment
Question by:ddantes
  • 2
  • 2
4 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39203292
That doesn't make any sense.  I don't see a link and I don't understand what you are trying to do.
0
 

Author Comment

by:ddantes
ID: 39203332
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
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39203482
It's not going to be your choice.  The javascript creates the image and text over it.  I suspect that when you have it on the site that the cert is for, you are going to get a different and correct image.  The gray image is probably there because it is not being called from the correct site.  Go to this page http://www.digicert.com/ssl-support/digicert-security-seal.htm to see what it will look like when the request comes from the correct site.
0
 

Author Comment

by:ddantes
ID: 39203495
Thank you for explaining.  Problem solved.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question