Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
1059
Prince of Persia : Sands ..(4965 okuma, 0 yanıt) Youtube Jacker İşe Yarama ..(11080 okuma, 8 yanıt) Netopsiyon Özel Nuke Sürü ..(58152 okuma, 61 yanıt) YouTube Videolarını Sorun ..(70098 okuma, 79 yanıt) Site yarışmasi Basvurular ..(26373 okuma, 25 yanıt) hiç birsey gözükmüyorrr ..(7785 okuma, 3 yanıt) Yardım Nuke .. ..(14011 okuma, 11 yanıt) Mrb forum Yardım ..(6180 okuma, 2 yanıt) Üyelerin özel mesajlarını ..(9339 okuma, 5 yanıt) sitem yavaş açılıyo ..(7599 okuma, 3 yanıt) Nasipte Askere Gitmekte V ..(29566 okuma, 30 yanıt) Video stream nasil kullan ..(11374 okuma, 8 yanıt) Yeni Modul Oluşturdum ayr ..(12659 okuma, 8 yanıt) Forumu son 24 saatte kim ..(7661 okuma, 3 yanıt) coppermine ..(10111 okuma, 7 yanıt) Yeni Forum Yaratıyorum Am ..(9324 okuma, 5 yanıt) Forum Sorunu ..(7179 okuma, 2 yanıt) Sağ Ve Sol Bloklar Yan Ya ..(13349 okuma, 10 yanıt) Admin paneli ..(10543 okuma, 6 yanıt) Forum Yonetim Sayfasi so ..(11195 okuma, 8 yanıt) Bilgide Haber Blok Yardım ..(5660 okuma, 1 yanıt) Türkçe karakter sorunu öl ..(11077 okuma, 7 yanıt) Güvenli Bir Php Sürümü ..(6456 okuma, 2 yanıt) titlede turkce karekter s ..(5910 okuma, 1 yanıt) 5 DK SONRA İNTAHAR EDİCEM ..(16185 okuma, 14 yanıt) BBtonuke 2 Sorun ..(6964 okuma, 3 yanıt) Yeni Sitemde Hangi Php Nu ..(10415 okuma, 6 yanıt) Netopsion pagerank Kampan ..(9273 okuma, 5 yanıt) haber sitesi cms ..(110509 okuma, 112 yanıt) Pagerank Kampanyası İle İ ..(46657 okuma, 48 yanıt) Nukejmap site haritası ha ..(6603 okuma, 2 yanıt) flash sayfasına haber ekl ..(6621 okuma, 1 yanıt) Phaspeseo da Nerde hata y ..(4987 okuma, 0 yanıt) mail list toplu mail gönd ..(20242 okuma, 21 yanıt) Sothink dhtml menü ..(10071 okuma, 7 yanıt) dreamweaver ..(7046 okuma, 2 yanıt) Parse error, syntax error ..(10510 okuma, 6 yanıt) forum ..(6012 okuma, 1 yanıt) Forumdaki Konular ? ..(9514 okuma, 5 yanıt) Seo yükledim Güvenlik kod ..(8045 okuma, 3 yanıt) seonun kuruldugunu ve işl ..(8740 okuma, 4 yanıt) AEG ZD ..(7565 okuma, 2 yanıt) Kampanya Başvuruları ..(25825 okuma, 22 yanıt) Netopsiyon Pagerank İşbir ..(23516 okuma, 21 yanıt) Yeni Domain Googlede yok ..(6478 okuma, 2 yanıt) sayfa üretim yazısı ..(5717 okuma, 1 yanıt) Boglon.de Sitemin Hizini ..(4662 okuma, 0 yanıt) Tema Taşırması? ..(4872 okuma, 0 yanıt) title nasıl değiştirlir ..(13886 okuma, 11 yanıt) 2 tane ayri scrip ..(6379 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: 2026-02-04, 00:10:02 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