سایت http://www.itiran.com رو Ú©Ù‡ دیدید بالای سایت اخبار این صÙØÙ‡ http://www.itiran.com//ticker.php نمایش داده میشه از ادمینش سورس صÙØÙ‡ رو خواستم Ú©Ù‡ تو سایتم استÙاده کنم اما جوابی نداد Øالا اگه من بخوام این اخبار رو به همین صورت Ú©Ù‡ تو Ø¢ÛŒ تی ایران قرار دادن (بصورت رد شونده Ùˆ متØرک تو یه کادر Ú©ÙˆÚ†Ú© بالای سایت) تو سایتم بگذارم باید چیکار کنم؟
اطلاعیه
Collapse
No announcement yet.
اخبار رونده
Collapse
X
-
نوشته اصلی توسط bigidolسایت http://www.itiran.com رو Ú©Ù‡ دیدید بالای سایت اخبار این صÙØÙ‡ http://www.itiran.com//ticker.php نمایش داده میشه از ادمینش سورس صÙØÙ‡ رو خواستم Ú©Ù‡ تو سایتم استÙاده کنم اما جوابی نداد Øالا اگه من بخوام این اخبار رو به همین صورت Ú©Ù‡ تو Ø¢ÛŒ تی ایران قرار دادن (بصورت رد شونده Ùˆ متØرک تو یه کادر Ú©ÙˆÚ†Ú© بالای سایت) تو سایتم بگذارم باید چیکار کنم؟کد PHP:****** LANGUAGE=jav a Scrip t>
<!--
var theItemCount;
var theCurrentStory;
var theCurrentLength;
var theStorySummary;
var theTargetLink;
var theCharacterTimeout;
var theStoryTimeout;
var theBrowserVersion;
var theWidgetOne;
var theWidgetTwo;
var theSpaceFiller;
var theLeadString;
var theStoryState;
var theBrowserAgent;
var isIE;
theBrowserAgent = navigator.userAgent.toLowerCase();
theBrowserVersion = parseInt(navigator.appVersion);
isIE = ((theBrowserAgent.indexOf("msie") != -1) && (theBrowserAgent.indexOf("opera") == -1));
if (theBrowserVersion < 4 || ! isIE)
{
}
function startTicker()
{
theBrowserAgent = navigator.userAgent.toLowerCase();
theBrowserVersion = parseInt(navigator.appVersion);
isIE = ((theBrowserAgent.indexOf("msie") != -1) && (theBrowserAgent.indexOf("opera") == -1));
if (theBrowserVersion < 4 || ! isIE)
{
return;
}
if(!document.body.children.incoming.children.properties)
{
}
theCharacterTimeout = 50;
theStoryTimeout = 5000;
theWidgetOne = "_";
theWidgetTwo = "-";
theStoryState = 1;
theItemCount = document.body.children.incoming.children.properties.children.itemcount.innerText;
theCurrentStory = -1;
theCurrentLength = 0;
theLeadString = " ";
theSpaceFiller = "<BR><BR><BR>";
runTheTicker();
}
function runTheTicker()
{
if(theStoryState == 1)
{
setupNextStory();
}
if(theCurrentLength != theStorySummary.length)
{
drawStory();
}
else
{
closeOutStory();
}
}
function setupNextStory()
{
theStoryState = 0;
theCurrentStory++;
theCurrentStory = theCurrentStory % theItemCount;
theStorySummary = document.body.children.incoming.children.stories.children[theCurrentStory].children.Summary.innerText;
theTargetLink = document.body.children.incoming.children.stories.children[theCurrentStory].children.SiteLink.innerText;
if(theTargetLink == "")
{
theTargetLink = document.body.children.incoming.children.stories.children[theCurrentStory].children.UrlLink.innerText;
}
if(theTargetLink == "/default.stm") {
theTargetLink = top.location;
}
theCurrentLength = 0;
document.all.hottext.href = theTargetLink;
}
function drawStory()
{
var myWidget;
if((theCurrentLength % 2) == 1)
{
myWidget = theWidgetOne;
}
else
{
myWidget = theWidgetTwo;
}
document.all.hottext.innerHTML = theLeadString + theStorySummary.substring(0,theCurrentLength) + myWidget + theSpaceFiller;
theCurrentLength++;
setTimeout("runTheTicker()", theCharacterTimeout);
}
function closeOutStory()
{
document.all.hottext.innerHTML = theLeadString + theStorySummary + theSpaceFiller;
theStoryState = 1;
setTimeout("runTheTicker()", theStoryTimeout);
}
//-->
</******>
</HEAD>
<BODY BGCOLOR="#FFFFFF" onLoad="startTicker();" dir="rtl">
...
Last edited by V1T4L; 03-20-2007, 04:48 PM.......
به سلامتي شبگرد ...
-
يه راه خيلي ساده:
کد PHP:include "http://www.itiran.com/ticker.php";
Comment
-
نوشته اصلی توسط reza.exeيه راه خيلي ساده:
کد PHP:include "http://www.itiran.com/ticker.php";
اما تو بالايي شما رو پارامترهاي سرعت و .........
به سلامتي شبگرد ...
Comment
-
براي داشتن نوشته هاي متØرك از دستور ساده ÙŠ html هم ميتوني استÙاده كني عزيز :
کد:<marquee direction=right onmouseover=this.stop() onmouseout=this.start() >salam</marquee>
Comment
-
جوينده يابندست
من دقيقا اينو مي خواستم
http://www.khormooj.com/pic/rss1.php
++++++++++++++++++++++++++++++++++++++++++
<iframe
src ="http://www.khormooj.com/pic/rss1.php" height ="30%" width="100%" frameborder="0" scrolling = "no">
</iframe>
Comment
-
نوشته اصلی توسط bigidolجوينده يابندست
من دقيقا اينو مي خواستم
http://www.khormooj.com/pic/rss1.php
++++++++++++++++++++++++++++++++++++++++++
<iframe
src ="http://www.khormooj.com/pic/rss1.php" height ="30%" width="100%" frameborder="0" scrolling = "no">
</iframe>
از <include هم استÙاده کردم صÙØÙ‡ رو اصلا نشون نداد
Comment
Comment