Solved

Change image question

Posted on 2013-05-28
4
191 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
is this a cms? 8 60
Google map not loading in Bootstrap 3 modal 7 30
Checkout Page Input Field not aligned 1 20
asp.net mvc5 6 14
This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
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…

786 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