Posts: 1754 Location: Earth, Europe, the Netherlands, Rotterdam
Tue 02 Feb, 2010 00:30
looking at this youtube code closely (maybe too close?? :mrorange: ) i noticed this throws w3c errors on the pages it is used (6 i think)
so i started messing with this, so far i have this:
<div id="utube{SIMPLETEXT}"></div>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/flashfix.js"></script>
<script type="text/javascript">
var fo = new FlashObject("http://www.youtube.com/v/{SIMPLETEXT}", "mymovie", "425", "350","7");
fo.addParam("wmode", "transparent");
fo.addVariable("tab", getQueryParamValue("tab"));
fo.write("utube{SIMPLETEXT}");
</script>
wich throws me no error UNLESS someone would post the same video on the same page (because the video's simpletext gives the div id its name) so i actually need another or a better variable to give the div a unique id, it would be great if the user would not have to type anything extra to get it (just like it does now)
any ideas anyone? :idea: