striker Posted December 8, 2004 Share Posted December 8, 2004 Still . . if anybody knows the code that makes that only IE users will get a special message:"Download a real browser, get Firefox" . . . . .Wow, that'll be fun... come on guys and galls, who takes the challenge ? Quote Link to comment Share on other sites More sharing options...
Ed_P Posted December 8, 2004 Share Posted December 8, 2004 <script LANGUAGE="JavaScript"><!-- if (navigator.appName == "Microsoft Internet Explorer") {document.write("Download a real browser, get <A HREF='http://www.mozilla.org/products/firefox/'>Firefox"</A>);}// --></SCRIPT> Quote Link to comment Share on other sites More sharing options...
Bruno Posted December 8, 2004 Author Share Posted December 8, 2004 Hi EdThat looks brilliant !! . . what does it do, do they get a pop-up . . can they still continue to see my site ? ( or do they need to push a button to continue ? )What if I want to add a line: Download a real browser, get Firefox     Or switch to LinuxBoth centered ?And where do I place the code ? Bruno Quote Link to comment Share on other sites More sharing options...
Ed_P Posted December 8, 2004 Share Posted December 8, 2004 what does it doIt writes a line of code to the webpage that contains the text and link you specified.do they get a pop-upNo.can they still continue to see my siteYes. Though if they find the text insulting they may leave. do they need to push a button to continueNo.What if I want to add a lineTypical client. Once the revised specs are approved and mgnt and Audit sign off we can.... <script LANGUAGE="JavaScript"><!-- if (navigator.appName == "Microsoft Internet Explorer") {document.write("Download a real browser, get <A HREF='http://www.mozilla.org/products/firefox/'>Firefox"</A><BR>Or switch to Linux);}// --></SCRIPT> Both centered ?<sigh>.... <center><script LANGUAGE="JavaScript"><!-- if (navigator.appName == "Microsoft Internet Explorer") {document.write("Download a real browser, get <A HREF='http://www.mozilla.org/products/firefox/'>Firefox"</A><BR>Or switch to Linux);}// --></SCRIPT></center> And where do I place the code ?Where ever in the Body of the page you would like the line(s) to appear. The top would probably be the most obvious but the bottom would work also and be a good place to test it.Ok? Quote Link to comment Share on other sites More sharing options...
Bruno Posted December 8, 2004 Author Share Posted December 8, 2004 LOL ! . . . I am starting to like this project ;)You're a star Ed !!! . . . Thanks for your patience ;)Now here is a testpage: ( Placed it at the top )http://www.brunolinux.com/div/IE-index.htmlHow does that look ?? Is it big enough ?? Should it be in RED ? BrunoPS: Can somebody post a screnshot ? Quote Link to comment Share on other sites More sharing options...
Ed_P Posted December 8, 2004 Share Posted December 8, 2004 PS: Can somebody post a screnshot ?You wouldn't like what you see. The line is not showing.However, until I, or someone, figures that out I strongly recommend you remove your email links for the page. SPAMmer bots will key off them. There is a way to mask them using Javascript also which we can look at later. Quote Link to comment Share on other sites More sharing options...
Bruno Posted December 8, 2004 Author Share Posted December 8, 2004 Hi Ed:( . . . . . .that is a pity . . . About the email address . . . the main one is already in javascript ( http://automaticlabs.com/products/enkoderform ) so that one is safe . . . the other one is dispensable and the problem for putting that one in javascript was that it displayed in a blue color and underlined . . something that did not match the other links in the gray line and does not show if people have no java. ( And Linux has a great spamfilter )Thanks for your concern though :DB) Bruno Quote Link to comment Share on other sites More sharing options...
teacher Posted December 8, 2004 Share Posted December 8, 2004 I took a screenshot and sent it to you! By the way your links to your graphics are broken on this copy. Quote Link to comment Share on other sites More sharing options...
striker Posted December 8, 2004 Share Posted December 8, 2004 see your mailbox bruno ... screenshot .Sorry Teacher, we crossposted ! Quote Link to comment Share on other sites More sharing options...
teacher Posted December 8, 2004 Share Posted December 8, 2004 Way to go Striker. Great minds think alike! Quote Link to comment Share on other sites More sharing options...
Bruno Posted December 8, 2004 Author Share Posted December 8, 2004 Thanks folks !! . . I will upload it to the "real" index page . . . :DWhat do you think . . does it need RED ?? BrunoUPDATE: It is UP Quote Link to comment Share on other sites More sharing options...
teacher Posted December 8, 2004 Share Posted December 8, 2004 Red would be nice but it works the way it is! Quote Link to comment Share on other sites More sharing options...
Bruno Posted December 8, 2004 Author Share Posted December 8, 2004 This would be in color:http://www.brunolinux.com/div/IE-2-index.htmlThsi is the black one:http://www.brunolinux.com is updatedB) Bruno Quote Link to comment Share on other sites More sharing options...
Ed_P Posted December 8, 2004 Share Posted December 8, 2004 Ok, I'm back.D'oh! I didn't see it before 'cause I was viewing it in Netscape!!! :">If you aren't going to use two lines you can remove the trailing <BR>s. The code simply produces line breaks. To space the word Download away from the word Explorer you can add " " in front of the word Download. And you can repeat that if you want more distance, ie " ".Making IE bold and Linux red would be interesting. Quote Link to comment Share on other sites More sharing options...
Bruno Posted December 8, 2004 Author Share Posted December 8, 2004 :w00t:Geat job Ed !!!I did put in the <BR><BR> because I wanted some distance from the title "Tips for Linux Explorers" in the case the message showed.I will play a bit with the signs . . . and am still not 100% sure if I really do want the color . . . . just waiting to see it myself tomorrow when I am at work.Thanks a bundle !! BrunoFor people wanting to see a screenshot: http://www.brunolinux.com/div/IE6SP1.gif ( made by Striker ) Quote Link to comment Share on other sites More sharing options...
Neil P Posted December 9, 2004 Share Posted December 9, 2004 I like the idea, but why not use an ALERT, so that it pops up? (I don't think you can change the color, though I don't know enuogh javascript....)Otherwise, this is a great idea, and I'm glad to see it. You could point to http://getfirefox.com, which takes you to the same place (and in theory prevents a change on the mozilla.org homepage from affecting your links--since they can just redirect getfirefox.com to the new location)It is a shame that Microsoft can't put out a good web browser. Hopefully with the news that they are again working on it, we'll see some more innovation and some better competition.Bruno, have you seen nvu? Daniel Glazman is doing some wonderful things with it, and it is really shaping up to be a great product (just released 0.60 the other day). If you haven't seen it, it is Mozilla Composer split off and based on the new toolkit, just like Firefox and Thunderbird are.By the way, I'm glad to see the site up! (I already bookmarked it on del.icio.us!):w00tx100:Neil Quote Link to comment Share on other sites More sharing options...
Ed_P Posted December 9, 2004 Share Posted December 9, 2004 Geat job Ed !!!Thank you. Glad to have helped. I did put in the <BR><BR> because I wanted some distance from the title "Tips for Linux Explorers" in the case the message showed.That's fine. I just wasn't sure you did it intentionally.I will play a bit with the signs . . . and am still not 100% sure if I really do want the color . . . . just waiting to see it myself tomorrow when I am at work.The bold for IE is easy to do. The Firefoxx part has some considerations to be, well, er, considered. Firefox is a link. The color of visited and unvisited links can be set in the Body statement, but that effects ALL links. I think what you want is just the Firefox link changed. It may be able to be done via the DIV statement, but I don't know that for a fact having never used one before. Quote Link to comment Share on other sites More sharing options...
Bruno Posted December 9, 2004 Author Share Posted December 9, 2004 Hello dear friends,I was able to see the site in IE at work today: It looks GREAT !! That java-script works perfect and displays the line just like I wanted it.Pay-back time: Finally revenge for all the nagging screens I always get that say I have to get the latest version of Internet Explorer to see the site ! Such satisfaction !Neil: I changed the link to the one you suggested . . . but showing the FF logo would be a bit too much . . . I like my site to look clean and add-free, quick loading also on dial-up. Up to now I had visitors from Korea, Japan, South Africa, Trinidad and Tobago, Belarus, Iceland, Israel, Romania, Poland, Greece Portugal, Malaysia, Sweden, Denmark, Spain, Mexico, Finland, Pakistan, Italy, Brazil, Norway, Germany, Singapore, Holland, Switzerland, Turkey, Russia, Bulgaria, Canada, France, Belgium, United Kingdom, Australia and of course you folk from the US . . . . . and they do not all have broadband.Thanks to everybody that helped to fine-tune the site !!! Bruno Quote Link to comment Share on other sites More sharing options...
teacher Posted December 9, 2004 Share Posted December 9, 2004 Wow! That is a lot of countries. Next thing you will be /.ed and then the server will crash. :) Quote Link to comment Share on other sites More sharing options...
Bruno Posted December 9, 2004 Author Share Posted December 9, 2004 and then the server will crash. No way . . this is a Dutch server . . . does the name nluug ring a bell ?? Bruno Quote Link to comment Share on other sites More sharing options...
teacher Posted December 9, 2004 Share Posted December 9, 2004 Cool! I did not know they were the ones hosting it! Way to go! Quote Link to comment Share on other sites More sharing options...
striker Posted December 9, 2004 Share Posted December 9, 2004 No way . . this is a Dutch server . . . does the name nluug ring a bell ??are you challenging us ? (just kidding)Way to go Bruno, it looks good in every aspect. Quote Link to comment Share on other sites More sharing options...
Neil P Posted December 9, 2004 Share Posted December 9, 2004 Excellent Bruno!!Keep up the good work!(have you seen/used N|vu?):w00tx100:Neil Quote Link to comment Share on other sites More sharing options...
Bruno Posted December 9, 2004 Author Share Posted December 9, 2004 Hi NeilNVU . . . now I see what you said in the other post . . . I thought you wrote VNU the publisher of Business Media . . . :DNo I have not tried or even ever heard of Nvu ( I see it is from Lindows ) . . . This was the first time I ever did anything in html . . ( I always tried to stay away from it ) . . and for the moment I will continue with the tools I have on my system now: Mozilla Composer, Quanta, and Kedit or Kate for the edits.Man, this is all very new to me, and it is complicated enough as it is :DB) Bruno Quote Link to comment Share on other sites More sharing options...
teacher Posted December 9, 2004 Share Posted December 9, 2004 For a first time, you did pretty good Bruno. All that practice with BB code sure must have paid off. Changing the [ to < does not take that much to learn. Quote Link to comment Share on other sites More sharing options...
Bruno Posted December 10, 2004 Author Share Posted December 10, 2004 Thanks you teach . . . does that mean I passed the exam . . and do I get an A ? :)When will you send me my certificate ? Bruno Quote Link to comment Share on other sites More sharing options...
Neil P Posted December 10, 2004 Share Posted December 10, 2004 Hi NeilNVU . . . now I see what you said in the other post . . . I thought you wrote VNU the publisher of Business Media . . . :DNo I have not tried or even ever heard of Nvu ( I see it is from Lindows ) . . . This was the first time I ever did anything in html . . ( I always tried to stay away from it ) . . and for the moment I will continue with the tools I have on my system now: Mozilla Composer, Quanta, and Kedit or Kate for the edits.Man, this is all very new to me, and it is complicated enough as it is :DB) BrunoIt is a very good tool (it is just backed financially by Linspire, I don't know that they make any actual decisions on it. It is developed by Disruptive Innovations, which was founded by Daniel Glazman, who is the owner of the Composer module of Mozilla :'( ) Mozilla Composer isn't any "worse" than Nvu, just Nvu has more active development. Eventually, Daniel said he was going to give the code he did on Nvu back to Composer (not sure when though)Either way, you can't go wrong!:w00tx100:Neil Quote Link to comment Share on other sites More sharing options...
teacher Posted December 10, 2004 Share Posted December 10, 2004 Better than that, I found a diploma for you! You are an ELF - Educated Languaged Filecoder! Congratulations. 4.0 out of 4.0! Quote Link to comment Share on other sites More sharing options...
Bruno Posted December 10, 2004 Author Share Posted December 10, 2004 Hi Neil,Thanks for the info . . . so basically you say that I can just as well continue to use Mozilla . . . :)Julia,Thanks a million . . . now I can go to html-university :DB) Bruno Quote Link to comment Share on other sites More sharing options...
Neil P Posted December 12, 2004 Share Posted December 12, 2004 Bruno!!This is right up your alley!...from the Browse Happy people.:w00tx100:Neil 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.