Facebook Fan Page FBML

I want to incorporate this code in a Facebook Fan Page and have tried dozens of examples.
None of them work, so I'm missing something.

Here is the .htm:

<script language="JavaScript">
adImages=new Array("ls0.jpg","ls1.jpg","ls2.jpg","ls3.jpg","ls4.jpg","ls5.jpg","ls6.jpg");
adURL=new Array("","","","","","","");
adALT=new Array("A&S Landscaping","A&S Hardscaping","A&S Walkways","A&S Terracing","A&S Drainage","A&S Tree Trimming","A&S Lawn Care");

thisAd = 0
imgCt = adImages.length
adCt = adImages.length

function rotate() {
  if (document.images) {
    if (document.cycle.complete) {
        if (thisAd == imgCt && thisAd == adCt) {
          thisAd = 0
        document.cycle.src = "http://www.aandslandscaping.com/userfiles/image/"+adImages[thisAd];
        document.cycle.alt = "alt="+adALT[thisAd];
      setTimeout("rotate()", 4000)
function rotateLink() {
<body onload="rotate()">
<table align=center width=520  cellpadding=0 cellspacing=0 border=0>
<TD BGCOLOR="black" ALIGN="CENTER"  WIDTH="520" valign=middle>
<img src="userfiles/image/ls1.jpg" alt="St. Louis Landscaping" border="1" width="516" height=150 name="cycle">      
</TD></tr>  </table>
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dcassAuthor Commented:
From what I'm reading, this may be too advanced for EE, so just let me know.
Mike DSolution ConsultantCommented:
Hi dcass,

you Must have extreme trouble reading and your jibe towards EE is quite pathetic...

you can't incorporate JavaScript in an fbml page. You will either have to place all your images with style='visibility:hidden' and then use facebooks pseudo js Clicktoshow clicktohide etc. or have a starting fbml page and load your script with Ajax after some user interaction.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dcassAuthor Commented:
You were correct - I just wasn't far enough in to get it, but I did exactly that!
Mike DSolution ConsultantCommented:
Thanks for the points and sry for being a tad rude...

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.