zzcoolzz Posted March 29, 2010 Report Share Posted March 29, 2010 Sveiki ! Man tads jautajums vai kads nevaretu pateikt ka to izdarit ir bijis tads scripts kas redirecte uz citu lapu kad atrod IE6-7 explorer (browser) <!--Start var browser = navigator.appName var ver = navigator.appVersion var thestart = parseFloat(ver.indexOf("MSIE"))+1 var brow_ver = parseFloat(ver.substring(thestart+4,thestart+7)) if ((browser=="Microsoft Internet Explorer") && (brow_ver < 7)) { window.location="http://manalapa/error.html"; } //End--> man vajag ta lai kad ar 8IE butu tas pats kas ar 7 un 6 IE (notiek redirect bet ar 8 NE ) BET man nestrada uz 8Ie esmu meiginajis visu mainit scripta un neko! taksto ka es esmu 4ainiks - ja varat palidzat :) Quote Link to comment Share on other sites More sharing options...
daGrevis Posted March 29, 2010 Report Share Posted March 29, 2010 (edited) 4ainiks. :D <!--[if lte IE 7]> <script type='text/javascript'> <!-- window.location = 'http://dagrevis.net/'; //--> </script> <![endif]--> Mēģini, tikko uzskricelēju! :D Edited March 29, 2010 by daGrevis Quote Link to comment Share on other sites More sharing options...
zzcoolzz Posted March 29, 2010 Author Report Share Posted March 29, 2010 Noop garam nau istais man vajag lai ar 8IE nevaretu iejiet weba piemeram! Webs ka redz ka useris ar IE 8 un vinu redirect uz google piemeram! P.s Pa 4ainiku to4ana es esmu 4ainiks! Quote Link to comment Share on other sites More sharing options...
daGrevis Posted March 29, 2010 Report Share Posted March 29, 2010 Tu pats esi garām. Kas tev neiet??! Quote Link to comment Share on other sites More sharing options...
waplet Posted March 29, 2010 Report Share Posted March 29, 2010 a tas , ka aizkomentēts script's tas nekas? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted March 29, 2010 Report Share Posted March 29, 2010 (edited) ...tur bija bags. Salaboju! Tikko pats notestēju -> iet! :) <!--[if lte IE 7]--> <script type='text/javascript'> <!-- window.location = 'http://dagrevis.net/'; //--> </script> <![endif]--> Heh, ta' vienkārši pamaini ko vajag... http://www.positioniseverything.net/articles/multiIE.html P.S. Jāliek starp 'head' tagiem! JS jābūt ieslēgtam! :P Edited March 30, 2010 by daGrevis 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.