[Nite]


Nite ist ein Applet, welches Bookmarks speichern kann.

[HTML-Code]

Button, um Nite zu starten
<form>
<input type="button" value="Launch Nite" onclick="openNite()">
</form>

dazugehöriges JavaScript
<script language="Javascript">
function openNite() {
var isNS6 = (document.getElementById&&!document.all)
? 1 : 0;
if (isNS6 == 1) {
var jav_var;
jav_var = (new java.lang.Boolean(true)).booleanValue()
;
}
this.name = "nite_parent";
nite_window = null;
nite_window=open('Niteapp/nite.html','nite','toolbar=no,status=no,width=210,height=390');
}
</script>

Applet- Page
<script language="Javascript">

var isNS6 = (document.getElementById&&!document.all)
? 1 : 0;
var isIE = (document.all) ? 1 : 0;
setInterval("checkParent()", 1000)

function deal_with_error(msg, url, line) {
  self.close();
}

self.onerror = deal_with_error;

function checkParent(){
if (window.opener.document.URL == 'undefined') {close();}
}

function loadUrl(url) {
window.opener.document.location.href=unescape(url);
//open(unescape(url),window.opener.name);
}

function setCookie(name, value, path)
{
var today = new Date()
var expires = new Date()
expires.setTime(today.getTime() + 1000*60*60*24*365)
disp = name + "=" + escape(value)   + "; expires=" + expires.toGMTString()
if (path != "undefined"){
disp += "; path=" + path
}
document.cookie = disp
}

// Function is used only if precise string length is required
function getLength(value) {
return escape(value).length
}

function getCookie(name) {
var search = name + "="
if (document.cookie.length > 0) { // if there are any cookies
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
  offset += search.length
  // set index of beginning of value
  end = document.cookie.indexOf(";", offset)
  // set index of end of cookie value
  if (end == -1)
  end = document.cookie.length
  return unescape(document.cookie.substring(offset, end))
}
}
}

</script>

<applet id="navfav" name="navfav" archive="nclass.zip" code="navfav.class" width="210" height="390" MAYSCRIPT>
</applet>

[Beschreibung der Parameter]

keine Parameter

[Autor]

NavSurf

[Download]

Copyright © 1998- Nightfire Java Archiv Applet No: 363