Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 21st, 2010 | Syntax: JavaScript | Size: 2.64 KB | Hits: 113 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1.     <script language="Javascript" type="text/javascript">
  2.     //<![CDATA[
  3.         google.load("jquery", "1.4.2");
  4.         google.load("jqueryui", "1.7.2");
  5.         function OnLoad() {
  6.             $("#pbh").click(function(){
  7.                 $(".cont").hide();
  8.                 $("#plainblock").show();
  9.             });
  10.  
  11.             $("#ibh").click(function(){
  12.                 $(".cont").hide();
  13.                 $("#imgblock").show();
  14.             });
  15.  
  16.             $("#ebh").click(function(){
  17.                 $(".cont").hide();
  18.                 $("#embedblock").show();
  19.             });
  20.  
  21.             $("#abh").click(function(){
  22.                 $(".cont").hide();
  23.                 $("#audioblock").show();
  24.             });
  25.  
  26.             $("#vbh").click(function(){
  27.                 $(".cont").hide();
  28.                 $("#videoblock").show();
  29.             });
  30.  
  31.             $("#sethtml").click(function(){
  32.                 $("#individual").hide(); $("#setindividual").css("weight","normal");
  33.                 $("#full").show(); $("#sethtml").css("weight","bold");
  34.                 $("#individual input:checkbox").each( function() {this.checked = false;});
  35.             });
  36.  
  37.             $("#setindividual").click(function(){
  38.  
  39.                 $("#individual").show(); $("#setindividual").css("weight","bold");
  40.                 $("#full").hide(); $("#sethtml").css("weight","normal");
  41.                 $("#full input:checkbox").each( function() {this.checked = false;});
  42.             });
  43.  
  44.  
  45.             function getPreviewData() {
  46.                       return "<slide id='0'><title>html</title><thumbnail></thumbnail><background id='0'><color>#404040</color><pattern/><image/><style>centered</style></background><elements><element id='0' container_id='0'><type>text</type><x>0</x><y>0</y><width>600</width><height>380</height><textType>normal_text</textType><text><![CDATA[ Is it really worth a couple of Benjamins with <a href='http://www.engadget.com/2010/03/18/windows-phone-7-series-the-complete-guide/'>Windows Phone 7 Series</a> just a few months away? Head on past the break if you'd care to be reminded of just how painful it is to know that this WinMo 6.5-packin' gem <a href='http://www.engadget.com/2010/03/15/confirmed-htc-hd2-will-not-be-upgraded-to-windows-phone-7-serie/'>won't ever be upgradable</a> (natively, anyway) to WP7S.
  47. ]]></text><fontTag>avenir_lt</fontTag><fontSize>12</fontSize><color>#fffffe</color><bold>0</bold><italic>0</italic><underline>0</underline><align>left</align></element></elements></slide>";
  48.             }
  49.             $( '#player' )[0].showPreview( getPreviewData());
  50.  
  51.         }
  52.         google.setOnLoadCallback(OnLoad);
  53.     //]]>
  54.     </script>