I've tried a few things but nothing seems to work, i'm starting to think this isnt possible.
I basically am looking to have the user click on the video number, then have the video load in its own section on the page. I'm currently using iframes as a work around and have been trying to read up on Ajax as another way around it. Problem is, i think using iframes i'm losing important keywords that would usually be right on the page. i initially created the ifram because everytime a user clicked a video number, it had to reload the whole page. plus i rather not use iframes at all if I didn't have to.
Can someone take a look at the code below? Any help is appreciated as usual...
original page I'd like to implement this is at www.dontsnooze. com
I'm testing this code below at www.dontsnooze. com/test
Code doesn't work currently:
I basically am looking to have the user click on the video number, then have the video load in its own section on the page. I'm currently using iframes as a work around and have been trying to read up on Ajax as another way around it. Problem is, i think using iframes i'm losing important keywords that would usually be right on the page. i initially created the ifram because everytime a user clicked a video number, it had to reload the whole page. plus i rather not use iframes at all if I didn't have to.
Can someone take a look at the code below? Any help is appreciated as usual...
original page I'd like to implement this is at www.dontsnooze. com
I'm testing this code below at www.dontsnooze. com/test
Code doesn't work currently:
Code:
<HTML>
<HEAD>
<script type="text/JavaScript">
function flashSwitch(flashid, video) {
document.getElementById(flashid).value = "AmosFlash.swf";
document.getElementById(flashid).src = "AmosFlash.swf";
}
</script></HEAD>
<TITLE>Ajax Video Switch Test</TITLE>
<BODY>
<center>
<table border=0 cellspacing=20>
<object id="ajaxtest" width="550" height="400">
<param id="ajaxtest" name="ajaxtest" value="StickFigureAnimated.swf">
<embed id="ajaxtest" name="ajaxtest" src="StickFigureAnimated.swf" width="550" height="400">
</embed>
</object>
<P>
<input type="submit" value="TRYME" onclick="flashSwitch('ajaxtest','AmosFlash.swf')" >
</td>
</tr>
</table>
</center>
</body>
</html>
Comment