الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

للمختصين بالجافا

مغلق
بدأه روح الرضا في 5 نوفمبر 2004 · 3 رد · 531 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ورحمة الله وبركاته

الاخوة أريد تعديل هذا الكود بحيث يكون خروج النص من اليسار إلى اليمين

وليس من اليمين إلى اليسار

أرجو المساعدة في أقرب فرصة

 <script language="JavaScript1.2">

//Specify the marquee's width (in pixels)
var marqueewidth=330
//Specify the marquee's height (in pixels, pertains only to NS)
var marqueeheight=20
//Specify the marquee's scroll speed (larger is faster)
var speed=6
//Specify the marquee contents
var marqueecontents='<font face="Arial"><strong><big>Thank you for visiting <a href="http://starq8.com">starq8</a> If you need anything pertain, please send Email to me <a href="mailto:x949x@hotmail.com">click here.</a> Enjoy your stay!</big></strong></font>'

if (document.all)
document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee>')

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}

function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.width
scrollit()
}

function scrollit(){
if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.left=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.left=marqueewidth
scrollit()
}
}

window.onload=regenerate2
</script>


<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01">
<layer name="cmarquee02"></layer>
</ilayer>

تحياتي

#2

التعديل على ما اعتقد فى كود ال HTML مش فى ال java Script

ahabdeen.jpg

<marquee>

مش موجود بصفة دايمة للامتحانات

</marquee>

#3

لا اعرف لماذا هذا التعقيد وكمان لماذا استخدام الجافا سكربت جرب الكود التالي اعتقد اسهل

<html>
<head><title>ArabTeam</title></head>
<body>
<center>
<marquee dir="rtl" scrollAmount="3" direction="right" align="middle" style=" bgcolor="#FFFFFF">
هنا قم بكتابة ما تريد    </marquee>
</center>
</body>
</html>

لست متواجد بشكل يومي

#4

شكرا لك أخي المشرف على هذا العمل

تحياتي

هذا الموضوع مغلق.

مواضيع مشابهة