[align=center]just want to share this, if already posted here or not useful and potentially harmful

, mod please delete my post
Credits:
www.freewebknowledge.com
[/align]
[b]Using just this, you could make a script to alert people as to what browser they are using (just to bug them). Like this:[/b]

[spoiler]<!--
var browserName=navigator.appName;
if (browserName=="Netscape")
{
alert("Hi, !! "+pageViewerFName+" !! Firefox User!");
}
else
{
if (browserName=="Microsoft Internet Explorer")
{
alert("Hi, !! "+pageViewerFName+" !! Explorer User!");
}
else
{
alert("!! "+pageViewerFName+" !! What ARE you browsing with here?");
}
}
//-->[/spoiler]
[b]alert viewers as to whether their browser is new enough for us or not: [/b]
[spoiler]<!--
var browserVer=parseInt(navigator.appVersion);
if (browserVer >= 4)
{
alert("Hi, !! "+pageViewerFName+" !! Your browser is new enough for my site.");
}
else
{
alert("Hi, !! "+pageViewerFName+" !! I think you need a new browser!");
}
//-->[/spoiler]
[b]certain set of browsers and only if they are above a certain version: [/b]
[spoiler]<!--
var browserName=navigator.appName;
var browserVer=parseInt(navigator.appVersion);
if ((browserName=="Netscape" && browserVer>

) || (browserName=="Microsoft Internet Explorer" && browserVer>=4))
version="n3";
else
version="n2";
if (version=="n3")
alert("Hi, !! "+pageViewerFName+" !! Your browser passes the test");
else
alert("Hi, !! "+pageViewerFName+" !! You need an upgrade, I think.");
//-->[/spoiler]
PREVIEW: [url=http://profiles.friendster.com/103009407]GLOBAL WARMING IS NOT A JOKE[/url]
[align=center][spoiler]don't forget my + repu...

[/spoiler][/align]
[align=center][b][color=blue]Friendster Tricks and Tutorials[/color][/b][/align]
[align=center][b]Floating and fadeing message boxes (updated)[/b]
http://theftalk.com/t37574-Floating-and-fadeing-message-boxes.html
[b]Smooth Background Random Fader[/b]
http://theftalk.com/t37576-Smooth-Background-Random-Fader.html
[b]JavaScript Browser Detection[/b]
http://theftalk.com/t41129-JavaScript-Browser-Detection.html
[b]Gum Slideshow 3.11 (ShoutOut)[/b]
[url]http://theftalk.com/t49501-Gum-Slideshow-3.11-(ShoutOut).html[/url][/align]
Last edited by mabuhay (2009-05-27 15:15:13)