| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
#1
|
|||||||
|
|||||||
Rollovers
I'm having a problem with rollovers that I had put into my new header, the rollovers work fine on the customer end but in the admin section I am getting Java script errors when I rollover the links in the header. Maybe someone can help me out here?
Customer front end http://www.innervisionhost.com/customer/home.php Admin Section http://www.innervisionhost.com/provider/home.php Thanks
__________________
Never believe anything you hear and only half of what you see! Edward J Ziejka www.innervisionpc.com X-Cart Gold 4.1.3 Unix |
|||||||
#2
|
|||||||
|
|||||||
thats weird, if it work on one it should work on the other.
I did rollovers to test it few weeks ago and by just changing the head.tpl with javascript that was included in the head.tpl You got me stumped, Ill mess with it in a bit though. Is it a real big deal though? are you going to be using that top nav on your admin side? |
|||||||
#3
|
|||||||
|
|||||||
Rollovers
I was using the home link to get to the home page to use webmaster mode, but I can make another link for that, but it's just anoying when I rolover that area with the errors that come up. And I also have a few other carts we are working on for clients I can't have that for them.
Thanks alot
__________________
Never believe anything you hear and only half of what you see! Edward J Ziejka www.innervisionpc.com X-Cart Gold 4.1.3 Unix |
|||||||
#4
|
|||||||
|
|||||||
Rollovers
We are using this External Java script file created in dreamweaver just placed in the public_Html folder would this be right?
// JavaScript Document <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //-->
__________________
Never believe anything you hear and only half of what you see! Edward J Ziejka www.innervisionpc.com X-Cart Gold 4.1.3 Unix |
|||||||
#5
|
|||||||
|
|||||||
If you are in the head .tpl I think some of your code may be getting stuck after it checks to see if it is an admin or customer head display.
For example, in the customer head display, it will show you a search bar and other things in the default mode. In the admin, you will not see that information. I think some of javascript is stuck inside the customer portion and being cut off, hence the errors. |
|||||||
#6
|
|||||||||
|
|||||||||
Its your <BODY> tag.
The customer side contains the code to preload the images: Code:
but your Admin side doesn't: Code:
So... go edit your skin1/single/home.tpl file.... |
|||||||||
#7
|
|||||||
|
|||||||
Thanks!
That worked out well, thank tou very much! I had to also add the javascript code into that file as well, thanks again!
__________________
Never believe anything you hear and only half of what you see! Edward J Ziejka www.innervisionpc.com X-Cart Gold 4.1.3 Unix |
|||||||
|
|||
X-Cart forums © 2001-2020
|