aslanbey34 adlı üyeden alıntı:
mesajı görüntüle
sade tema veya jquery kullanan temalarda deneyiniz. motools benzeri kütüphanelerde sorun vermektedir
341
●66.539


<style>
table.haber_anasayfa {
border-left:1px #D0DCE7 solid;
border-top:1px #D0DCE7 solid;
border-right:1px #D0DCE7 solid;
border-bottom:1px #D0DCE7 solid;
width:450px;
}
td.haber_baslik {
font-family:Impact;
font:Impact;
font-size:26px;
}
.haber10 {
background:#FFF url(<?php bloginfo('template_url'); ?>/images/arrow-haber.png) no-repeat left center;
border-bottom:1px dotted #C3C3C3;
padding:2px 3px 1px 7px;
}
td.haber_1 {
border-left:1px #D0DCE7 solid;
border-top:1px #D0DCE7 solid;
font-weight:700;
}
td.haber_1_1 {
font-weight:700;
}
</style>
<?php
echo '<!-- Wordpress Manset Eklentisi NipHeLL Tarafindan Kodlanmistir. bozlak216@gmail.com -->';
$manset = mysql_query("SELECT * FROM ".$table_prefix."postmeta LEFT OUTER JOIN ".$table_prefix."posts ON ".$table_prefix."postmeta.post_id = ".$table_prefix."posts.id Where ".$table_prefix."postmeta.meta_key='manset' ORDER By ".$table_prefix."postmeta.post_id DESC Limit 15");
for ($j=0; $niphell=mysql_fetch_array($manset); $j++){
if ($j==0){ $durum = 'block'; }else{ $durum = 'none'; }
if ($j%2==0){ $back = 'e9eaef'; }else{ $back = 'ffffff'; }
$baslik .= '<div id=manset'.$j.'a style="DISPLAY: '.$durum.'"> '.$niphell[post_title].'</div>
';
$resim .= '<div id=manset'.$j.'c style="DISPLAY: '.$durum.'"><img width="230" height="172" style="padding:3px; border:1px solid #CACACA;" hspace="5" src="'.$niphell[meta_value].'"></div>
';
$baslik2 .= '<tr><td><div class="haber10" style="background-color:#'.$back.'"><a href="'.get_permalink($niphell[post_id]).'" onmouseover=showManset('.$j.')> <b>'.$niphell[post_title].'</b></a></div></td></tr>
';
$icerik .= '<div id=manset'.$j.'b style="DISPLAY: '.$durum.'"><font face="Arial" style="font-size:12px; "></font><br>'.substr($niphell[post_content],0,250).'</div>
';
$js .= "hide('manset".$j."a');hide('manset".$j."b');hide('manset".$j."c');
";
}
?>
<SCRIPT language=JavaScript>
function showManset(divID)
{
//alert("aa");
<?php echo $js; ?>
document.getElementById('manset'+divID+'a').style.display = 'block';
document.getElementById('manset'+divID+'b').style.display = 'block';
document.getElementById('manset'+divID+'c').style.display = 'block';
}
function hide(divID)
{
document.getElementById(''+divID+'').style.display = 'none';
}
</SCRIPT>
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="haber_anasayfa">
<tr>
<td colspan="2" class="haber_baslik" align="justify" style="padding:5px 5px 5px 10px;">
<!-- BASLIK -->
<?php echo $baslik; ?>
<!-- BASLIK BITIS -->
</td>
</tr>
<tr>
<td width="250" align="center" valign="top">
<!-- RESIM BASLANGIÇ -->
<?php echo $resim; ?>
<!-- RESIM BITISI -->
</td>
<td width="330" rowspan="2" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="98%">
<?php echo $baslik2; ?>
</table>
</td>
</tr>
<tr>
<td background="<?php bloginfo('template_url'); ?>/images/tadaltbg.gif">
<!-- GIRIS BASLANGIÇ -->
<?php echo $icerik; ?>
<!-- GIRIS BITISI -->
</td>
</tr>
</table> $icerik .= '<div id=manset'.$j.'b style="DISPLAY: '.$durum.'"><font face="Arial" style="font-size:12px; "></font><br>'.substr($niphell[post_content],0,250).'</div>değiştir:
$content = explode(" ", $niphell[post_content], 15);
array_pop($content);
$content = implode(" ",$content);
$icerik .= '<div id=manset'.$j.'b style="DISPLAY: '.$durum.'"><font face="Arial" style="font-size:12px; "></font><br>'.$content.'</div>