Now I'm attempting to do it with the .js technique, and it still wont display.
if I go to http://www.tops-malibu.com/includes/...topsbanner.swf it loads up.
The js is clearly loading a space for the flash. Ack.
Now I'm attempting to do it with the .js technique, and it still wont display.
if I go to http://www.tops-malibu.com/includes/...topsbanner.swf it loads up.
The js is clearly loading a space for the flash. Ack.
This is my javascript code, stored in includes/templates/TopsMalibu/jscript/
This is the code i've inserted into the define pages main page:Code:document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'); document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"'); document.write('WIDTH="607" HEIGHT="290" id="topsbanner" ALIGN="">'); document.write('<PARAM NAME=movie VALUE="http://www.tops-malibu.com/includes/templates/TopsMalibu/TopsBanner/topsbanner.swf"> <PARAM NAME=loop VALUE=true> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#ffffff> <EMBED src="http://www.tops-malibu.com/includes/templates/TopsMalibu/TopsBanner/topsbanner.swf" loop=true menu=false quality=high bg############################## WIDTH="607" HEIGHT="290" NAME="topsbanner" ALIGN=""'); document.write('TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>'); document.write('</OBJECT>');
The swf is located at http://www.tops-malibu.com/includes/...topsbanner.swfCode:<script src="includes/templates/TopsMalibu/jscript/topsbanner.js"></script>
All I get is a white box.
Maybe I'm missing something, but that puts a flash banner in a sidebox.. not what I need.
Or does it load Jscript in an invisible sidebox that lets me put flash on the define page and I'm just missing it?
Does it not contain swfobject.js file so your define main
page code would look something like..
i.e.
Code:<script type="text/javascript" src="includes/templates/classic/js/swfobject.js"></script> <div id="flashcontent"> <center> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/...ersion=4,0,0,0" id="photo_tutorial" width="560" height="450"> <param name="movie" value="photo_tutorial.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#FFFFFF"> <embed name="photo_tutorial" src="photo_tutorial.swf" quality="high" bgcolor="#FFFFFF" width="560" height="450" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash"> </embed> </object> </center> <script type="text/javascript"> var so = new SWFObject("includes/templates/classic/photo_tutorial.swf", "YOUR_HEADER", "560", "450", "7", "#FFFFFF"); so.write("flashcontent"); </script> </div>
Boy that's a large loader... Your code inserting the flash is correct... but your action script is not following. Where did you but the xml file? Your action script says it should be at the rootimageData.load("imageData.xml');tops-maibu.com/imageData.xml
Some of these loaders require the swf and xml files to be at the root. If your the coder of the swf, then you may need to play with the addressing until you get it... imageData.load("includes/templates/TopsMalibu/TopsBanner/imageData.xml');
If your not the coder, then try placing the xml at the root and then check the image pathways in your xml. They may need to find the swf!
Dave
Always forward thinking... Lost my mind!