I would like to know the script of this particular page which displays the ad first and automatically scroll down to the main page
ref: http://www.indiantelevision.com/index.htm
I would like to know the script of this particular page which displays the ad first and automatically scroll down to the main page
ref: http://www.indiantelevision.com/index.htm
I dont have experience in java script... so i m a noob
I have tried this portion of the source from www.indiantelevision.com
in to my forum and i m getting the add portion but the scrolling is not done.
Is some more codes i needed to get the automatic scolling??
===========================================
Following are the script i copied and pasted to my form
===========================================
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
// -->
</script>
<!-- Start of Function for auto scroll of false screen -->
<SCRIPT language="Javascript">
//change 1 to another integer to alter the scroll speed. Greater is
faster
var speed=1
var currentpos=0
var alt=1
var curpos1=0
var curpos2=-1
function initialize(){
// *********** Change the value down here to increase the dalay
setTimeout(" **** " , milliseconds)**************
setTimeout("startit()",1000);
//startit()
}
function scrollwindow(){
if (document.all)
temp=document.body.scrollTop
else
temp=window.pageYOffset
if (alt==0)
alt=2
else
alt=1
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all)
currentpos=document.body.scrollTop+speed
else
currentpos=window.pageYOffset+speed
//alert(currentpos)
if (currentpos<575) window.scroll(0,currentpos)
}
else{
currentpos=0
var flag="false";
window.scroll(0,currentpos)
}
}
function startit(){
setInterval("scrollwindow()",5);
window.scroll(0,5)
//scrollwindow1()
}
//window.onload=initialize()
</SCRIPT>
<!-- End of Function for auto scroll of false screen -->
</HEAD>
<BODY bgcolor="#FFFFFF" topmargin="0" marginheight="0"
onLoad="initialize();" leftmargin="0" rightmargin="0">
<table width="75%" border="0" cellspacing="0" cellpadding="0"
align="center" valign="top">
<tr>
<td>
<div align="center"><object
classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swfla
sh.cab#version=5,0,0,0" width="783" height="455">
<param name=movie
value="/advt/bigfm/y2k6/nov/bigfm_falsescreen_783-435.swf">
<param name=quality value=high>
<embed src="/advt/bigfm/y2k6/nov/bigfm_falsescreen_783-435.swf"
quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_
Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"
width="783" height="455">
</embed>
</object></div>
</td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
View this code:
Code:<body onload="i=0;dd='d1';ww=setInterval('if(i<200){scroll(0,i++);document.getElementById(dd).innerHTML=i;}else clearInterval(ww);',10);"> <img src=Imaf4-YM20041031.jpg> <div id=d1></div> <script>i=200;while(--i>0)document.write('Line '+i+'<br>')</script>
Bookmarks