acoolie
Guest
|
Yeah, it's not Perl. Good guess though.
|
|
|
|
|
|
acoolie: if its not perl it must be cgi or pear... thats the only things i can think of ok this should be easy but its a giggle lol function testbrowser(){ var x = navigator; var b = x.appName; if(b == "Microsoft Internet Explorer") { alert('You are currently surfing using an IE based browser, you really should switch to FireFox') var getit = confirm('Download firefox?'); if(getit ==true) { location.href='http://www.ie7.com'; } if(getit == false){ alert('That wasn\'t the answer i was looking for... i\'m becoming annoyed...'); var striketwo = confirm('Try again? download firefox?'); if(striketwo == true){ location.href='http://www.ie7.com'; } if(striketwo == false){ alert('RIGHT THATS IT I AM PISSED OFF NOW'); location.href='http://www.ie7.com'; } } } }
Last Edit: Mar 30, 2006 4:58:42 GMT by Llanilek
|
|
|
|
|
you can only post a code when you've guessed the language and what the code does correctly. And It's not cgi or pear
|
|
|
|
I wanna say C or C++, but I have no clue.
|
|
|
|
|
I know it but don't wanna post it cause I cheated XD
|
|
|
|
blah. It's Ruby and it prints out "Peter is a n00b" 5 times. anyone can take my spot to post a code.
|
|
|
|
function testbrowser(){ var x = navigator; var b = x.appName;
if(b == "Microsoft Internet Explorer") { alert('You are currently surfing using an IE based browser, you really should switch to FireFox') var getit = confirm('Download firefox?'); if(getit ==true) { location.href='http://www.ie7.com'; } if(getit == false){ alert('That wasn\'t the answer i was looking for... i\'m becoming annoyed...'); var striketwo = confirm('Try again? download firefox?'); if(striketwo == true){ location.href='http://www.ie7.com'; } if(striketwo == false){ alert('RIGHT THATS IT I AM PISSED OFF NOW'); location.href='http://www.ie7.com'; } } } }
|
|
|
|
|
Javascript, and it does nothing cause its never called. But what it would do is give them two tries to get Ff if they're using IE.
|
|
|
|
|
then what would it do? lol
|
|
|
|
acoolie
Guest
|
blah. It's Ruby and it prints out "Peter is a n00b" 5 times. anyone can take my spot to post a code. >_> Also, CGI and Pear aren't even languages =P Anyways, Perl is the best guess. Ruby is basically an extension on Perl.
|
|
|
|
Then it would redirect them to IE. function misfits(clash){ var casualties = document.getElementById(clash); var sham69 = none; if(casualties.style.display==sham69){ casualties.style.display=""; } else{ casualties.style.display=sham69; }
Last Edit: Apr 3, 2006 4:37:38 GMT by Nate
|
|
|
|
Nate, that'd error out like hell. And it'd redirect them to ie7.com, which is an ad site for FF.
|
|
|
|
|
OK tested this one function misfits(clash){ var casualties = document.getElementById(clash); if(casualties.style.display == "none"){ casualties.style.display = ""; } else{ casualties.style.display = "none"; } }
|
|
|