Dieses Script funktioniert nur im ie:
es sollen Künstler als cookie gemerkt werden, eas muß ich ändern um es in netscape 7 funtionstüchtig zu machen???
var field = "artists="
var isIE = false
var isNN = false
var isDOM = false;
var isDomIE = false;
var isDomNN = false;
var layerok = false;
if (parseInt(navigator.appVersion)>=3) {
var n = navigator.appName
if (n == "Microsoft Internet Explorer") isIE = true
if (n == "Netscape") isNN = true
if (n == "Netscape") isDomNN = true
}
function getArtists() {
cookie = document.cookie
var i = cookie.indexOf(field)
if (i == -1)
return ''
var j = cookie.indexOf(";", i)
if (j == -1)
j = cookie.length
return unescape(cookie.substring(i+field.length,j))
}
function setArtist(artist) {
old_cookie = getArtists()
if (old_cookie == '') {
sep = ''
} else {
sep = ','
}
if (old_cookie.indexOf(artist) != -1)
return
old_cookie += sep+artist
document.cookie = field+old_cookie+";PATH=/";
}
function clearArtists() {
document.cookie = "artists=;PATH=/";
}
function putArtists() {
theArtist = getArtists()
a = theArtist.split(',')
theArtist = a.join('\n')
if (isNN) {
document.LayoutLYR.document.KunstForm1.kuenstlerfeld.value = theArtist
}
if (isIE) {
document.KunstForm1.kuenstlerfeld.value = theArtist
}
}
#############################################################
Fehlermeldung netcape:
Fehler: [Exception... "'Method not implemented' when calling method: [nsICmdLineHandler::chromeUrlForTask]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "<unknown>" data: no]
Vielen vielen Dank Tom