gunars Posted April 10, 2010 Report Share Posted April 10, 2010 (edited) Man head daļā ir "<script type="text/javascript" sr .js"></script>" teksta scripts, kurš ielādējās pie katra refreša. Atceros senāk izmantoju vienu koda gabalu (Aizmirsis līdz nullei, kautkas ar "if atļauja ja konkrētā lapa"), ar kuru varēja precizēt, tieši ar kādu lapu kopā viņam būtu atļauja ielādēties, bet izmantoju body daļā. Vai ir iespējams head daļā regulēt šādi? Kāds atcerās? tnx Edited April 10, 2010 by gunars Quote Link to comment Share on other sites More sharing options...
pilots Posted April 11, 2010 Report Share Posted April 11, 2010 (edited) if($lapa='taa-kur-vajag-js'){ echo '"<script type="text/javascript" sr .js"></script>"'; } $lapa.. vai nu kas tev tur ir.. Edited April 11, 2010 by pilots Quote Link to comment Share on other sites More sharing options...
daGrevis Posted April 11, 2010 Report Share Posted April 11, 2010 Nu, bet vai tad viņam šito nevajag nevis PHP, bet gan JS?? :) http://www.w3schools.com/JS/js_if_else.asp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.