Solved

Change image question

Posted on 2013-05-28
4
190 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&amp;seal_type=a&amp;seal_size=large&amp;seal_color=blue&amp;new=1" onload id="IMGname/ID"/>

</body>
0
Comment
Question by:ddantes
  • 2
  • 2
4 Comments
 
LVL 82

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 82

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now