Home: Other Programming Languages: Javascript:
snippets



benlawrie3
stranger

Jul 15, 2001, 6:56 AM


Views: 40033
snippets

I need a couple of scripts and i don't know if you can do it.
one simply displays the ip of the user
the other displays the security status of a page
i.e. if your on a ssl page then it prints secure if not then insecure.

any help appriciated.



BrightNail
Novice

Jul 28, 2001, 10:08 PM


Views: 40017
Re: snippets

Hey,
For the Secure Server Question....just check the URL string......ala

<script language="javascript">
if(document.URL.indexOf("https")!=-1){
document.write("<font size=1>"+'Secure Page+"</font>")
}else{ document.write ("Non-secure Page")}
</script>