Последни теми във форума,скрипт

Post Reply
User avatar
fci
Нов
Нов
Posts: 71
Joined: Sun Dec 04, 2005 10:41 am
Contact:

Последни теми във форума,скрипт

Post by fci » Sun Feb 26, 2006 4:41 pm

Трябва ми скрипт за сайта ми,като в дата.бг
дето показва кои са последните теми в форумите.Ако може някой да ми направи скрипта,ще съм му много благодарен.Става въпрос за този форум - http://fcinter.fhhost.com

User avatar
staf
σχήπτρον
σχήπτρον
Posts: 4254
Joined: Sun Sep 25, 2005 10:14 pm
Answers: 9
Contact:

Post by staf » Sun Feb 26, 2006 4:48 pm


User avatar
fci
Нов
Нов
Posts: 71
Joined: Sun Dec 04, 2005 10:41 am
Contact:

Post by fci » Sun Feb 26, 2006 5:07 pm

Само php ли е,защото от датата е нещо такова :

Code: Select all

<html>
<head>
<meta http-equiv="Content-Language" content="bg">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<META NAME="web design" CONTENT="Screamer Corp.">
<META HTTP-EQUIV="Refresh" CONTENT="600">
<script>
var pagewidth=700;
var partw=300; var parth=206;
var stylescript=800;
if &#40;screen.width > 800&#41; &#123; pagewidth=880; partw=335; parth=223; stylescript=1024; &#125;
if &#40;screen.width >= 1280&#41; &#123; pagewidth=950; partw=370; parth=239; stylescript=1280; &#125;
if &#40;screen.width >= 2600&#41; &#123; pagewidth=1100; partw=445; parth=239; stylescript=1600; &#125;
var LOOK = &#123;
    'size' &#58; &#91;partw, parth&#93;,
    'up' &#58; 'http&#58;//i.data.bg/images/arrow_up_b.gif',
    'dn' &#58; 'http&#58;//i.data.bg/images/arrow_down_b.gif',
    'clas' &#58; &#123; 'bck'&#58;'Back', 'aup'&#58;'ArrowUp', 'adn'&#58;'ArrowDn', 'itm'&#58;'ItemBody' &#125;
    &#125;
var BEHAVE = &#123; 'auto' &#58; false, 'vertical' &#58; true, 'speed' &#58; 4 &#125;
var ITEMS = &#91; &#123;
    'file' &#58; 'http&#58;//forums.data.bg/forum_topics.php?sid=rmdqgvjg1x8y9uaxa2sd&color_theme=new&pagecolor=%23FFFFFF', 'content' &#58; '',
    'pause_b' &#58; 0, 'pause_a' &#58; 0 &#125; &#93;
document.write&#40;"<LINK href='http&#58;//i.data.bg/menu/css/themes/new/style"+stylescript+".css' type=text/css rel=StyleSheet>"&#41;;
</script>
</head>
<body bgcolor='#FFFFFF' text=''
 link='' vlink='' alink=''
 topmargin='0' marginwidth='0' marginheight='0' leftmargin='0' onLoad="init&#40;&#41;"
  background='http&#58;//i.data.bg/images/bground_forums.jpg' style='&#123; background-repeat&#58; no-repeat;&#125;'><div id=mn style="visibility&#58;hidden;position&#58;absolute;top&#58;0;left&#58;0;width&#58;100%"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="ItemBody" id=mnc></td></tr></table></div>
<script language="JavaScript">
function getElem&#40;div&#41; &#123;
    return document.getElementById ? document.getElementById&#40;div&#41; &#58; document.all&#91;div&#93;;
&#125;
var auto = BEHAVE.auto, vertical = BEHAVE.vertical,
items = ITEMS,
o_up = new Image&#40;16,16&#41;, o_dn = new Image&#40;16,16&#41;,
o_class = LOOK.clas,
//o_container = parent.document.getElementById ? parent.document.getElementById&#40;"forum"&#41; &#58; parent.document.all&#91;"forum"&#93;,
w = LOOK.size&#91;0&#93;, h = LOOK.size&#91;1&#93;,
n_wheight = vertical ? h &#58; w,
n_step = BEHAVE.speed != 0 ? BEHAVE.speed &#58; 1,
n_interval = n_pos = n_cur = prior = 0, 
n_astep = Math.abs&#40;n_step&#41;,
n_num = items.length;
main = getElem&#40;'mn'&#41;;
o_cont = getElem&#40;'mnc'&#41;;
//o_container.style.width = w + 'px';
//o_container.style.height = h + 'px';

if &#40;!auto&#41; &#123;	
    o_up.src = LOOK.up; o_dn.src = LOOK.dn;
    document.write&#40;"<div id=aup class=" + o_class.aup + " style=position&#58;absolute;z-index&#58;1><img src=" + o_up.src + "></div><div id=adn class=" + o_class.adn + " style=position&#58;absolute;z-index&#58;1><img src=" + o_dn.src + "></div>"&#41;;
    arrup = getElem&#40;"aup"&#41;; arrdn = getElem&#40;"adn"&#41;;
&#125;

// ------------------------------------------------------------
// initialize items array - waiting for each to load completely
// ------------------------------------------------------------
for &#40;var i in items&#41; &#123;
    if &#40;items&#91;i&#93;.file&#41; document.write&#40;"<iframe style=\"visibility&#58;hidden\" height=0 width=0 src=\"" + items&#91;i&#93;.file + "\"></iframe>"&#41;
    items&#91;i&#93;.supply = supp;
&#125;

