JavaScript Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • daveshore
    Sergeant First Class

    • Jul 2005
    • 53

    JavaScript Question

    I am trying to use javascript for the 1st time (I have only used html code before) to add some new banners to my site. However when I enter the code that I have been given I get the following symbols displayed below the banner:

    -->

    You can see the problem on my test page http://www.bettingfromhome.com/bwin.html

    I have contacted the supplier of the banners & they have identified coding which I can only find if I view the "Page HTML...", but it is in the greyed out section that I don't control. Clearly I must be doing something wrong, but I don't know what. Can anyone point me in the right direction?

    Regards,
    Dave Shore
    bettingfromhome.com is available for purchase. Get in touch to discuss the possibilities!
  • Sarah
    Colonel

    • May 2005
    • 513

    #2
    Re: JavaScript problem

    You are entering an extra --> under the below:

    <noscript><a href="http://adserver.itsfogo.com/click.aspx?t=i&v=2&zoneid=48825" target="betandwin"><img src="http://adserver.itsfogo.com/default.aspx?t=i&v=2&zoneid=48825" border="0" alt=""></a></noscript>

    -->

    You need to remove this and just leave:

    <noscript><a href="http://adserver.itsfogo.com/click.aspx?t=i&v=2&zoneid=48825" target="betandwin"><img src="http://adserver.itsfogo.com/default.aspx?t=i&v=2&zoneid=48825" border="0" alt=""></a></noscript>

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    02036089024 / United Kingdom
    291916438 / Australia

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


    Comment

    • daveshore
      Sergeant First Class

      • Jul 2005
      • 53

      #3
      Re: JavaScript problem

      Hi Sarah,

      Thanks for the reply.

      However I'm still confused!! The javascript that I have in my 1st banner is this:

      <!--
      document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
      document.write ("http://adserver.itsfogo.com/default.aspx?zoneid=48824");
      document.write ("&amp;v=2&amp;t=js");
      document.write ("'><" + "/script>");
      //-->
      </script>
      <noscript><a href="http://adserver.itsfogo.com/click.as...2&zoneid=48824" target="betandwin"><img src="http://adserver.itsfogo.com/default....2&zoneid=48824" border="0" alt=""></a></noscript>

      This is the exact code that I have pasted into my voda script box. You indicate that there are 2 lines of <!-- but I only pasted 1 in, I also changed the //--> to --> and the latter change meant the banner did not display at all.

      Does Blue Voda add extra script to the code I paste in?

      Thanks again for the help.

      Regards,
      Dave Shore,
      bettingfromhome.com is available for purchase. Get in touch to discuss the possibilities!

      Comment

      • Sarah
        Colonel

        • May 2005
        • 513

        #4
        Re: JavaScript problem

        Hi,

        Go to your page in your browser look at the page source, you have entered the code like this:

        <!--
        document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
        document.write ("http://adserver.itsfogo.com/default.aspx?zoneid=48824");
        document.write ("&amp;v=2&amp;t=js");
        document.write ("'><" + "/script>");
        //-->
        </script>
        <noscript><a href="http://adserver.itsfogo.com/click.as...2&zoneid=48824" target="betandwin"><img src="http://adserver.itsfogo.com/default....2&zoneid=48824" border="0" alt=""></a></noscript>

        -->

        Until you remove the last --> you will see this. You will notice we removed the first one for you.

        VodaHost

        Your Website People!
        1-302-283-3777 North America / International
        02036089024 / United Kingdom
        291916438 / Australia

        ------------------------

        Top 3 Best Sellers

        Web Hosting - Unlimited disk space & bandwidth.

        Reseller Hosting - Start your own web hosting business.

        Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


        Comment

        • daveshore
          Sergeant First Class

          • Jul 2005
          • 53

          #5
          Re: JavaScript problem

          Hi Sarah,

          Thanks again for your help, but sadly I'm even more confused now!!

          I can see the last --> as you say when I look at the page source from within my browser, but I don't know where it is coming from..... If you look at the code in my 1st post, the --> that you refer to is not there. I've rechecked the script that is in my JavaScript box and it isn't showing there either, so where is it coming from? Does BV add additional code in somewhere?

          How did you manage to edit out the 1st offending --> from my code? I can't see how to edit this?

          I think I must be really having a dumb moment here............ :(

          Dave Shore
          bettingfromhome.com is available for purchase. Get in touch to discuss the possibilities!

          Comment

          Working...
          X