solutie
06-09-2005, 03:28 PM
DD provided the following script.
function makevisible(cur,which){
//Highlight image script- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use
strength=(which==0)? 1 : 0.2
if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*100
}
IE recognizes an error in line:
else if (cur.filters)
Error message: Class has not been registered.
It seems to be a problem on my local machine and I know that it has worked befor allright. What might have happened to generate this error and what is the solution? Thanks.
function makevisible(cur,which){
//Highlight image script- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use
strength=(which==0)? 1 : 0.2
if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*100
}
IE recognizes an error in line:
else if (cur.filters)
Error message: Class has not been registered.
It seems to be a problem on my local machine and I know that it has worked befor allright. What might have happened to generate this error and what is the solution? Thanks.