28173 sujets

CSS et mise en forme, CSS3

Slt,

Je me damande qu'elle doit être la meilleure attitude face aux script (js et je suis nul en js) fournis par les régies publicitaire aui rende les pages non valid (xhtml trans)

on n'a pas le choix..non ?

modifier les script ? heu .. là je ne sais pas trop faire et ca suppose savoir précisément ce que ca fait ..

Ben embêtant ca..

ex avec un tout petit carré de 125 qui fait arriver un flash pour Apple Store.

Ds ma page j'ai ajouté les 2 lignes de JS et ..voilà la tartine que ca génère avec 3 fautes au validateur

a écrit :

# Error Line 171 column 19: an attribute specification must start with a name or name token.

document.write('<sc'+'ript language="JavaScript" src="'+uri+'" charset="ISO-8859

An attribute name (and some attribute values) must start with one of a restricted set of characters. This error usually indicates that you have failed to add a closing quotation mark on a previous attribute value (so the attribute value looks like the start of a new attribute) or have used an attribute that is not defined (usually a typo in a common attribute name).

&#9993;
# Error Line 171 column 19: element "sc" undefined.

document.write('<sc'+'ript language="JavaScript" src="'+uri+'" charset="ISO-8859


&#9993;
# Error Line 171 column 88: delimiter "'" invalid: only S separators and TAGC allowed here.

...c="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');



<script language="javascript" type="text/javascript">
var uri = 'http://impfr.tradedoubler.com/imp/js/757541/1279088?' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript language="JavaScript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
</script><script language="JavaScript" src="http://impfr.tradedoubler.com/imp/js/757541/1279088?960122056" charset="ISO-8859-1"></script><script language="javascript">
var td_flashinstalled = 0;
var td_browserFlashversion = 0;
MSDetect = "false";
if (navigator.plugins && navigator.plugins.length){
	td_x = navigator.plugins["Shockwave Flash"];
	if (td_x){
		td_flashinstalled = 2;
		if (td_x.description){
			td_y = td_x.description;
			td_browserFlashversion = td_y.charAt(td_y.indexOf('.')-1);}} else {
		td_flashinstalled = 1; }
	if (navigator.plugins["Shockwave Flash 2.0"]){
		td_flashinstalled = 2;
		td_browserFlashversion = 2; }}
else if (navigator.mimeTypes && navigator.mimeTypes.length){
	td_x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (td_x && td_x.enabledPlugin)
		td_flashinstalled = 2;
	else
		td_flashinstalled = 1;
}
else{
	MSDetect = "true";}

</script><script language="VBScript">
on error resume next
If MSDetect = "true" Then
	For td_i = 2 to 9
		If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & td_i))) Then
		Else
			td_flashinstalled = 2
			td_browserFlashversion = td_i
		End If
	Next
End If
If td_flashinstalled = 0 Then
	td_flashinstalled = 1
End If

</script><script language="javascript">var td_width = "120";
var td_height = "120";
var td_flashFile = "http://promo.euro.apple.com/promo/Aff_Pro_Flash/SMB120.swf";
var td_flashVersion = "7,0,0,0";
var td_flashWindowMode = "window";
var td_backupImage = "null";
var td_linkUrl = "http%3A%2F%2Fclk.tradedoubler.com%2Fclick%3Fp%3D2701%26a%3D1279088%26g%3D757541";
var td_backupLinkUrl = "http://clk.tradedoubler.com/click?p=2701&a=1279088&g=757541";
var td_strFlash = "";
var td_strBackup = "";

</script><script language="javascript" src="http://hstse.tradedoubler.com/file/20649/flash/flash_embed.js">
</script><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0,0,0,0" wmode="window" id="td_flash" name="td_flash" height="120" width="120">
<param name="movie" value="http://promo.euro.apple.com/promo/Aff_Pro_Flash/SMB120.swf">
<param name="FlashVars" value="clickTAG=http%3A%2F%2Fclk.tradedoubler.com%2Fclick%3Fp%3D2701%26a%3D1279088%26g%3D757541">
<param name="wmode" value="window">
<param name="quality" value="best">
<param name="menu" value="false">
<embed src="http://promo.euro.apple.com/promo/Aff_Pro_Flash/SMB120.swf" flashvars="clickTAG=http%3A%2F%2Fclk.tradedoubler.com%2Fclick%3Fp%3D2701%26a%3D1279088%26g%3D757541" menu="false" quality="best" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" swliveconnect="true" wmode="window" id="td_flash" name="td_flash" height="120" width="120"></object>


Merci
Modifié par elz64 (05 Sep 2006 - 18:36)