Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
967
Prince of Persia : Sands ..(4879 okuma, 0 yanıt) Youtube Jacker İşe Yarama ..(10830 okuma, 8 yanıt) Netopsiyon Özel Nuke Sürü ..(56982 okuma, 61 yanıt) YouTube Videolarını Sorun ..(68893 okuma, 79 yanıt) Site yarışmasi Basvurular ..(25784 okuma, 25 yanıt) hiç birsey gözükmüyorrr ..(7634 okuma, 3 yanıt) Yardım Nuke .. ..(13783 okuma, 11 yanıt) Mrb forum Yardım ..(6067 okuma, 2 yanıt) Üyelerin özel mesajlarını ..(9157 okuma, 5 yanıt) sitem yavaş açılıyo ..(7473 okuma, 3 yanıt) Nasipte Askere Gitmekte V ..(28858 okuma, 30 yanıt) Video stream nasil kullan ..(11123 okuma, 8 yanıt) Yeni Modul Oluşturdum ayr ..(12403 okuma, 8 yanıt) Forumu son 24 saatte kim ..(7535 okuma, 3 yanıt) coppermine ..(9919 okuma, 7 yanıt) Yeni Forum Yaratıyorum Am ..(9155 okuma, 5 yanıt) Forum Sorunu ..(7038 okuma, 2 yanıt) Sağ Ve Sol Bloklar Yan Ya ..(13044 okuma, 10 yanıt) Admin paneli ..(10337 okuma, 6 yanıt) Forum Yonetim Sayfasi so ..(10997 okuma, 8 yanıt) Bilgide Haber Blok Yardım ..(5566 okuma, 1 yanıt) Türkçe karakter sorunu öl ..(10882 okuma, 7 yanıt) Güvenli Bir Php Sürümü ..(6301 okuma, 2 yanıt) titlede turkce karekter s ..(5799 okuma, 1 yanıt) 5 DK SONRA İNTAHAR EDİCEM ..(15825 okuma, 14 yanıt) BBtonuke 2 Sorun ..(6837 okuma, 3 yanıt) Yeni Sitemde Hangi Php Nu ..(10205 okuma, 6 yanıt) Netopsion pagerank Kampan ..(9079 okuma, 5 yanıt) haber sitesi cms ..(108660 okuma, 112 yanıt) Pagerank Kampanyası İle İ ..(45579 okuma, 48 yanıt) Nukejmap site haritası ha ..(6479 okuma, 2 yanıt) flash sayfasına haber ekl ..(6519 okuma, 1 yanıt) Phaspeseo da Nerde hata y ..(4906 okuma, 0 yanıt) mail list toplu mail gönd ..(19816 okuma, 21 yanıt) Sothink dhtml menü ..(9903 okuma, 7 yanıt) dreamweaver ..(6926 okuma, 2 yanıt) Parse error, syntax error ..(10339 okuma, 6 yanıt) forum ..(5912 okuma, 1 yanıt) Forumdaki Konular ? ..(9315 okuma, 5 yanıt) Seo yükledim Güvenlik kod ..(7921 okuma, 3 yanıt) seonun kuruldugunu ve işl ..(8587 okuma, 4 yanıt) AEG ZD ..(7415 okuma, 2 yanıt) Kampanya Başvuruları ..(25311 okuma, 22 yanıt) Netopsiyon Pagerank İşbir ..(23133 okuma, 21 yanıt) Yeni Domain Googlede yok ..(6358 okuma, 2 yanıt) sayfa üretim yazısı ..(5629 okuma, 1 yanıt) Boglon.de Sitemin Hizini ..(4578 okuma, 0 yanıt) Tema Taşırması? ..(4798 okuma, 0 yanıt) title nasıl değiştirlir ..(13621 okuma, 11 yanıt) 2 tane ayri scrip ..(6265 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: 2025-12-06, 04:51:39 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