11 May
2008
11 May
'08
11:23 p.m.
Hi Mike, \]Ok I found the \['example'\] but that leaves the AEBtn_0.jpb
I am trying to manipulate some image files using JavaScript.
But when I insert a tag as follows the javascript []'s get interpretted as a wiki link,
<a href="/Sandbox/WebHome" onMousedown="document.images['example'].src=img2.src" onMouseup="document.images['example'].src=img1.src"> <<mg src={image:AEBtn_0.jpg} name="example" border=0></a>
To prevent the wiki syntax from being interpreted in javascript code you should use the {pre} tag : {pre} <code type="javascript"> some javascript code here </code> {/pre} It's the only exception : though it is a {} tag it needs to be closed with {/} (while {table} is closed {table} for instance). Guillaume