I would like to add a simple "page loading" javascript + css code in ZC.
I need to place the codes in the <head> tag and in the <body> tag.
Where do I do that?
I would like to add a simple "page loading" javascript + css code in ZC.
I need to place the codes in the <head> tag and in the <body> tag.
Where do I do that?
http://www.zen-cart.com/wiki/index.p...s_-_Javascript
The body part could go in any number of files depending on how and where you want it to function. tpl_main_page.php or tpl_header.php would be common files to use.
Thank you for your reply. This is a bit out of my range. :-) I am using Expression Web to create web pages. It is very easy to build websites with that software. Easy to see the body and head tags. When I pull up a page for example the tpl_main_page.php I can see the body tag, but no head tag.
Here is what I would like to do. (I should have started with this):
I am using the numinix FEC. Because of the shipping modules loading slow, the checkout page loads slow. You can see certain notes on some websites saying "click only once" or lease wait to load" and so on, but I thought to make this a little more attractive and that is why I would like to add this simple 'load screen' JS only into the login page.
I read the ZC wiki you sent in the thread, thank you for that, it helped a lot, the only thing left is I still can not find the head tag to put a new css path.
Please share your thoughts.
Thank you
That software is for creating html pages and ZenCart is php basedI am using Expression Web to create web pages
So you will not necessarily see what you are accustomed to seeing
Zen-Venom Get Bitten
Yes, EW does have the capability for reading and creating PHP. I have pulled up a few pages from my ZC and saw the entire code together with the head tag on certain pages.
Look in /includes/templates/template_default/css/CSSreadme.txt. It tells you how and where to save CSS files to autoload on different pages.
1. No, what you think you're seeing in EW is not the PHP template stuff in ZC.
But you seem to have your mind made up.
Nevertheless ...
2. You REALLY should NOT use EW for any Zen Cart files.
If your files get damaged (which is VERY common by any software written by Microsoft... SERIOUSLY!), then EW is very likely the cause.
You've been warned.
3. If you're convinced that you want to ignore the advanced way of putting stuff into the <head> section by using the built-in smart javascript and css support as described in the wiki, then put a copy of the html_header.php file into your own custom template, and hack in your own stuff there. It'll make your upgrades more complicated though.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I have not given up yet. ;-) Thanks for your input so far.
My question:
Is there any way that I can access the login button code?
I need to alter this part:
<div class="buttonRow forward">
<input type="image" title=" Sign In " alt="Sign In" src="includes/templates/apparel_boutique/buttons/english/button_login.gif">
</div>
I would like to add/alter the following:
<img id="myImage" src="loading.gif" width="50" height="50" />
<br /><br />
<input type="button" onclick="changeSrc()" value="Change image" />
This will change the "login button" to a loading animated gif. I have the jscript_loading.js uploaded in the correct folder
Bookmarks