help me please about this source and when this source finished please....

nnegaresh

New Member
سلام عزيزان
يك سوال داشتم در باره يك سورس java
اين سورس من است
<SCRIPT language=Javascript1.1>

<!--
var ie= document.all ? 1 : 0

var enableScroll = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >3))

if(enableScroll)
{
var tScroll;
var curPos = 0;
var direction=0;
}

function runTimer()
{
if(enableScroll)
{ //enableScroll
if (direction)
{curPos += 1
window.scroll(0,curPos)}
else
{window.scroll(0,0)
curPos=0}

if ( curPos > 900000)
direction=0;
if (curPos < 3)
direction=1;

tScroll = window.setTimeout("runTimer();", 40)
}
}

if (enableScroll){

if (ie) window.onload = runTimer
if (ie) window.onunload = new Function("clearTimeout(tScroll)")
}

//-->
</SCRIPT>





اين سورس كارش اين است كه وقتي لود مي شود شروع مي كند به auto scrool
چيزي كه من ميخوام اينه كه وقتي به انتهاي صفحه رسيد بره يك صفحه ديگه رو باز كنه
الان اين سورس ته صفحه واي ميسه
خواهش مي كنم منو كمك كنيد...
my email is 8O [email protected]
 

mazoolagh

Active Member
از window.open استفاده كن

لطفا از
کد:
 براي نوشتن سورس استفاده كنيد.[/color]
 

جدیدترین ارسال ها

بالا