On my minerals and crystals website at http://www.absolutequartzcrystals.com
, I am trying to add a short video clip of each item along with the pictures.
I am using a program which converts .wmv to .flv as well as generating the java code to call and play the flash video like this:
Upgrade your Flash Player to version 8 to view this video! (<a href=http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player.exe target=_blank>Click here for the download</a>)<br><br><a href="http://www.videowebwizard.com">Add streaming video to your website</a>
var so = new SWFObject("Midnight.swf?path=test2.FLV&buffersize= 0&startauto=false&redirect=", "index", "340", "300", "8", "#ffffff");
It works great when I cut and paste the code directly into the page but I need to call the vids dynamically as there is a different on for each item, so I hard code the first bit of the java into my page, and then pull the second bit (everything after the </div>) from my database like so
The trouble is that when I do this, instead of executing the code, it displays it on the site as text (see http://www.absolutequartzcrystals.com/crystals-members/crystalsale.asp?Name='Pair+Of+Mahogany+Goblets%2E% 2E'&ProdID=1162 for an example.
How do I make the java work instead of displaying as text?