Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
Wrap your embedded content in a <noscript> tag with class="ACSel". eg:
<noscript class="ACSel">
<object classid=".....>
....
</object>
</noscript>
Then add this to your <head>:
<script type="text/javascript" src="activecontent.js"> </script>
Add 'onload="rewriteContent();"' to your body tag.
Finally create a file called "activecontent.js" with the below script. Note, you have to put the function in an external script. It cannot be in-line...
code:
function rewriteContent() {
var v=document.getElementsByTagName("noscript");
for(i=0;i<v.length;i++){
if(v.className=="ACSel"){
var el=v;
var nel=document.createElement("span");//create new span element to hold content
nel.innerHTML=el.innerHTML;// fill the newly inserted span with the active content
el.parentNode.replaceChild(nel,el); // and replace the <noscript> element with the <span> element
}
}
}
[Edited on 23-01-2007 by Antz]
|
Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
Oh.... I tried this on 2 flash elements on one page but it did wierd things...
It seems only to work on one element per page.. wich is ok for now, I guess.
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Theres a press release article thingy about it here
http://www.adobe.com/devnet/activecontent/articles/devletter.html
|
Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
yeah, that's all my code will do... it writes the object from outide the file and iserts it back in
|
Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
the way that page explains it all is like going via london to get from Leeds to Brdford... mins is simple... but not o efective.
|