coops
11-03-2003, 02:06 PM
*i have read the previous post and poked about in the search! :)
i can't explain this, i've got an accessible menu with onfoucs,onblur,mouse... and function(s) which performs the rollovers. there's an issue with the onfocus and onmouseover conflicts but it never works without throwing an *alert in the work...(*commented) - coops
function rollOut(element,path){
var imagePath="";
if(!path){
var imageSrc=document[element].src;
//alert(imageSrc)
var imageExten=imageSrc.substring(imageSrc.length,imageSrc.length - 4);
//alert(imageSrc)
imagePath=imageSrc.substr(0,imageSrc.indexOf('_on'))+imageExten;
//alert(imageSrc)
//alert(imagePath)
}else{
imagePath=path;
}
//window.status=imagePath;
document[element].src=imagePath;
}
i can't explain this, i've got an accessible menu with onfoucs,onblur,mouse... and function(s) which performs the rollovers. there's an issue with the onfocus and onmouseover conflicts but it never works without throwing an *alert in the work...(*commented) - coops
function rollOut(element,path){
var imagePath="";
if(!path){
var imageSrc=document[element].src;
//alert(imageSrc)
var imageExten=imageSrc.substring(imageSrc.length,imageSrc.length - 4);
//alert(imageSrc)
imagePath=imageSrc.substr(0,imageSrc.indexOf('_on'))+imageExten;
//alert(imageSrc)
//alert(imagePath)
}else{
imagePath=path;
}
//window.status=imagePath;
document[element].src=imagePath;
}