| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Need Help with installing new Flash header please! | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello,
If anyone can help me with this, I'd really appreciate it! I just got a new Flash header for my site and I'm having a hard time trying to make sense as to how to install it. I've got three files and I don't know where to put them. 1. HOMS.swf 2. HOMS.html 3. AC_RunActiveContent.js Now my current header is located in the /head_cat_logo.tpl folder, so I'm pretty sure I just need to add the HOMS.html code there. Right? As for the two other files, I have no idea where I'm supposed to put there. Plus I was told the following "The HTML file has all the code you need; you can put the .swf and .js files into different folders, as long as you adjust the path code in the .html file" I have no idea what that means! Agh! I'm not a tech guy at all, so any help anyone is able to give me, if you could please give it to me step by step, hopefully I'll be able to figure it out. Thanks very much! Very Confused Kevin |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Hello!
I was having similar trouble. But I found the answer here: http://forum.x-cart.com/showthread.php?t=46098 If you want to use the AC_RunActiveContent.js just put that, and your flash file into the the /skins1/ directory. Then you need to insert the link to the script in the header of your site. On 4.2 this is in /skins1/customer/home.tpl Make sure you make backups of the originals, just in case you need to restore it. Not sure if it's the same for 4.1. Just look for the file that has the other header information in it: Code:
then place the link to your AC_RunActiveContent.js with the following tags: Code:
Make sure it points to the location where you put the script file. Then you need to take the embed code from your HTML file and place that into the body header. In 4.2 this is in: /skins1/customer/head.tpl You may want to place it in a class style so you can position it. You also want to make sure that the path to the flash file is correct. eg: /skins/flashfile.swf, in ALL instances. I always use the swfobject.js (2.0) to embed flash files. It provides the best way to serve alternative content, in case the user doesn't have the right plugin. This is what I did. loaded the following files to my /skins1/ directory: swfoject2.js headerFlash.swf expressInstall.swf Then updated this file with my code: /skins1/customers/home.tpl Code:
Then I loaded my nonflash graphic to: /skins1/images/ Added a style called: #flashcontent to the main.css in /skins1/ I only gave this style the size of my flash file: 840 x 324. The positionning is being controlled by the class .header-bg2 The updated this file with the reference to the flashcontent. /skins1/customer/head.tpl HTML Code:
The swfObject replaces the content of the flashcontent div id with the flash file if the browser has the right version number of the Flash plugin. in this case, it's 9. This can be adjusted in that line above: HTML Code:
The other reason I like this is because if the user doesn't have the right plugin, it will ask the user to express install it. That what the reference is to expressInstall.swf I hope this helps! It worked for me!
__________________
X-Cart Gold 4.2.2, Linux Three Members with Tiered Pricing X-Affiliate Smart Menu Tabbed Menu ------------------------------------ D'Arcy Design and Production eCommerce and CMS configuration and customization |
|||||||||
|
|||
X-Cart forums © 2001-2020
|