2005-04-11 10:25:46
Import SPIP content
Hi it's me again,
I was wondering, is it possible to import SPIP easily ?
I would like also to display ELM files (E-Learning Maker), that are xml files displayed through a flash player.
Here is the code I use today to display my ELM files in a html page :
[quote]<SCRIPT language='javascript'>
var sParameters = unescape(window.location.search.substring(1));
// appel de la page, exemple : testeur.htm?surldata=C:/Mondossier/&ssconame=Eval3A&sxmlfile=seance_auteur.xml&stype=seance&sindex=3&lookurl=C:/MondossierLook/look_auteur.xml
// IExplorer
document.writeln('<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ID="player_edoceo" WIDTH="780" height="568">');
document.writeln('<param name="allowScriptAccess" value="sameDomain">');
document.writeln('<param name="movie" value="player_edoceo.swf?' + sParameters + ' ">');
document.writeln('<param name="quality" value="high">');
document.writeln('<param name="bgcolor" value="#FFFBDE">');
// Netscape
document.writeln('<EMBED SRC="player_edoceo.swf?' + sParameters + '" quality="high" bgcolor="#FFFBDE" width="790" height="575" name="player_edoceo" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"' + '>');
document.writeln('</EMBED></OBJECT>');
</SCRIPT> [/quote]
Of course, this is Javascript, and not really accessible, but for now we are going to keep those files and see how to change them later on...