Author Topic: Error in Comodo banners script  (Read 10402 times)

Offline dariovolaric

  • Comodo Member
  • **
  • Posts: 31
    • Windows Software Tips
Error in Comodo banners script
« on: March 21, 2011, 04:34:39 AM »
Hi,

I just wanted to place a Comodo banner on my blog, but it does not seem to work. Upon inspecting the code, it appears that http://www.comodo.com/javascript/banner.js does not exist....

I used the code from http://www.comodo.com/products/banners.php

I uploaded the banner to my website but it does not show...


<img src="http://www.dariovolaric.nl/images/CIS_banner_120x600_1.gif" border="0" alt="Click Here for 30 day free trial">
<a href="http://personalfirewall.comodo.com/index.html" id="cnbanner">Comodo Internet Security Pro 2011[/url]
<script language="JavaScript" src="http://www.comodo.com/javascript/banner.js" type="text/javascript"></script>
The mind makes it real

Offline Valentin N

  • Malware Research Group
  • Comodo's Hero
  • *****
  • Posts: 2869
  • Usability Study Group
    • My homepage at the moment
Re: Error in Comodo banners script
« Reply #1 on: March 21, 2011, 05:09:51 AM »
I have seen some mistakes in your codes:

Code: [Select]
<img src="http://www.dariovolaric.nl/images/CIS_banner_120x600_1.gif" border="0" alt="Click Here for 30 day free trial" />
<a href="http://personalfirewall.comodo.com/index.html" id="cnbanner">Comodo Internet Security Pro 2011</a>
<script language="JavaScript" src="http://www.comodo.com/javascript/banner.js" type="text/javascript"></script>

in HTML/XHTML you never use [] but <>.

if you get stuck I suggest w3cschools

see if this helps.

Regards,
            Valentin N
« Last Edit: March 21, 2011, 05:24:09 AM by Valentin N »
Skype: comodohelper (Personal)

CEVPN: Valentin N

CIS 6.3

Keep CTM alive by voting


Offline dariovolaric

  • Comodo Member
  • **
  • Posts: 31
    • Windows Software Tips
Re: Error in Comodo banners script
« Reply #2 on: March 21, 2011, 05:42:23 AM »
Hi,

I am aware of this. The [] brackets were not there when I pasted the code. They are added by this forum platform. To prove this, simply copy and paste the code from the website into your post here.
The mind makes it real

Offline Valentin N

  • Malware Research Group
  • Comodo's Hero
  • *****
  • Posts: 2869
  • Usability Study Group
    • My homepage at the moment
Re: Error in Comodo banners script
« Reply #3 on: March 21, 2011, 05:50:49 AM »
did my suggestion help?
Skype: comodohelper (Personal)

CEVPN: Valentin N

CIS 6.3

Keep CTM alive by voting


Offline dariovolaric

  • Comodo Member
  • **
  • Posts: 31
    • Windows Software Tips
Re: Error in Comodo banners script
« Reply #4 on: March 21, 2011, 06:00:05 AM »
did my suggestion help?

The edited code does not have the <a href> tags around the image and thus the banner is not clickable.

However, I see now what I did wrong. I use FireFox with AdBlock enabled, thus my banner was not showing.

The banners works fine now and I have removed the javascript from the code, as that script cannot be found on the server.
The mind makes it real

 

Free Endpoint Protection
Seo4Smf 2.0 © SmfMod.Com Smf Destek