Welcome To Snipplr
Everyone's Recent Snippets Tagged browser
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
https://www.chrisjmendez.com/2008/10/18/jquery-detecting-a-browser-resize/
8
1356
posted 16 years ago by chrisaiv
https://www.chrisjmendez.com/2008/10/18/jquery-common-browser-sniffing/
6
935
posted 16 years ago by chrisaiv
Modified just a bit. This version includes the Google Chrome beta.
2
876
posted 16 years ago by wizard04
When you klick a link in Firefox... there is a dotted outline. Hide it with outline:none.
0
641
posted 16 years ago by FlashJunior
Bugfix/Lösungsvorschlag:
Es ist offensichtlich, dass die Zelle mit der ID cell3467 und dem definierten "margin-right: 3.09%" falsch berechnet wird - nämlich mit realen 16 Pixeln anstatt 8 - und auf den obersten Basis-Wert der "DIV width" zurück...
1
862
posted 16 years ago by bassdas
Note that the comment is part of the code here. IE 5+ (including Mac) will evaluate to true by using conditional compilation.
0
798
posted 16 years ago by cczona
„Versioning and Cross-document InteractionInternet Explorer 8 introduces the IE8 standards mode by default—this lets Web designers use the latest rendering features available in Internet Explorer 8. In addition to layout changes, IE8 standards mo...
3
1178
posted 16 years ago by localhorst
There must also be a JavaScript function defined in the containing HTML page:
function makePopup(url,pop_name,width,height) {
window.open(url, pop_name, "width="+width+",height="+height+",resizable=yes,scrollbars=yes");
}
1
857
posted 17 years ago by Bonky
echo ( browser_detection( 'number' ) .''.
browser_detection( 'browser' ) .''.
browser_detection( 'os' ) .''.
browser_detection( 'os_number' ) );
Outputs (browser version, browser, os, os number):
1.5
moz
nt
5.1
if ( ( browser_de...
2
1118
posted 17 years ago by llbbl
This functions allows you to create a new XMLHTTPRequest, it checks to see if the browser supports each method, if not it returns false.
4
1132
posted 17 years ago by 1man
A great script that will serve up stylesheets based on browser viewport size.
5
1144
posted 17 years ago by aznprncritic
A useful but often overrated JavaScript function is the browser detect. Sometimes you want to give specific instructions or load a new page in case the viewer uses, for instance, Safari.
Copy this script into your JavaScript files. It works immedi...
1
919
posted 18 years ago by jonhenshaw
Heres how to use
print_r(browser_detection('full'));
We can also use this script
print "IP: ". $_SERVER['REMOTE_ADDR'].""; ### IP ADDRESS ##
print "Browser:" . $_SERVER["HTTP_USER_AGENT"].""; ## Browser
print "OS: ". $_ENV["OS"]; ### OS
8
944
posted 18 years ago by mail_json
Support: Fx2, Opera9, IE6
I don't have warrant of Safari's run and NN4. However, I think that this code is perhaps safe.
3
679
posted 18 years ago by kif
This is a way to determine if the browser uses the KHTML engine or if it is the Konqueror Browser.
2
1027
posted 18 years ago by rolandog
Deals with the fact that mouse buttons are referenced in different ways by different browsers.
0
1256
posted 18 years ago by MyKey_