isntworkdull
09-22-2008, 01:01 PM
1) Script Title: Switch Content Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
Hi all, This isnt a major problem, but i am using the above script and my page wont pass the WC3 validator because of the code :
bobexample.setStatus('<img src="../jscripts/close.gif" alt="close" /> ', '<img src="../jscripts/open.gif" alt="open" /> ')
the validator says :
Line 890, Column 68: document type does not allow element "img" here.
…"../jscripts/close.gif" alt="close" /> ', '<img src="../jscripts/open.gif" al....
anyone know a way around this? worse comes to the worse i will just leave it as is and not have the page validated as i like this script.
thanks
James
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
Hi all, This isnt a major problem, but i am using the above script and my page wont pass the WC3 validator because of the code :
bobexample.setStatus('<img src="../jscripts/close.gif" alt="close" /> ', '<img src="../jscripts/open.gif" alt="open" /> ')
the validator says :
Line 890, Column 68: document type does not allow element "img" here.
…"../jscripts/close.gif" alt="close" /> ', '<img src="../jscripts/open.gif" al....
anyone know a way around this? worse comes to the worse i will just leave it as is and not have the page validated as i like this script.
thanks
James