PDA

View Full Version : variable changing



cblake843
02-20-2006, 03:19 AM
Hi, hoping for some help on changing variables. I have found a great link script but combining 2 together produces a conflict. I realise one way to stop this is by changing the variables. I have inserted the script and one attempt at changing the aforementioned variables. I would be most grateful if someone could point out my error or point me in the direction of some variable info.

Kase





<HEAD>


<title>TRAVEL</Title>


<script>

var linkurl="land.htm";





var loadtime=1;





var clicktext="Wait for the link to be charged";




var linkactive="Go!"




var automaticlink=1;




// do not edit below unless you know what you are doing!

var doload=0;var doing=0;var loadsize=1;

function cont() {

if (doload==0 & loadsize>1) loadsize=loadsize- 1;

if (doload==1 & loadsize<loadtime*20) loadsize=loadsize- -1;

loader.width=Math.round(loadsize/(loadtime*20)*(loadarea.width-2-(loadarea.border*2)));

if (loadsize>1 & loadsize<loadtime*20) {setTimeout('cont()', 0050); doing=1} else {doing=0}

if (loadsize>=loadtime*20){activeshow.innerHTML=linkactive; if (automaticlink==1)checklink();}else{activeshow.innerHTML=""}}

function loading() {doload=1;if (doing==0) cont();}

function stopping() {doload=0;if (doing==0) cont();}

function checklink(instantly){if (loadsize>=loadtime*20) {window.location.href=linkurl;doing=2} else alert(clicktext)}

</script>



</HEAD>


<BODY>




<p align=center><a href="javascript:checklink()" onmouseover=loading() onmouseout=stopping()>COUNTRY PROFILES</a><table border="4" id="loadarea" cellspacing="0" width="222" cellpadding="0"><tr><td><table width="10" height="25" id="loader" bgcolor="#00FF00" border="2" cellspacing="0" cellpadding="0"><tr><td></td></tr></table></td></tr></table>

<span id=activeshow></span>


</body>
</head>
</html>
<HEAD>


<title>TRAVEL</Title>


<script>

var linkurla="land.htm";





var loadtimea=1;





var clicktexta="Wait for the link to be charged";




var linkactivea="Go!"




var automaticlinka=1;




// do not edit below unless you know what you are doing!

var doloada=0;var doinga=0;var loadsizea=1;

function cont() {

if (doloada==0 & loadsizea>1) loadsizea=loadsizea- 1;

if (doloada==1 & loadsizea<loadtimea*20) loadsizea=loadsizea- -1;

loader.width=Math.round(loadsizea/(loadtimea*20)*(loadarea.width-2-(loadarea.border*2)));

if (loadsizea>1 & loadsizea<loadtimea*20) {setTimeout('cont()', 0050); doing=1} else {doing=0}

if (loadsizea>=loadtimea*20){activeshow.innerHTML=linkactive; if (automaticlink==1)checklink();}else{activeshow.innerHTML=""}}

function loading() {doloada=1;if (doinga==0) cont();}

function stopping() {doloada=0;if (doinga==0) cont();}

function checklink(instantly){if (loadsizea>=loadtimea*20) {window.location.href=linkurl;doinga=2} else alert(clicktext)}

</script>



</HEAD>


<BODY>




<p align=center><a href="javascript:checklink()" onmouseover=loading() onmouseout=stopping()>COUNTRYcheesePROFILES</a><table border="4" id="loadarea" cellspacing="0" width="222" cellpadding="0"><tr><td><table width="10" height="25" id="loader" bgcolor="#00FF00" border="2" cellspacing="0" cellpadding="0"><tr><td></td></tr></table></td></tr></table>

<span id=activeshow></span>


</body>
</head>