اخواني
ما هو الكود اللازم لعمل قائمة متصاعدة بآخر اخبار الموقع تقف عند مرور الماوس عليها
مثل ما في صحتكم الكريمة
آخر مواضع المنتدي
http://www.arabteam2000.com/code/
القائمة اللي علي اليمين فوق
وشكرا
اخواني
ما هو الكود اللازم لعمل قائمة متصاعدة بآخر اخبار الموقع تقف عند مرور الماوس عليها
مثل ما في صحتكم الكريمة
آخر مواضع المنتدي
http://www.arabteam2000.com/code/
القائمة اللي علي اليمين فوق
وشكرا
تفصل اخوى هذا الاسكربت يمكن اضافة به اخر الاخبار فى موقعك و تربطها بصفحة الخبر ( لينك )
ان شاء الله تستفاد منه
و الاسكربت دا مستخدم فى معظم المواقع الخاصة بالاخبار و هو مميز جدا جدا جدا
<html dir="rtl">
<head>
<META http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>
</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1256">
<link href="styles.css" type="text/css" rel="stylesheet">
</head>
<body style="background-color: #4F7291">
<div class="ticki" style="width:548px; height:19px">
<p align="right">
<a class="tickl" id="tickerAnchor" href="ticker.htm" target="_top">
</a>
</div>
<script language="JavaScript">
// Ticker startup
function startTicker()
{
// Define run time values
theCurrentStory = -1;
theCurrentLength = 0;
// Locate base objects
if (document.getElementById)
{ theAnchorObject = document.getElementById("tickerAnchor");
runTheTicker();
}
else
{
document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
return true;
}
}
// Ticker main run loop function runTheTicker()
function runTheTicker()
{
var myTimeout;
// Go for the next story data block
if(theCurrentLength == 0)
{
theCurrentStory++;
theCurrentStory = theCurrentStory % theItemCount;
theStorySummary = theSummaries[theCurrentStory].replace(/"/g,'"');
theTargetLink = theSiteLinks[theCurrentStory];
theAnchorObject.href = theTargetLink;
thePrefix = "<span class=\"tickls\">" + theLeadString + "</span>";
}
// Stuff the current ticker text into the anchor
theAnchorObject.innerHTML = thePrefix +
theStorySummary.substring(0,theCurrentLength) + whatWidget();
// Modify the length for the substring and define the timer
if(theCurrentLength != theStorySummary.length)
{
theCurrentLength++;
myTimeout = theCharacterTimeout;
}
else
{
theCurrentLength = 0;
myTimeout = theStoryTimeout;
}
// Call up the next cycle of the ticker
setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
if(theCurrentLength == theStorySummary.length)
{
return theWidgetNone;
}
if((theCurrentLength % 2) == 1)
{
return theWidgetOne;
}
else
{
return theWidgetTwo;
}
}
</script>
<script language="JavaScript">
var theCharacterTimeout = 50;
var theStoryTimeout = 5000;
var theWidgetOne = "_";
var theWidgetTwo = "-";
var theWidgetNone = "";
var theLeadString = " آخر الأخبار";
var theSummaries = new Array();
var theSiteLinks = new Array();
var theItemCount;
theSummaries[0]= "الخبر الاول ";
theSiteLinks[0]= "الرابط الخاص بالخبر الاول";
theSummaries[1]= " الخبر الثانى ";
theSiteLinks[1]= "الرابط الخاص به";
theSummaries[2]= " الخبر الثالث";
theSiteLinks[2]= "الرابط الخاص به";
theSummaries[3]= "الخبر الرابع ";
theSiteLinks[3]= "الرابط الخاص به";
theItemCount = 4;' يمكن من هنا زيادة عدد الاخبار
startTicker();
</script>
</body>
</html>جزاك الله كل الخير
ساجربه واارد تاني
ان شاء الله
بوركت
اخي انا جربت السكربت ولكنه يغير من لون الصفحة
هل ممكن اختصار الكود لعمل قائمة فقط ما عدم تغيير اي شئ بالصفحة
مع العلم اني استخدم برنامج
web page maker
سلام
ممكن المساعدة
هذا الموضوع مغلق.