function init&#40;n_2measure&#41; &#123;
    var b_fl = true, e_frm, k = 0, i, main;
    main = getElem&#40;'mn'&#41;;
    if &#40;n_2measure != null&#41; &#123; items&#91;n_2measure&#93;.height = vertical ? o_cont.offsetHeight &#58; o_cont.offsetWidth; &#125;
    for &#40;i = n_num - 1; i >= 0; i--&#41; if &#40;!items&#91;i&#93;.height&#41; &#123;
	if &#40;items&#91;i&#93;.content&#41;	&#123;
	    o_cont.innerHTML = items&#91;i&#93;.content;
	    return setTimeout&#40;"init&#40;" + i + "&#41;", 100&#41;;
	&#125; else
	    if &#40;items&#91;i&#93;.file&#41; &#123;	
		e_frm = window.frames&#91;k++&#93;;
		if &#40;e_frm.document.body&#41; items&#91;i&#93;.content = e_frm.document.body.innerHTML;
	    &#125;
	    b_fl = false;
    &#125;
    if &#40;!b_fl&#41; return setTimeout&#40;"init&#40;&#41;", 100&#41;
    main.style.visibility='visible';
    if &#40;auto&#41; move&#40;0&#41;;
&#125;

// user control methods assigning
var ajust = vertical ? function &#40;&#41; &#123; main.style.top = n_pos &#125; &#58; function &#40;&#41; &#123; main.style.left = n_pos &#125;
if &#40;auto&#41; &#123;	
    document.body.onmouseover = function &#40;&#41; &#123; stop&#40;1&#41;; &#125;
    document.body.onmouseout = function &#40;&#41; &#123; move&#40;1&#41;; &#125;
&#125; else &#123;
    arrup.onmouseover = function &#40;&#41; &#123; 
	n_step = -n_astep; move&#40;1&#41;;
    &#125;
    arrdn.onmouseover = function &#40;&#41; &#123; 
	n_step = n_astep; move&#40;1&#41;;
    &#125;
    arrdn.onmouseout = arrup.onmouseout = function &#40;&#41; &#123; 
	n_pos += n_step; stop&#40;1&#41;;
    &#125;
&#125;

// internal control methods
function move&#40;p&#41; &#123; 
    if &#40;prior <= p && n_interval == 0&#41; &#123; prior = 0; n_interval = setInterval&#40;"roll&#40;&#41;", 40&#41;; &#125;
&#125; 
function stop&#40;p&#41; &#123; 
    if &#40;prior < p&#41; &#123; prior = p; &#125;
    if &#40;n_interval != 0&#41; &#123; clearInterval&#40;n_interval&#41;; n_interval = 0; &#125;
&#125;

function sleep&#40;delay&#41; &#123; stop&#40;0&#41;; setTimeout&#40;"move_s&#40;&#41;", delay * 1000&#41;; &#125;
function move_s&#40;&#41; &#123; n_pos -= n_step; ajust&#40;&#41;; move&#40;0&#41; &#125;
function supp &#40;&#41; &#123; o_cont.innerHTML = this.content; ajust&#40;&#41;; &#125;
function roll&#40;&#41; &#123;	
    var item = items&#91;n_cur&#93;;
    if &#40;n_pos > n_wheight&#41; &#123;
	item = items&#91;n_cur = n_cur == 0 ? n_num - 1 &#58; n_cur - 1&#93;
	n_pos = -item.height; item.supply&#40;&#41;
    &#125;
    else if &#40;n_pos < - item.height&#41; &#123;
	item = items&#91;n_cur = n_cur == n_num - 1 ? 0 &#58; n_cur + 1&#93;
	n_pos = n_wheight; item.supply&#40;&#41;
    &#125;
    var delta = n_wheight - item.height
    if &#40;item.pause_a > 0 && n_pos >= delta && n_pos < n_astep + delta&#41; &#123;
	n_pos = delta; ajust&#40;&#41;;
	return sleep &#40;item.pause_a&#41;;
    &#125;
    if &#40;item.pause_b >= 0 && n_pos >= 0 && n_pos < n_astep&#41; &#123;
	n_pos = 0; ajust&#40;&#41;
	return sleep &#40;item.pause_b&#41;;
    &#125;
//	parent.status = "n_pos "+n_pos+" "+item.height
    if &#40;n_pos > 40 && n_step < 0&#41; &#123;
        item = items&#91;n_cur = n_cur == 0 ? n_num - 1 &#58; n_cur - 1&#93;
        n_pos = -item.height + 50; item.supply&#40;&#41;
    &#125;
    if &#40;n_pos < -item.height + 100 && n_step > 0&#41; &#123;
	item = items&#91;n_cur = n_cur == 0 ? n_num - 1 &#58; n_cur - 1&#93;
	n_pos = 80; item.supply&#40;&#41;
    &#125;
    n_pos -= n_step;
    ajust&#40;&#41;;
&#125;
</script>
</body>
</html>

User avatar
fci
Нов
Нов
Posts: 71
Joined: Sun Dec 04, 2005 10:41 am
Contact:

Post by fci » Mon Feb 27, 2006 7:04 pm

Това с Пхп ли е станало?

http://x-chat.no-ip.org/

User avatar
bafitu
Много Редовен
Много Редовен
Posts: 1509
Joined: Mon Dec 12, 2005 9:12 am
Answers: 102
Location: Somewhere around nothing..

Post by bafitu » Mon Feb 27, 2006 8:55 pm

разбира се, виж темата която стаф е дал по-горе...бтв това от x-chat е IPB , а не phpbb...

Post Reply