Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Change image question

Posted on 2013-05-28
4
Medium Priority
?
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 84

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 84

Accepted Solution

by:
Dave Baldwin earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

610 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