Hain Operasta Googlella Lexmark
http://www.google.com/search?hl=fi&client=opera&rls=fi&hs=HwN&q=lexmark&btnG=Hae&lr=lang_fi
ja yritin linkistä suomenkieliselle Lexmark-tuotteiden sivulle. Sain tällaisen tuloksen
/WSR 709 - create new function to modify Content Item Url //to use the correct CIT Id when a different language is selected function goContentURL (language, url) { var hashLanguage = 0; var hashContent = 0; var newUrl = ""; if (url!='') { //if there is not matching content for language, use default url if(hashContent == 0) { window.top.location = url; } else { var contentId = hashContent; //match the content id for the language passed var firstCheck = url.indexOf('_'); firstCheck = firstCheck 1 var secondCheck = url.indexOf('_', firstCheck); secondCheck = secondCheck 1; var thirdCheck = url.indexOf('_', secondCheck); //strip the old content id value from the url var oldContentId = url.substring(secondCheck,thirdCheck); //replace the old content id with the new value newUrl = new String(url).replace('_' oldContentId '_', '_' contentId '_'); newUrl = alterPathModulo (newUrl, contentId); window.top.location = newUrl; } } } //WSR 709 - create new function to retrieve the Modulo value from initial Url and //rebuild the path function alterPathModulo (url, contentId) { var pathModulo; var mod_path = "/lexmark/product/home"; var mod_path_start_pos = url.indexOf(mod_path); if(mod_path_start_pos!=-1) { pathModulo = 1024 var newMod = contentId % pathModulo; //retrieve the old Modulo value from the initial Url var oldPath = url.substring(mod_path_start_pos mod_path.length 1, url.length); var oldPath_EndPos = oldPath.lastIndexOf("/"); var oldMod = old
Operassa on käyttökielenä suomi. Versio 9.23. XP Home. Onko kellään selitystä tälle? Mitä teillä näyttää?
http://www.google.com/search?hl=fi&client=opera&rls=fi&hs=HwN&q=lexmark&btnG=Hae&lr=lang_fi
ja yritin linkistä suomenkieliselle Lexmark-tuotteiden sivulle. Sain tällaisen tuloksen
/WSR 709 - create new function to modify Content Item Url //to use the correct CIT Id when a different language is selected function goContentURL (language, url) { var hashLanguage = 0; var hashContent = 0; var newUrl = ""; if (url!='') { //if there is not matching content for language, use default url if(hashContent == 0) { window.top.location = url; } else { var contentId = hashContent; //match the content id for the language passed var firstCheck = url.indexOf('_'); firstCheck = firstCheck 1 var secondCheck = url.indexOf('_', firstCheck); secondCheck = secondCheck 1; var thirdCheck = url.indexOf('_', secondCheck); //strip the old content id value from the url var oldContentId = url.substring(secondCheck,thirdCheck); //replace the old content id with the new value newUrl = new String(url).replace('_' oldContentId '_', '_' contentId '_'); newUrl = alterPathModulo (newUrl, contentId); window.top.location = newUrl; } } } //WSR 709 - create new function to retrieve the Modulo value from initial Url and //rebuild the path function alterPathModulo (url, contentId) { var pathModulo; var mod_path = "/lexmark/product/home"; var mod_path_start_pos = url.indexOf(mod_path); if(mod_path_start_pos!=-1) { pathModulo = 1024 var newMod = contentId % pathModulo; //retrieve the old Modulo value from the initial Url var oldPath = url.substring(mod_path_start_pos mod_path.length 1, url.length); var oldPath_EndPos = oldPath.lastIndexOf("/"); var oldMod = old
Operassa on käyttökielenä suomi. Versio 9.23. XP Home. Onko kellään selitystä tälle? Mitä teillä näyttää?
Vastaukset 1
Vanhimmat
...