<marquee direction="up" onmouseover="stop()" onmouseout="start()" width="100">Insert Your Text Here.... This is a test.... by MajidOnline Forums ;)</marquee>
aseman گفت:سلام به همگي
من مي خوام يك پنجره در سايتم بذارم كه يك سري لينكها در اون از سمت پايين به بالا حركت كنن و وقتي موس رو روش مي برم حركت اونا متوقف بشه و ... سرتونو درد نيارم دقيقا مثل اوني كه آقا مجيد در صفحه اصلي به اسم انجمنهاي سايت قرار داده
لطفا كمكم كنيد
<script language="javascript">
var content='<p><a href="http://members.lycos.co.uk/negaresh/">لینک از من </a>- اگر
خوشتان اومد بمن هم یک لینک بده</p><p>very powefull website. Visit <a
href="http://www.majidonline.com">آقا مجید گل</a></p><p><a
href="http://members.lycos.co.uk/negaresh/">Saman</a> Farsi text editor , farsi email
no registration only free just for you</p>';
var boxheight=150; // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=150; // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#FFF6e9"; // BACKGROUND BOX COLOR.
var speed=50; // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000
MILLISECONDS)..
var pixelstep=2; // PIXELS "STEPS" PER REPITITION.
var godown=false; // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE
// DO NOT EDIT BEYOND THIS POINT
var outer,inner,elementheight,ref,refX,refY;
var w3c=(document.getElementById)?true:false;
var ns4=(document.layers)?true:false;
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf("Netscape")>=0)?true:false;
var txt='';
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+'
width='+boxwidth+'><tr><td>';
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width='+boxwidth+'
height='+boxheight+'></ilayer>';
txt+='</td></tr></table>'
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden"
width='+boxwidth+' height='+boxheight+'>';
txt+='<layer name="inner" width='+(boxwidth-4)+' height='+(boxheight-4)+'
visibility="hidden" left="2" top="2" >'+content+'</layer>';
txt+='</layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+';
background-color:'+boxcolor+';" ></div>';
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+';
height:'+boxheight+'; visibility:hidden; background-color:'+boxcolor+';
overflow:hidden" >';
txt+='<div id="inner" style="position:absolute; visibility:visible; left:2px; top:2px;
width:'+(boxwidth-4)+'; overflow:hidden; cursor:default;">'+content+'</div>';
txt+='</div>';
}
document.write(txt);
function getElHeight(el){
if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top;
else if(ie4||ie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height):parseInt(el.offsetHeight);
}
function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4||w3c){
x = 0;
while(el.offsetParent!=null){
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}
function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4||w3c){
y=0;
while(el.offsetParent!=null){
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}
function scrollbox(){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inner.top=-elementheight;
}else{
if(inner.top<2-elementheight)inner.top=boxheight+2;
}}else{
inner.style.top=parseInt(inner.style.top)+((godown)? pixelstep: -pixelstep)+'px';
if(godown){
if(parseInt(inner.style.top)>boxheight)inner.style.top=-elementheight+'px';
}else{
if(parseInt(inner.style.top)<2-elementheight)inner.style.top=boxheight+2+'px';
}}}
window.onresize=function(){
if(ns4)setTimeout('history.go(0)', 400);
else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
}}
window.onload=function(){
outer=(ns4)?document.layers['outer']:(ie4)?
document.all['outer']:document.getElementById('outer');
inner=(ns4)?outer.document.layers['inner']:(ie4)?
document.all['inner']:document.getElementById('inner');
ref=(ns4)?document.layers['ref']:(ie4)?
document.all['ref']:document.getElementById('ref');
elementheight=getElHeight(inner);
if(ns4){
outer.moveTo(getPageLeft(ref),getPageTop(ref));
outer.clip.width=boxwidth;
outer.clip.height=boxheight;
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth-4;
inner.clip.height=elementheight;
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
inner.style.top=((godown)? -elementheight : boxheight)+'px';
inner.style.clip='rect(0px, '+(boxwidth-4)+'px, '+(elementheight)+'px, 0px)';
outer.style.visibility="visible";
}
setInterval('scrollbox()',speed);
}
</script>
aseman گفت:آقا مجيد دستت درد نكنه اما من يك marquee ساده نميخواستم مشكل من در اينه كه نميتونم هر لينك رو در يك سطر جدا و به صورت جداگانه لينك بدم
يا همه اونا با هم لينك مي شن يا اينكه جدا كردن اونا به صورت سطر برام سخته تازه يك مشكل ديگه هم دارم و اون قرار دادن يك عكس در كنار هر لينكه؟؟؟
ميدونم خيلي ناشيم ولي اين بار هم كمكم كن
آقا سامان از شما هم متشكرم ولي نميدونم چرا وقتي از كدهايي كه برام نوشتي استفاده مي كنم erorr مي ده البته بگم من اين ها رو مي خوام در محيط HTML استفاده كنم
يك دوست ناشي
رضا
<html>
<head>
<title>saman</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<TABLE
style="BORDER-RIGHT: 1px dotted; BORDER-TOP: 1px dotted; BORDER-LEFT: 1px dotted; BORDER-BOTTOM: 1px dotted; BORDER-COLLAPSE: collapse"
borderColor=#999999 cellSpacing=0 cellPadding=0 width=150
bgColor=#f4f4f4 border=0>
<TR>
<TD>
<MARQUEE onmouseover=this.stop() onmouseout=this.start()
scrollAmount=2 scrollDelay=20 direction=up height=220
align="center">
<a href="http://members.lycos.co.uk/negaresh/" target="_blank">
<img alt="MajidOnline" src="http://members.lycos.co.uk/negaresh/bng.gif" border="0">
</a><br>
<A style="TEXT-DECORATION: none"
href="http://members.lycos.co.uk/negaresh/"><B>
&#1606;&#1711;&#1600;&#1600;&#1600;&#1600;&#1600;&#1575;&#1585;&#1588;&#32;&
#1601;&#1575;&#1585;&#1587;&#1600;&#1600;&#1600;&#1600;&#1600;&#1600;&#1600;
&#1600;&#1600;&#1600;&#1740;</B></A>
</FONT><BR><BR>
<a href="http://www.majidonline.com" target="_blank"><img alt="MajidOnline" src="http://www.majidonline.com/modules/LinkMe/images/banner_81_5.gif" border="0"></a><br><A style="TEXT-DECORATION: none"
href="http://www.majidonline.com"><B>
&#1587;&#1575;&#1740;&#1578;&#32;&#1570;&#1601;&#1575;&#32;&#1605;&#1580;&#1740;&#1600;
&#1600;&#1600;&#1583;&#32;&#1711;&#1604;</B></A> <br><br>
**********<br><br>
&#1587;&#1604;&#1575;&#1605;&#32;&#1583;&#1608;&#1587;&#1578;&#32;&#1593;&#1586;
&#1610;&#1586;&#1610;&#1705;&#1607;&#32;&#1575;&#1586;&#32;&#1575;&#1610;&#1606;
&#32;&#1576;&#1585;&#1606;&#1575;&#1605;&#1607;&#32;&#1583;&#1585;&#32;&#1587;&
#1575;&#1610;&#1578;&#32;&#1582;&#1608;&#1583;&#32;&#32;&#1585;&#1575;&#1740;
&#1711;&#1575;&#1606;&#32;&#1575;&#1587;&#1578;&#1601;&#1575;&#1583;&#1607;&#32;
&#1582;&#1608;&#1575;&#1607;&#1740;&#32;&#1705;&#1585;&#1583;&#32;&#1583;&#1585;
&#32;&#1585;&#1607;&#32;&#1582;&#1583;&#1575;&#32;&#1608;&#32;&#1576;&#1607;&#32;
&#1582;&#1575;&#1591;&#1585;&#32;&#1602;&#1583;&#1585;&#32;&#1583;&#1575;&#1606;
&#1740;&#32;&#1575;&#1586;&#32;&#1586;&#1581;&#1605;&#1575;&#1578;&#32;&#1605;&#1606;
&#32;&#1578;&#1608;&#32;&#1587;&#1575;&#1740;&#1578;&#32;&#1582;&#1608;&#1583;&#1578;
&#32;&#1576;&#1605;&#1606;&#32;&#1740;&#1705;&#32;&#1604;&#1740;&#1606;&#1705;&#32;&#1576;
&#1583;&#1607;&#32;&#1705;&#1607;&#32;&#1583;&#1585;&#32;&#1570;&#1740;&#1606;&#1583;&#1607;
&#32;&#1705;&#1605;&#1705;&#32;&#1576;&#1740;&#1588;&#1578;&#1585;&#1740;&#32;&#1575;&#1586;
&#32;&#1605;&#1606;&#32;&#1605;&#1740;&#32;&#1576;&#1740;&#1606;&#1740;&#32;&#1604;&#1608;&#1711;
&#1608;&#1740;&#32;&#1587;&#1575;&#1740;&#1578;&#32;&#1605;&#1606;&#32;&#1608;&#32;&#1570;&#1583;
&#1585;&#1587;&#1605;&#32;&#1608;&#32;&#1578;&#1608;&#32;&#1607;&#1605;&#1740;&#1606;&#32;&#1587;
&#1608;&#1585;&#1587;&#32;&#1607;&#1587;&#1578;&#32;&#1605;&#1740;&#32;&#1578;&#1608;&#1606;&#1740;
&#1583;&#32;&#1576;&#1585;&#1575;&#1740;&#32;&#1705;&#1740;&#1606;&#1705;&#32;&#1575;&#1587;&#1578;
&#1601;&#1575;&#1583;&#1607;&#32;&#1705;&#1606;&#1740;&#1583;&#32;
</FONT>
</td></tr></table>
</BODY>
</HTML>