if(widgetStylesPrinted != true) {document.write('');}var widgetStylesPrinted = true;var content = '
video serch
javascript
  1. <script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAA_gp1ke_m2OuI0tWxO0eExhTsIYGkRK1p1cgWKBrHqTcTYjMhqBRKGGnd4FUMaj2HbdMBZ4jmyQSmTw" type="text/JavaScript"></script> <link href="http://www.google.com/uds/css/gsearch.css" rel="stylesheet" type="text/css"/>
  2.  
  3. <script src="http://www.google.com/uds/solutions/videobar/gsvideobar.js" type="text/JavaScript"></script> <link href="http://www.google.com/uds/solutions/videobar/gsvideobar.css" rel="stylesheet" type="text/css"/>
  4.  
  5.  
  6. <style type="text/css">
  7. .gsc-control form.gsc-search-box { display : none; }
  8. #searchForm { width : 150px;}
  9. #video { width : 160px;}
  10. #videoBar { margin: 0px; padding : 0px; }
  11. .playerInnerBox_gsvb .player_gsvb {width : 460px; height : 374px; }
  12. </style>
  13.  
  14. <script type="text/JavaScript">
  15. function cse() {
  16. var sFormDiv = document.getElementById("searchForm");
  17. this.searchForm = new GSearchForm(true, sFormDiv);
  18. this.searchForm.setOnSubmitCallback(this, cse.prototype.onSubmit);
  19. this.searchForm.setOnClearCallback(this, cse.prototype.onClear);
  20. var videoBarDiv = document.getElementById("videoBar");
  21. var videoPlayerDiv = document.getElementById("videoPlayer");
  22. var vboptions = {
  23. largeResultSet :false,
  24. horizontal : false
  25. }
  26. this.videoBar = new GSvideoBar(videoBarDiv, GSvideoBar.PLAYER_ROOT_FLOATING, vboptions);
  27. this.searchForm.execute("Manipulaciones Gibbons");
  28. }
  29. cse.prototype.onSubmit = function(form) {
  30. var q = form.input.value;
  31. if (q && q!= "") {
  32. this.videoBar.execute(q);
  33. } return false;
  34. }
  35. cse.prototype.onClear = function(form) {
  36. this.videoBar.clearAllResults();
  37. form.input.value = "";
  38. return false;
  39. }
  40. function OnLoad() { new cse(); }
  41. GSearch.setOnLoadCallback(OnLoad);
  42. </script>
  43.  
  44. <div id="video">
  45. <div id="searchForm"></div>
  46. <div id="videoPlayer"></div>
  47. <div id="videoBar">Loading...</div>
  48. </div>
';document.write(content);