Jump to content

[issue] javascript warning


Recommended Posts

prestashop uses excessive js jquerys ...

and i love the result ;) but there should be a warning for users if they don't have js activated.

i've solved that by

editing the
/themes/{thema}/header.tpl

between {$HOOK_HEADER} and </head>

insert:

{literal}
       <style type="text/css">
       div#hide 
       { 
           position:absolute; 
           height:100%; 
           left:0; 
           width:100%; 
           color:#FF0000;
           background-color:#FFFFFF;
           opacity:0.6
       }     
       </style>

       [removed]
       <!--
       window.onload=function() {
       setTimeout('document.getElementById("hide").style.display="none"',0);
       return;
       }
       //-->
       [removed]




This page needs JScript to work

       {/literal} 



where the two [removed] tags are, insert script = text/javascript opening and closing elements

Link to comment
Share on other sites

×
×
  • Create New...