Hi MTD,
I'm going to have to disagree with your diagnosis.
MTD wrote:...then I get an undefined error in line 24 in the "milonic_src.js" file. So style="prop:val;" is mandatory or else it's not working.
As John says, the following line from the howtobuild.txt file
aI("text=`<form style="prop:val;"><input name=txt></form>`;");
Is meant as a sort of example template... the
format you should follow, not the exact code to put in. Just as the following code from the same .txt file:
with(milonic=new menuname("mainmenu")){
PARAMETERS. . . .
PARAMETERS. . . .
}
is meant as a format to follow, not actual code to use to define a menu.
There is nothing in the menu system that requires or even recognizes
as part of the code used to build a menu item. It's simply the format you follow when applying a style (in the menu or in any otehr html).
MTD wrote:If it's there in the sample and it causes an error, it must has something to do with the menu.
It's an unfortunate fact of javascript that the error codes and locations you get often have very little to do with the actual nature and location of the error. In this case, there's something else wrong in the menu code, but it has nothing to do with style=prop:val. I'm thinking that you might want to try not using the back quotes, remove the <div></div>, change all of the
/> to
>, and specify type=html in your aI() definition. I tried the following modification of the aI() code you posted, and it worked just fine (all on one line in your .js file, no line breaks):
Code: Select all
aI("type=html;text=<object classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 width=375 height=22 id=bande_laurendeau align=middle><param name=wmode value=transparent><param name=allowScriptAccess value=sameDomain><param name=movie value=bande_laurendeau.swf><param name=quality value=high><param name=bgcolor value=#ffffff><embed src=bande_laurendeau.swf quality=high bgcolor=#ffffff width=375 height=22 name=bande_laurendeau align=middle allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer></object>;");
Give that a shot and see if it works for you. Come on back if it doesn't and we'll figure it out.
Cheers,
Kevin