suport Posted November 2, 2009 Report Share Posted November 2, 2009 Esmu redzejis sadu scirptu , vabut kads var pateikt kodu .. Tas ir ta , kad ejot caur IE saits vnk izmet kkadu logu un parada jebkadu tekstu piemram "Nav iespējams attēlot lapu caur Internet Explorer versijām: 5,6,7,8 " Un saits iet tikaj uz Firefox un opera .. Kads varetu iemest scriptu ! Quote Link to comment Share on other sites More sharing options...
mefisto Posted November 2, 2009 Report Share Posted November 2, 2009 Ja tev ir tik līkas rokas, ka tu nevari panākt, ka lapa strādā uz IE, tad varbūt nevajag censties. Kļūsti par agronomu .. vai deputātu. Un ko tu nākamo gribēsi ? Sktiptu kas parāda logu " lapa paredzēta tikai 1280x1024 monitoriem " ?? Quote Link to comment Share on other sites More sharing options...
briedis Posted November 2, 2009 Report Share Posted November 2, 2009 (edited) <!--[if IE]> IE only code here. <![endif]--> Piekritīsim mefisto, tā tomēr ir stulba ideja. Edited November 2, 2009 by briedis Quote Link to comment Share on other sites More sharing options...
suport Posted November 2, 2009 Author Report Share Posted November 2, 2009 :( diemzhel nemaku gan uz IE gan UZ FF uzkodet . nav tadas pagaidam prasmes . ! Esmu iesacejs ! Quote Link to comment Share on other sites More sharing options...
briedis Posted November 2, 2009 Report Share Posted November 2, 2009 :( diemzhel nemaku gan uz IE gan UZ FF uzkodet . nav tadas pagaidam prasmes . ! Esmu iesacejs ! Ko tad tu jautā tik salīdzinošu specifisku jautājumu, ja pat html pamatus neproti? Quote Link to comment Share on other sites More sharing options...
Indian Posted November 3, 2009 Report Share Posted November 3, 2009 <script type="text/javascript"> <!-- 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="otherpage.html"; } //--> </script> Quote Link to comment Share on other sites More sharing options...
briedis Posted November 3, 2009 Report Share Posted November 3, 2009 Indian, un kāpēc ne ... <!--[if IE]> <script type="text/javascript"> window.location="otherpage.html"; </script> <![endif]--> Quote Link to comment Share on other sites More sharing options...
alfinsh Posted November 3, 2009 Report Share Posted November 3, 2009 tāpec ka tavs nestrādās uz 7 un 8 :) Quote Link to comment Share on other sites More sharing options...
briedis Posted November 3, 2009 Report Share Posted November 3, 2009 tāpec ka tavs nestrādās uz 7 un 8 :) Pārbaudīji faktus, vai tikai mini? :) Quote Link to comment Share on other sites More sharing options...
alfinsh Posted November 3, 2009 Report Share Posted November 3, 2009 pārbaudīju jau sen :) tā kā nav jāmin Quote Link to comment Share on other sites More sharing options...
briedis Posted November 3, 2009 Report Share Posted November 3, 2009 (edited) pārbaudīju jau sen :) tā kā nav jāmin Un kāpēc man uz IE8 strādā? Dokumentācija: http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx [..]Conditional comments make it easy for developers to take advantage of the enhanced features offered by Microsoft Internet Explorer 5 and later versions[..] Edited November 3, 2009 by briedis Quote Link to comment Share on other sites More sharing options...
alfinsh Posted November 3, 2009 Report Share Posted November 3, 2009 (edited) zinu ka man ar bija problēmas ar lapas kodējumu , uz pc bija pašam IE 7 , ieplivināju kodu un nostrādāja tikai uz IE6 un 7 negāja. par 8 vārdus ņemu atpakaļ jo uz tā nebiju provējis. a varbūt kods mums nedaudz atšķīrās . kartā ziņā tūlīt iečekošu. Edīte : Jam man kods bija nedaudz nedaudz savādāks. ņemu vārdus atpakaļ. Lietojams variants. Tiesa pārbaudīju gan uz IE8. 7 neskatījos Edited November 3, 2009 by alfinsh 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.