Şimdi Ara

Devamını gör butonu

Bu Konudaki Kullanıcılar:
2 Misafir - 2 Masaüstü
5 sn
4
Cevap
0
Favori
2.098
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • Bu işlerde yeniyim, bir şey sormak istiyorum. Bir web sayfasına biraz fazla içerik koydum. Bu içeriğin bir bölümünü devamını gör butonu ile gizlemek istiyorum. Sayfanın en aşağısında buluncaka ve tıklandığında başka bir sayfaya yönlendirmeyecek. Facebook veya twitter gibi aşağı dolacak gönderiler.

    Daha yeniyim dediğim gibi javascript falan pek bilmiyorum. Amatörce buişi yapmaya çalışıyorum. Anlatım açık olursa sevinirim.



  • ingilizce biliyorsanız:http://www.cssnewbie.com/showhide-content-css-javascript/ yeterli. yapamazsanız yazın, yardımcı olmaya çalışacağım.
  • quote:

    Orijinalden alıntı: Junkie.

    ingilizce biliyorsanız:http://www.cssnewbie.com/showhide-content-css-javascript/ yeterli. yapamazsanız yazın, yardımcı olmaya çalışacağım.

    Hocam ben şu an sadece çok basit html biliyorum. Css veya javascript falan hiç bilmiyorum. İngilizcem de orta seviyede. Siz bana burdaki kodları nereye yapıştırmam gerektiğini söyleyebilirseniz iyi olur. Yani <head> </head> arasına ne gelecek <body> </body> arasına ne gelecek gibi.




  • şöyle komple head bloguna kopyalayın:

     
    <script language="javascript" type="text/javascript">
    function showHide(shID) {
    if (document.getElementById(shID)) {
    if (document.getElementById(shID+'-show').style.display != 'none') {
    document.getElementById(shID+'-show').style.display = 'none';
    document.getElementById(shID).style.display = 'block';
    }
    else {
    document.getElementById(shID+'-show').style.display = 'inline';
    document.getElementById(shID).style.display = 'none';
    }
    }
    }
    </script>
    <style type="text/css">
    /* This CSS is just for presentational purposes. */
    body {
    font-size: 62.5%;
    background-color: #777; }
    #wrap {
    font: 1.3em/1.3 Arial, Helvetica, sans-serif;
    width: 30em;
    margin: 0 auto;
    padding: 1em;
    background-color: #fff; }
    h1 {
    font-size: 200%; }

    /* This CSS is used for the Show/Hide functionality. */
    .more {
    display: none;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666; }
    a.showLink, a.hideLink {
    text-decoration: none;
    color: #36f;
    padding-left: 8px;
    background: transparent url(down.gif) no-repeat left; }
    a.hideLink {
    background: transparent url(up.gif) no-repeat left; }
    a.showLink:hover, a.hideLink:hover {
    border-bottom: 1px dotted #36f; }
    </style>



    şunuda body bloguna:

     
    <div id="wrap">
    <h1>Bu Başlığı Silebilirsin</h1>
    <p>This example shows you how to create a show/hide container using a couple of links, a div, a few lines of CSS, and some JavaScript to manipulate our CSS. Just click on the "see more" link at the end of this paragraph to see the technique in action, and be sure to view the source to see how it all works together. <a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=64389680&url=#" id="example-show" class="showLink" onclick="showHide('example');return false;" data-href="#" id="example-show" class="showLink" onclick="showHide('example');return false;">Devamını gör.</a></p>
    <div id="example" class="more">
    <p>Congratulations! You've found the magic hidden text! Clicking the link below will hide this content again.</p>
    <p><a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=64389680&url=#" id="example-hide" class="hideLink" onclick="showHide('example');return false;" data-href="#" id="example-hide" class="hideLink" onclick="showHide('example');return false;">Gizle.</a></p>
    </div>
    </div>





  • Yapay Zeka’dan İlgili Konular
    Daha Fazla Göster
    
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.