Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Rollovers

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-29-2003, 12:55 PM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default 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
Reply With Quote
  #2  
Old 10-29-2003, 01:06 PM
 
Gibberish Gibberish is offline
 

Senior Member
  
Join Date: Sep 2003
Posts: 182
 

Default

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?
Reply With Quote
  #3  
Old 10-29-2003, 01:19 PM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default 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
Reply With Quote
  #4  
Old 10-29-2003, 01:26 PM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default 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
Reply With Quote
  #5  
Old 11-16-2003, 11:52 AM
 
concepts concepts is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 104
 

Default

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.
Reply With Quote
  #6  
Old 11-17-2003, 08:55 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Its your <BODY> tag.

The customer side contains the code to preload the images:

Code:
<body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 onLoad="MM_preloadImages('http://www.innervisionhost.com/images/top_right.gif','http://www.innervisionhost.com/images/home-over.gif','http://www.innervisionhost.com/images/support-over.gif','http://www.innervisionhost.com/images/domains-over.gif','http://www.innervisionhost.com/images/contact-over.gif')">

but your Admin side doesn't:

Code:
<body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>

So... go edit your skin1/single/home.tpl file....
Reply With Quote
  #7  
Old 11-17-2003, 12:12 PM
 
EZ EZ is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Old Bridge, NJ
Posts: 96
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:18 PM.

   

 
X-Cart forums © 2001-2020