Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
630
Prince of Persia : Sands ..(3892 okuma, 0 yanıt) Youtube Jacker İşe Yarama ..(8556 okuma, 8 yanıt) Netopsiyon Özel Nuke Sürü ..(47302 okuma, 61 yanıt) YouTube Videolarını Sorun ..(57553 okuma, 79 yanıt) Site yarışmasi Basvurular ..(21353 okuma, 25 yanıt) hiç birsey gözükmüyorrr ..(6173 okuma, 3 yanıt) Yardım Nuke .. ..(11281 okuma, 11 yanıt) Mrb forum Yardım ..(4979 okuma, 2 yanıt) Üyelerin özel mesajlarını ..(7544 okuma, 5 yanıt) sitem yavaş açılıyo ..(6111 okuma, 3 yanıt) Nasipte Askere Gitmekte V ..(23912 okuma, 30 yanıt) Video stream nasil kullan ..(9139 okuma, 8 yanıt) Yeni Modul Oluşturdum ayr ..(10292 okuma, 8 yanıt) Forumu son 24 saatte kim ..(6096 okuma, 3 yanıt) coppermine ..(8203 okuma, 7 yanıt) Yeni Forum Yaratıyorum Am ..(7649 okuma, 5 yanıt) Forum Sorunu ..(5878 okuma, 2 yanıt) Sağ Ve Sol Bloklar Yan Ya ..(10777 okuma, 10 yanıt) Admin paneli ..(8660 okuma, 6 yanıt) Forum Yonetim Sayfasi so ..(9071 okuma, 8 yanıt) Bilgide Haber Blok Yardım ..(4731 okuma, 1 yanıt) Türkçe karakter sorunu öl ..(9164 okuma, 7 yanıt) Güvenli Bir Php Sürümü ..(5197 okuma, 2 yanıt) titlede turkce karekter s ..(4927 okuma, 1 yanıt) 5 DK SONRA İNTAHAR EDİCEM ..(13036 okuma, 14 yanıt) BBtonuke 2 Sorun ..(5653 okuma, 3 yanıt) Yeni Sitemde Hangi Php Nu ..(8392 okuma, 6 yanıt) Netopsion pagerank Kampan ..(7417 okuma, 5 yanıt) haber sitesi cms ..(91959 okuma, 112 yanıt) Pagerank Kampanyası İle İ ..(38102 okuma, 48 yanıt) Nukejmap site haritası ha ..(5426 okuma, 2 yanıt) flash sayfasına haber ekl ..(5586 okuma, 1 yanıt) Phaspeseo da Nerde hata y ..(4181 okuma, 0 yanıt) mail list toplu mail gönd ..(16360 okuma, 21 yanıt) Sothink dhtml menü ..(8238 okuma, 7 yanıt) dreamweaver ..(5863 okuma, 2 yanıt) Parse error, syntax error ..(8633 okuma, 6 yanıt) forum ..(5001 okuma, 1 yanıt) Forumdaki Konular ? ..(7890 okuma, 5 yanıt) Seo yükledim Güvenlik kod ..(6714 okuma, 3 yanıt) seonun kuruldugunu ve işl ..(7182 okuma, 4 yanıt) AEG ZD ..(6271 okuma, 2 yanıt) Kampanya Başvuruları ..(21290 okuma, 22 yanıt) Netopsiyon Pagerank İşbir ..(19682 okuma, 21 yanıt) Yeni Domain Googlede yok ..(5331 okuma, 2 yanıt) sayfa üretim yazısı ..(4767 okuma, 1 yanıt) Boglon.de Sitemin Hizini ..(3882 okuma, 0 yanıt) Tema Taşırması? ..(4065 okuma, 0 yanıt) title nasıl değiştirlir ..(11420 okuma, 11 yanıt) 2 tane ayri scrip ..(5338 okuma, 1 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Sagdan sola kayan kodu duzenleme
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
huzurhost Mesaj: 1+
Kayıt: Nov 26, 2005 Mesajlar: 10
Tarih: 2007-12-30, 19:59:24 Mesaj konusu: Sagdan sola kayan kodu duzenleme
Sagdan sola kayan kodu duzenleme yapamadim.Arkadaslar bu konuda kim bana yardim edebilir..
Simdi size acikliyayim asagidan yukariya ayarladim . fakat sagdan sola ayarliyamadim..
<?php
/* ================================================== ============= *\
| Module name: External Banner [External News] |
| Copyright ©2005-2007 SoSoVN.com. All rights reserved. |
| |
| ====[ SOSO NEWS EXPRESS IS NOT FREE SOFTWARE ]==== |
\* ================================================== ============= */
//You can edit your setting here
//===========================================
define('LIMIT_ARTICLES', 25);
define('BANNER_STYLE', 'banner130x180_style1.tpl'); //User 'banner130x180_style1.tpl' or 'banner130x180_style2.tpl'
//===========================================
define("IN_SITE", true);
define("IN_INDEX", true);
define("PHP_EX", ".php");
include("constant". PHP_EX);
include("config". PHP_EX);
error_reporting(E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
//Database
include("./includes/mysql". PHP_EX);
$DB = new DBSql;
//Setting information
include("./includes/info_home". PHP_EX);
$Info = new Info;
//Template
include("./includes/template". PHP_EX);
$Template = new Template("./templates/". $Info->option['template']);
$Info->check_website_close();
//Functions
include("./includes/functions". PHP_EX);
include("./includes/functions_home". PHP_EX);
$Func = new Func_Home;
$Info->get_common();
//Run the module
$Banner = new Banner;
//Set global vars
$Template->set_vars(array(
"SITE_NAME" => $Info->option['site_name'],
"SITE_URL" => $Info->option['site_url'],
"TEMPLATE_PATH" => './templates/'. $Info->option['template'],
));
//Ready Template to out put
$Template->set_files(array(
"body" => BANNER_STYLE,
));
//Close mysql
$DB->close();
$Template->show();
//
//================================================== =====
class Banner
{
var $cat_count = 0;
var $cat_data = array();
function Banner(){
$this->get_all_cats();
$this->show_lastest_articles();
}
//Lastest articles
function show_lastest_articles(){
global $DB, $Template, $Info, $Func;
$time = time();
$DB->query('SELECT article_id, cat_id, title, content_url, posted_date, article_type FROM '. $DB->prefix .'article WHERE article_type!='. SYS_ARTICLE_SUMMARY .' AND enabled='. SYS_ENABLED .' AND posted_date<='. $time .' ORDER BY posted_date DESC LIMIT 0,'. LIMIT_ARTICLES);
$article_count = $DB->num_rows();
$article_data = $DB->fetch_all_array();
$DB->free_result();
for ($i=0; $i<$article_count; $i++){
$code_path = "";
$this->get_code_path($code_path, $article_data[$i]['cat_id']);
if ( $article_data[$i]['article_type'] == SYS_ARTICLE_LINK ){
$u_view = $article_data[$i]['content_url'];
}
else{
$u_view = $Func->compile_url(array('mod' => MOD_ARTICLE, 'cat' => $code_path, 'article' => $article_data[$i]['article_id']));
}
$Template->set_block_vars("articlerow", array(
'TITLE' => strip_tags(html_entity_decode($article_data[$i]['title'])),
'U_VIEW' => $u_view,
));
}
}
function get_code_path(&$code_path, $cat_id){
global $Info;
for ($i=0; $i<$this->cat_count; $i++){
if ($cat_id == $this->cat_data[$i]['cat_id']){
$code_path = !empty($code_path) ? $this->cat_data[$i]['cat_code'] . $Info->option['short_url_sep'] . $code_path : $this->cat_data[$i]['cat_code'];
if ( !$Info->option['short_url_enabled'] ) return false;
if ( $this->cat_data[$i]['cat_parent_id'] ){
$this->get_code_path($code_path, $this->cat_data[$i]['cat_parent_id']);
}
}
}
return true;
}
function get_all_cats(){
global $DB;
$DB->query('SELECT * FROM '. $DB->prefix .'article_category WHERE enabled='. SYS_ENABLED .' ORDER BY cat_order ASC');
$this->cat_count = $DB->num_rows();
$this->cat_data = $DB->fetch_all_array();
$DB->free_result();
}
}
?>
Bu template dosyasi
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="XHTML namespace">
<head>
<base href="{SITE_URL}">
<m e t a http - e q u i v="Content-Language" content="en-us">
<m e t a http - e q u i v="Content-Type" content="text/html; charset=UTF-8">
<title>{SITE_NAME}</title>
<link href="{TEMPLATE_PATH}/style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<table width="130" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22">
<table width="100%" height="22" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="4"><img src="{TEMPLATE_PATH}/images/banner130x180/bg_titlerightblock_01.gif" width="4" height="22" alt=""></td>
<td background="{TEMPLATE_PATH}/images/banner130x180/bg_titlerightblock_02.gif" class="rightTitleblock">
.:: <a target="_blank" href="<A href="http://www.megahaber.net">Megahaber.net</a></td">http://www.megahaber.net">Megahaber.net</a></td>
<td width="8"><img src="{TEMPLATE_PATH}/images/banner130x180/bg_titlerightblock_03.gif" width="8" height="22" alt=""></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" height="148">
<!-- START IF: articlerow -->
<marquee width="130" height="144" direction=up scrollamount="1" onmouseover="this.stop()" onmouseout="this.start()">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- START: articlerow -->
<tr>
<td align="left"><a class="otherNews" href="{articlerow:U_VIEW}" target="_blank"><img src="{TEMPLATE_PATH}/img/nokta.gif" width="1" height="1"> {articlerow:TITLE}...</a></td>
</tr>
<tr>
<td height="10" align="left" background="{TEMPLATE_PATH}/images/dotline_gray.gif" class="backGXM"><img src="{TEMPLATE_PATH}/images/spacer.gif" width="1" height="1"></td>
</tr>
<!-- END: articlerow -->
</table></marquee>
<!-- END IF: articlerow -->
</td>
</tr>
<tr>
<td height="10" background="{TEMPLATE_PATH}/images/bottom_topmenu.gif"><img src="{TEMPLATE_PATH}/images/spacer.gif" width="1" height="1"></td>
</tr>
</table>
</center>
</body>
</html>
suan ki goruntusu bu sekilde Online Haber yalniz ben bu templtaes dosyasindan ayarladigim vakit butun yazilar birden sagdan sola gidiyor ben ise sadece yazilarin tek tek sagdan sola gitmesini istiyorum bu konuda bana yardim ci olucak bir arkadas lazim ..
Ornek olarak hurriyetin bu dosyasi yeterli sanirim
<script type='text/j a v a s c r i p t'>
<!--
ad_client = '4a350c49-8d04-4465-b188-d7cf71881a42';
ad_format = '3';
ad_width = 800;
ad_height = 30;
//-->
</script><script type='text/j a v a s c r i p t' src='http://bumerang.hurriyet.com.tr/show_ads.js'></script>
bende bu hurriyetin ki gibi yapmak istiyorum ama yapamadim cok ugrastim olmadi. sadece asagidan yukariya ayarladim . sagdan sola dogru olmadi. oldu,. fakat hepsi birden gidiyor oda benim istedigim gibi degil acaba bu yazilari tek tek sagdan sola dogru kaydirilmasinda bana yardimci olabilecek birisi var mi acanba?/ (http://www.megahaber.net/yeni.php)
Simdiden cok tesekkur ederim..
PS: Reklam amacli degil sadece yardim amaciyla yazdim..
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-04-24, 18:07:35 Mesaj konusu: Forum Arası Reklamlar
Başa dön
String Mesaj: 1+
Kayıt: Dec 30, 2007 Mesajlar: 22
Tarih: 2007-12-31, 01:23:56 Mesaj konusu: Re: Sagdan sola kayan kodu duzenleme
Şu anda çalışıyor sanırım bir problem yok gibi. Tam olarak ne istediğini anlamadım.
Sağdan sola yapmak istiyorsan
Kod:
<marquee width="130" height="144" direction=up scrollamount="1" onmouseover="this.stop()" onmouseout="this.start()">
Burada direction =up ı left olarak değiştir.
Hepsi birden kayıyorsa Marquee yi tablenin içine ekle ondan olabilir.Yazı biraz uzun olunca tam olarak okuyamadım ve anlamadım isteğini...
Başa dön
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız