vit320
Member-
Posts
50 -
Joined
-
Last visited
vit320's Achievements
Newbie (1/14)
106
Reputation
-
look this page and look header menu with image www.ga-ga-garage.com i want take the source code of the script that realize the image menu. Looking at source code i see this : <script language="JavaScript" type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc; } 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.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}} } 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[n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.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))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> after this (but i don't understood why previous script is inside a REM) i see this part of html...(see functions declared in javascript?) <td width="92" height="125" align="left"><img src="menu_up/grey_sx_down_1024.jpg" width="92" height="126"></td> <td width="145" align="right"><img src="menu_up/home_1024.jpg" width="142" height="126"></td> <td width="131"><a href="storia/storia.htm" target="_self" onMouseOver="MM_swapImage('Storia','','menu_up/storia02_1024.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="menu_up/storia01_1024.jpg" alt="Storia" name="Storia" width="131" height="126" border="0"></a></td> <td width="156"><a href="personaggi/beppe.htm" target="_self" onMouseOver="MM_swapImage('Personaggi','','menu_up/personaggi02_1024.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="menu_up/personaggi01_1024.jpg" alt="Personaggi" name="Personaggi" width="156" height="126" border="0"></a></td> <td width="140"><a href="progetti/progetti.htm" target="_self" onMouseOver="MM_swapImage('Progetti','','menu_up/progetti02_1024.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="menu_up/progetti01_1024.jpg" alt="Progetti" name="Progetti" width="140" height="126" border="0"></a></td> <td width="137"><a href="comics/comics.htm" target="_self" onMouseOver="MM_swapImage('Comics','','menu_up/comics02_1024.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="menu_up/comics01_1024.jpg" alt="Comics" name="Comics" width="137" height="126" border="0"></a></td> <td width="140"><a href="news/news.htm" target="_top" onMouseOver="MM_swapImage('News','','menu_up/news02_1024.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="menu_up/news01_1024.jpg" alt="News" name="News" width="139" height="126" border="0"></a></td> <td width="89"><img src="menu_up/grey_dx_down_1024.jpg" width="89" height="126"></td> So i think i can reuse this script i copy it in main.php but page result broken. what i lost?
-
yes another example is prestashop and ok i can modify source, but my question is about this! I don't want modify source code to obtain this result, i think that seeing price of cubecart, i want (if team make them) this features as cubecart embedded! No ticket! hovewer i ask to me if there are other users that want this features :-) how we can say in my country : i launch a rock!
-
Some suggestions about using 2 or more template inside a site.
vit320 replied to vit320's topic in Customising Look & Feel
Ok i will try this and i wiil show you result. thanks -
relative to shake and connection with ajax request, this can create problem inside cart transition? or buy procedure work regularly? i don't need that cart button shake.
-
nobody want that each box present in cart can be deactivate/activated inside admin panel? At this time i know that if i remove for example $CATEGORIES, i can remove list of categoris from template but when i want reinsert this feature i must modify source template! I will prefer a sort of admin for each box in template like active/ non active inside admin panel, and if possibile i will want an association with box and page, that is i want categories are showed in some page and in other not! is it possible?
-
seems that the modify on js/common.js it's not necessary. It already work without this modification. it's really necessary or can avoid it? thanks for help.
-
just modifyed this script to fit into my table..but when i click add product, tha table that is around basket script become a recursive table like attached image. I see the part of script... {foreach from=$CONTENTS item=item} <li> <span class="price">{$item.total}</span> <a href="{$item.link}" title="{$item.name}">{$item.quantity} × {$item.name_abbrev}</a> </li> {/foreach} but i ask this content is inside a <td> why it do this effect? look photo and try on www.pcutile.it to add some product to see recursive table...:-( i want obtain only a table that contain box.basket.php N.B: after adding several product and see recursive table..(it's a sample name ok?) if press F5 it update correctly why?
-
problem with space between cell of a table
vit320 replied to vit320's topic in Customising Look & Feel
yes finally it work, GREAT BSMITHER, many thanks to all for help :-) -
problem with space between cell of a table
vit320 replied to vit320's topic in Customising Look & Feel
this menu voice is related to vanilla skin, but the problem is in table, that is simple table inserted for example in content of page give same error..look at this time..it's a simple table that if i use it how .html works well but inside kurouto (or when it is parsed via cubecart) it is showed as is now! http://www.pcutile.it/index.php it is evident at this time that tables are cutted in rows!! why happen this? this is inside common.css table { border: 0px; border-collapse: collapse; border-spacing: 0; } table td, table th { border: 0px; border-collapse: collapse; border-spacing: 0; } -
problem with space between cell of a table
vit320 replied to vit320's topic in Customising Look & Feel
EXTRA NOTE: sure i not modified any menu settings in all common.css and other problem is showed in CONTENT area always at the same effect. this is what you ask #menu { list-style: none outside !important; margin: 0px; margin-top: 1px; } #menu ul { display: none; list-style: none outside !important; padding-left: 7px; } #menu li { min-height: 20px; border-bottom: 1px dotted #959595; } #menu li > a { display: block; line-height: 20px; text-indent: 0px; } #menu > li > a { text-indent: 12px !important; height: 38px; line-height: 38px; font-weight: bold; } #menu > li > a.menu_closed { background-image: url(../images/menu_top_closed.png); } #menu > li > a.menu_open { background-image: url(../images/menu_top_open.png) !important; } #menu > li > a.menu_closed, #menu > li > a.menu_open { background: no-repeat 0px; } #menu > li > ul { padding-left: 15px; } #menu li:first-child { border-top: none; } #menu li:last-child { border-bottom: none; } -
problem with space between cell of a table
vit320 replied to vit320's topic in Customising Look & Feel
dirty butter... you be sure for me...i write software since 1983 i know what is a text file! Obvious i use notepad and i like it for typing source code. So i have tried several change but nothing, it's at this time if i use simple html without skin it work..inside skyn (any) it make this effect. I read and re-read css file and try to make some modication but NOTHING :-(. thanks hovewer for your help but I had never thought that i can't insert a simple table inside my document in cubecart (because i have used procedure of cart modifing a home page as document and copy past my code in fsck editor, but result is the same). Where is the problem? -
problem with space between cell of a table
vit320 replied to vit320's topic in Customising Look & Feel
This for Bsmither..i will try to put all code in a line... i see that when i insert my coode int editor for example to make home page content, editor seems put other code inside the part betweeen <td>...</td>, for example it insert and format my html in a different code with space tha i don't want..why this? another..code make the same effect if i insert it in editor inside admin..so if i want make a table inside my content i can't? why this? code is only that and follow all requisite because it's is verified with validator and validator say it's ok.. -
problem with space between cell of a table
vit320 replied to vit320's topic in Customising Look & Feel
nothing is changed. Code result always with space between cells. see you with vanilla skin..www.pcutile.it