Actinic doesn't seem to want to run the javascript I have in my fragment.
If I make a simple <HTML><BODY> etc file and put the javascript in - it works perfectly, however not inside the fragment. Am I missing a step as actinic seems to insert its own junk inside it?
Below is the code before
Code once actinic has had a hold of it
If I make a simple <HTML><BODY> etc file and put the javascript in - it works perfectly, however not inside the fragment. Am I missing a step as actinic seems to insert its own junk inside it?
Below is the code before
HTML Code:
<script language="JavaScript"> <!-- function random_imglink(){ var myimages=new Array() //specify random images below. You can have as many as you wish myimages[1]="logo.jpg" myimages[2]="logo2.jpg" myimages[3]="logo3.jpg" //specify corresponding links below var imagelinks=new Array() imagelinks[1]="http://www.url.com" imagelinks[2]="http://www.url.com" imagelinks[3]="http://www.url.net" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>') } random_imglink() //--> </script>
HTML Code:
<script language="JavaScript"> <!-- function random_imglink(){ var myimages=new Array() //specify random images below. You can have as many as you wish myimages<Actinic:Variable Name = '1'/>="http://www.gilmoursportsfieldhockey.com/acatalog/logo.jpg" myimages<Actinic:Variable Name = '2'/>="http://www.gilmoursportsfieldhockey.com/acatalog/logo.jpg" myimages<Actinic:Variable Name = '3'/>="http://www.gilmoursportsfieldhockey.com/acatalog/logo.jpg" //specify corresponding links below var imagelinks=new Array() imagelinks<Actinic:Variable Name = '1'/>="http://www.wsabstract.com" imagelinks<Actinic:Variable Name = '2'/>="http://www.dynamicdrive.com" imagelinks<Actinic:Variable Name = '3'/>="http://www.java-scripts.net" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<a href='+'"'+imagelinks<Actinic:Variable Name = 'ry'/>+'"'+'><img src="'+myimages<Actinic:Variable Name = 'ry'/>+'" border=0></a>') } random_imglink() //--> </script>
Comment