• 05-08-2012, 14:13:51
    #1
    Arkadaşlar,
    Kodlar tam olarak bunlar, Londra 2012 Olimpiyatları videolarını göstereceğim sitemde. Ancak javayı çalıştıramadım bir türlü. Nerede hata yapıyorum acaba?
    <?php
    /*
    Template Name: London 2012
    */
    get_header();
    get_sidebar();
    ?>
    <br><br>
      <head>
    <META http-equiv=content-type content=text/html;charset=iso-8859-9>
    <META http-equiv=content-type content=text/html;charset=windows-1254>
    <META http-equiv=content-type content=text/html;charset=x-mac-turkish>
        <style>
          * { margin:0; padding:0; border:0; outline:0; }
          body { font:15pt Tahoma; background:#131313; color:#000; }
          .idTabs { margin:15px; }
          .idTabs ul { background:#222; padding:5px; float:left; }
          .idTabs li { list-style:none; /*Try deleting this float*/ float:left; }
          .idTabs a { display:block; background:#222; color:snow; padding-top: 0px; padding:0 13px; font:bold 15pt Arial; text-decoration:none; }
          .idTabs a.selected { background:#FFF; color:#000; }
    	  .items div { display:none; position:absolute; top:55; left:30; bottom: 455px; padding-top:6px; }
          .idTabs ul, .idTabs a { border-radius:94px; -moz-border-radius:4px;}
        </style>
      </head>
      <body>
        <div class="idTabs">
          <ul>
            <li><a href="#one">1.Gün</a></li>
            <li><a href="#two">2.Gün</a></li>
            <!-- Try adding this <br/> tag here -->
            <li><a href="#three">3.Gün</a></li>
            <li><a href="#four">4.Gün</a></li>
          </ul>
          <div class="items">
            <div id="one">Welcome to <b>idTabs</b>!</div>
            <div id="two">You can do anything with <b>idTabs</b>.</div>
            <div id="three">Anything at all.</div>
            <div class="four">The only limit,<br></div><br>
          </div>
        </div>
        <script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript" src="jquery.idTabs.js"></script>
        <script>
          // Try uncommenting some of these examples
          // Mouseover Tabs
          //$(".idTabs").idTabs("!mouseover");
          // Url Saving Tabs
          //$(".idTabs").idTabs(true,location.hash);
        </script>
      </body>
    <?php get_footer(); ?>
  • 05-08-2012, 15:14:26
    #2
    JavaScript dosyalarının tam adreslerini vermen lazım. Böyle yaparsan, eğer tema klasörü içerisinde jquery.js ve jquery.idTabs.js dosyaları (sayfa şablonunun PHP dosyasıyla aynı dizinde) bulunmazsa haliyle yükleyemez.