I'm using a simple function and an anchor tag inside of paragraphs to insert video code and images into locations in web pages.
Code:function insert(s, tag){ document.getElementById(tag).innerHTML = s; }I'm not too familiar with javascript and don't know how to handle code for videos. Let me start simple though; I can't print a quotation mark; this won't work:Code:<A HREF="javascript:insert('test123 123', 'test')"> test</a> <div id='test'></div>
Ultimately, I'd like to use one function to handle inserting all sorts of video and also diverse code like:Code:<A HREF="javascript:insert('\"hello world, look, I'm inside of quotations\" ', 'test')"> test</a> <div id='test'></div>
Code:example 1: <img src='...... example2: <object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/oqI6oOmOyJU&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/oqI6oOmOyJU&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object> example 2) <object width="480" height="365"><param name="movie" value="http://www.dailymotion.com/swf/x807h2&related=0"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/x807h2&related=0" type="application/x-shockwave-flash" width="480" height="365" allowfullscreen="true" allowscriptaccess="always"></embed></object> example 3) <table><tr><td>...


Reply With Quote
Bookmarks