Visa ett inlägg
Oläst 2006-04-23, 19:13 #6
creowebs avatar
creoweb creoweb är inte uppkopplad
Mycket flitig postare
 
Reg.datum: Apr 2004
Inlägg: 588
creoweb creoweb är inte uppkopplad
Mycket flitig postare
creowebs avatar
 
Reg.datum: Apr 2004
Inlägg: 588
För er som inte löst detta ännu delar jag med mig av min lösning jag laddade ner från nätet idag.
Det fungerar för mig.

Håll till godo!

/Jonas

Placera inom <head></head>
<script language="JScript" type="text/jscript" src="activateActiveX_onload.js"></script>


Html-filen Justera width, height, källa för resp. objekt
Kod:
	<object CLASSID="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="792" HEIGHT="68" ID="mymoviename">
 <param NAME="movie" VALUE="filen.swf"></param>
 <param NAME="quality" VALUE="high"></param>
 <param NAME="bgcolor" VALUE=""></param>
 <embed SRC="filenswf" QUALITY="high" BGCOLOR="" WIDTH="792" HEIGHT="68" NAME="mymoviename" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
 </embed>
	</object>
JS-filen
Kod:
/*
activateActiveX
---------------
Purpose: *Dynamically replace any elements that will be affected by the new security feature in IE6/IE7 that requires a user to click certain types of elements to activate them before use.

Usage: *Include this file in the <head></head> section of your html document using the following...
	<script language="JScript" type="text/jscript" src="activateActiveX_onload.js"></script>


Since this script is in response to a software patent lawsuit, I feel it necessary to state the following...	

License:
activateActiveX is Copyright (C) 2006 Jason Baker (therippa AT gmail.com). It is available as open source code from:
[URL=http://therippa.blogspot.com]http://therippa.blogspot.com[/URL]

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details [URL=http://www.gnu.org/licenses/gpl.html]http://www.gnu.org/licenses/gpl.html[/URL]
*/

//trap onload event
window.onload = function () {
	//Determine browser, we only need this for Internet Explorer
	if (navigator.appName == "Microsoft Internet Explorer") {
 *
 *//Array of elements to be replaced
 *var arrElements = new Array(3);
 *arrElements[0] = "object";
 *arrElements[1] = "embed";
 *arrElements[2] = "applet";
	
 *
 *//Loop over element types
 *for (n = 0; n < arrElements.length; n++) {
 *
 *	//set object for brevity
 *	replaceObj = document.getElementsByTagName(arrElements[n]);
 *	
 *	//loop over element objects returned
 *	for (i = 0; i < replaceObj.length; i++ ) {
 *	
 * *//set parent object for brevity
 * *parentObj = replaceObj[i].parentNode;
 * *
 * *//grab the html inside of the element before removing it from the DOM
 * *newHTML = parentObj.innerHTML;
 * *
 * *//remove element from the DOM
 * *parentObj.removeChild(replaceObj[i]);
 * *
 * *//stick the element right back in, but as a new object
 * *parentObj.innerHTML = newHTML;
 *	
 * *}
 *	}
 *}
	}
creoweb är inte uppkopplad   Svara med citatSvara med citat