• 11-09-2007, 13:12:52
    #1
    Üyeliği durduruldu
    DUyurular bölümününe arkaplan koymak stiyorum sizce css de nası bi oynama yapmalıyım ben napsam olmadı da ..
  • 11-09-2007, 13:24:26
    #2
    Alıntı
    // Show the news fader? (assuming there are things to show...)
    if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
    {
    echo '
    <table border="0" width="100%" class="tborder" cellspacing="' , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' : '0' , '" cellpadding="4" style="margin-bottom: 2ex;">
    <tr>
    <td class="catbg"> &nbsp;', $txt[102], '</td>
    </tr>
    <tr>
    <td valign="middle" align="center" height="60">';
    // Prepare all the javascript settings.
    echo '
    <div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>', $context['news_lines'][0], '</b></div>
    <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
    // The fading delay (in ms.)
    var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
    // Fade from... what text color? To which background color?
    var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
    // Surround each item with... anything special?
    var smfFadeBefore = "<b>", smfFadeAfter = "</b>";
    var foreColor, backEl, backColor;
    if (typeof(document.getElementById(\'smfFadeScroller\ ').currentStyle) != "undefined")
    {
    foreColor = document.getElementById(\'smfFadeScroller\').curre ntStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
    smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};
    backEl = document.getElementById(\'smfFadeScroller\');
    while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
    backEl = backEl.parentNode;
    backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
    smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
    }
    else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
    {
    foreColor = document.defaultView.getComputedStyle(document.get ElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
    smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};
    backEl = document.getElementById(\'smfFadeScroller\');
    while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
    backEl = backEl.parentNode;
    backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
    smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
    }
    // List all the lines of the news for display.
    var smfFadeContent = new Array(
    "', implode('",
    "', $context['fader_news_lines']), '"
    );
    // ]]></script>
    <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
    </td>
    </tr>
    </table>';
    }
    Bu kısım haber bölümünün kodları boardindex.template de <td valign="middle" align="center" height="60">'; bu kısımda haber bölümünün dışı css den bi class hazırlayım buna ekle

    .arka
    {
    background-color: #ffffff;
    }

    css ye böyle bişey ekle

    <td valign="middle" align="center" height="60">';

    bu koduda

    <td class="arka" valign="middle" align="center" height="60">';

    gibi bişey yap sanırım umuyorumki olacaktır
  • 11-09-2007, 14:59:57
    #3
    Üyeliği durduruldu
    ilgin için teşkrler ama sanırım mesjdaderdimi anlatamadım benim hatan arkaplan olarak resim koymayı düşünüyorum ..
  • 11-09-2007, 16:27:42
    #4
    background-image: url(images/arka.gif);

    css nin içine bunu ekle

    yani

    .arka
    {
    background-image: url(images/arka.gif);
    }
  • 11-09-2007, 20:29:46
    #5
    Üyeliği durduruldu
    buda olmadı ama ben başka bi yoldan halettim saolasın ..
  • 15-09-2007, 21:04:10
    #6
    Kimlik doğrulama veya yönetimden onay bekliyor.
    O başka yolu yazarsanız hem biz hem de çözüm için çaba gösteren arkadaşlar da bilgi sahibi olacaktır.